yandex.cloud.api.operation.OperationServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/operation/operation_service.proto
package yandex.cloud.api.operation;
public final class OperationServiceOuterClass {
  private OperationServiceOuterClass() {}
  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 GetOperationRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.operation.GetOperationRequest)
      com.google.protobuf.MessageOrBuilder {
    /**
     * 
     * ID of the Operation resource to return.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The operationId.
     */
    java.lang.String getOperationId();
    /**
     * 
     * ID of the Operation resource to return.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The bytes for operationId.
     */
    com.google.protobuf.ByteString
        getOperationIdBytes();
  }
  /**
   * Protobuf type {@code yandex.cloud.operation.GetOperationRequest}
   */
  public static final class GetOperationRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.operation.GetOperationRequest)
      GetOperationRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GetOperationRequest.newBuilder() to construct.
    private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
      super(builder);
    }
    private GetOperationRequest() {
      operationId_ = "";
    }
    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new GetOperationRequest();
    }
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private GetOperationRequest(
        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();
              operationId_ = s;
              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.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_GetOperationRequest_descriptor;
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_GetOperationRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest.class, yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest.Builder.class);
    }
    public static final int OPERATION_ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object operationId_;
    /**
     * 
     * ID of the Operation resource to return.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The operationId.
     */
    @java.lang.Override
    public java.lang.String getOperationId() {
      java.lang.Object ref = operationId_;
      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();
        operationId_ = s;
        return s;
      }
    }
    /**
     * 
     * ID of the Operation resource to return.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The bytes for operationId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getOperationIdBytes() {
      java.lang.Object ref = operationId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        operationId_ = 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;
      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(operationId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_);
      }
      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(operationId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_);
      }
      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.operation.OperationServiceOuterClass.GetOperationRequest)) {
        return super.equals(obj);
      }
      yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest other = (yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest) obj;
      if (!getOperationId()
          .equals(other.getOperationId())) 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) + OPERATION_ID_FIELD_NUMBER;
      hash = (53 * hash) + getOperationId().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest 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.operation.OperationServiceOuterClass.GetOperationRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest 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.operation.OperationServiceOuterClass.GetOperationRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest 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.operation.OperationServiceOuterClass.GetOperationRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest 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.operation.OperationServiceOuterClass.GetOperationRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest 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.operation.OperationServiceOuterClass.GetOperationRequest 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.operation.GetOperationRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.operation.GetOperationRequest)
        yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_GetOperationRequest_descriptor;
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_GetOperationRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest.class, yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest.Builder.class);
      }
      // Construct using yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest.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();
        operationId_ = "";
        return this;
      }
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_GetOperationRequest_descriptor;
      }
      @java.lang.Override
      public yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest getDefaultInstanceForType() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest.getDefaultInstance();
      }
      @java.lang.Override
      public yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest build() {
        yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      @java.lang.Override
      public yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest buildPartial() {
        yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest result = new yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest(this);
        result.operationId_ = operationId_;
        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.operation.OperationServiceOuterClass.GetOperationRequest) {
          return mergeFrom((yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      public Builder mergeFrom(yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest other) {
        if (other == yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest.getDefaultInstance()) return this;
        if (!other.getOperationId().isEmpty()) {
          operationId_ = other.operationId_;
          onChanged();
        }
        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.operation.OperationServiceOuterClass.GetOperationRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private java.lang.Object operationId_ = "";
      /**
       * 
       * ID of the Operation resource to return.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @return The operationId.
       */
      public java.lang.String getOperationId() {
        java.lang.Object ref = operationId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          operationId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * ID of the Operation resource to return.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @return The bytes for operationId.
       */
      public com.google.protobuf.ByteString
          getOperationIdBytes() {
        java.lang.Object ref = operationId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          operationId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * ID of the Operation resource to return.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @param value The operationId to set.
       * @return This builder for chaining.
       */
      public Builder setOperationId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        operationId_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the Operation resource to return.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @return This builder for chaining.
       */
      public Builder clearOperationId() {
        
        operationId_ = getDefaultInstance().getOperationId();
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the Operation resource to return.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @param value The bytes for operationId to set.
       * @return This builder for chaining.
       */
      public Builder setOperationIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        operationId_ = 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:yandex.cloud.operation.GetOperationRequest)
    }
    // @@protoc_insertion_point(class_scope:yandex.cloud.operation.GetOperationRequest)
    private static final yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest();
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.GetOperationRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public GetOperationRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new GetOperationRequest(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.operation.OperationServiceOuterClass.GetOperationRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }
  public interface CancelOperationRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.operation.CancelOperationRequest)
      com.google.protobuf.MessageOrBuilder {
    /**
     * 
     * ID of the operation to cancel.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The operationId.
     */
    java.lang.String getOperationId();
    /**
     * 
     * ID of the operation to cancel.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The bytes for operationId.
     */
    com.google.protobuf.ByteString
        getOperationIdBytes();
  }
  /**
   * Protobuf type {@code yandex.cloud.operation.CancelOperationRequest}
   */
  public static final class CancelOperationRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.operation.CancelOperationRequest)
      CancelOperationRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CancelOperationRequest.newBuilder() to construct.
    private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
      super(builder);
    }
    private CancelOperationRequest() {
      operationId_ = "";
    }
    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new CancelOperationRequest();
    }
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CancelOperationRequest(
        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();
              operationId_ = s;
              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.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_CancelOperationRequest_descriptor;
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_CancelOperationRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest.class, yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest.Builder.class);
    }
    public static final int OPERATION_ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object operationId_;
    /**
     * 
     * ID of the operation to cancel.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The operationId.
     */
    @java.lang.Override
    public java.lang.String getOperationId() {
      java.lang.Object ref = operationId_;
      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();
        operationId_ = s;
        return s;
      }
    }
    /**
     * 
     * ID of the operation to cancel.
     * 
     *
     * string operation_id = 1 [(.yandex.cloud.required) = true];
     * @return The bytes for operationId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getOperationIdBytes() {
      java.lang.Object ref = operationId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        operationId_ = 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;
      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(operationId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_);
      }
      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(operationId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_);
      }
      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.operation.OperationServiceOuterClass.CancelOperationRequest)) {
        return super.equals(obj);
      }
      yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest other = (yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest) obj;
      if (!getOperationId()
          .equals(other.getOperationId())) 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) + OPERATION_ID_FIELD_NUMBER;
      hash = (53 * hash) + getOperationId().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest 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.operation.OperationServiceOuterClass.CancelOperationRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest 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.operation.OperationServiceOuterClass.CancelOperationRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest 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.operation.OperationServiceOuterClass.CancelOperationRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest 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.operation.OperationServiceOuterClass.CancelOperationRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest 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.operation.OperationServiceOuterClass.CancelOperationRequest 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.operation.CancelOperationRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.operation.CancelOperationRequest)
        yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_CancelOperationRequest_descriptor;
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_CancelOperationRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest.class, yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest.Builder.class);
      }
      // Construct using yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest.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();
        operationId_ = "";
        return this;
      }
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.internal_static_yandex_cloud_operation_CancelOperationRequest_descriptor;
      }
      @java.lang.Override
      public yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest getDefaultInstanceForType() {
        return yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest.getDefaultInstance();
      }
      @java.lang.Override
      public yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest build() {
        yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      @java.lang.Override
      public yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest buildPartial() {
        yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest result = new yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest(this);
        result.operationId_ = operationId_;
        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.operation.OperationServiceOuterClass.CancelOperationRequest) {
          return mergeFrom((yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      public Builder mergeFrom(yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest other) {
        if (other == yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest.getDefaultInstance()) return this;
        if (!other.getOperationId().isEmpty()) {
          operationId_ = other.operationId_;
          onChanged();
        }
        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.operation.OperationServiceOuterClass.CancelOperationRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private java.lang.Object operationId_ = "";
      /**
       * 
       * ID of the operation to cancel.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @return The operationId.
       */
      public java.lang.String getOperationId() {
        java.lang.Object ref = operationId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          operationId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * ID of the operation to cancel.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @return The bytes for operationId.
       */
      public com.google.protobuf.ByteString
          getOperationIdBytes() {
        java.lang.Object ref = operationId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          operationId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * ID of the operation to cancel.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @param value The operationId to set.
       * @return This builder for chaining.
       */
      public Builder setOperationId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        operationId_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the operation to cancel.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @return This builder for chaining.
       */
      public Builder clearOperationId() {
        
        operationId_ = getDefaultInstance().getOperationId();
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the operation to cancel.
       * 
       *
       * string operation_id = 1 [(.yandex.cloud.required) = true];
       * @param value The bytes for operationId to set.
       * @return This builder for chaining.
       */
      public Builder setOperationIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        operationId_ = 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:yandex.cloud.operation.CancelOperationRequest)
    }
    // @@protoc_insertion_point(class_scope:yandex.cloud.operation.CancelOperationRequest)
    private static final yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest();
    }
    public static yandex.cloud.api.operation.OperationServiceOuterClass.CancelOperationRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public CancelOperationRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new CancelOperationRequest(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.operation.OperationServiceOuterClass.CancelOperationRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_operation_GetOperationRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_operation_GetOperationRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_operation_CancelOperationRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_operation_CancelOperationRequest_fieldAccessorTable;
  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n.yandex/cloud/operation/operation_servi" +
      "ce.proto\022\026yandex.cloud.operation\032\034google" +
      "/api/annotations.proto\032&yandex/cloud/ope" +
      "ration/operation.proto\032\035yandex/cloud/val" +
      "idation.proto\"1\n\023GetOperationRequest\022\032\n\014" +
      "operation_id\030\001 \001(\tB\004\350\3071\001\"4\n\026CancelOperat" +
      "ionRequest\022\032\n\014operation_id\030\001 \001(\tB\004\350\3071\0012\226" +
      "\002\n\020OperationService\022y\n\003Get\022+.yandex.clou" +
      "d.operation.GetOperationRequest\032!.yandex" +
      ".cloud.operation.Operation\"\"\202\323\344\223\002\034\022\032/ope" +
      "rations/{operation_id}\022\206\001\n\006Cancel\022..yand" +
      "ex.cloud.operation.CancelOperationReques" +
      "t\032!.yandex.cloud.operation.Operation\")\202\323" +
      "\344\223\002#\022!/operations/{operation_id}:cancelB" +
      "b\n\032yandex.cloud.api.operationZDgithub.co" +
      "m/yandex-cloud/go-genproto/yandex/cloud/" +
      "operation;operationb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.api.AnnotationsProto.getDescriptor(),
          yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
          yandex.cloud.api.Validation.getDescriptor(),
        });
    internal_static_yandex_cloud_operation_GetOperationRequest_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_yandex_cloud_operation_GetOperationRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_yandex_cloud_operation_GetOperationRequest_descriptor,
        new java.lang.String[] { "OperationId", });
    internal_static_yandex_cloud_operation_CancelOperationRequest_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_yandex_cloud_operation_CancelOperationRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_yandex_cloud_operation_CancelOperationRequest_descriptor,
        new java.lang.String[] { "OperationId", });
    com.google.protobuf.ExtensionRegistry registry =
        com.google.protobuf.ExtensionRegistry.newInstance();
    registry.add(com.google.api.AnnotationsProto.http);
    registry.add(yandex.cloud.api.Validation.required);
    com.google.protobuf.Descriptors.FileDescriptor
        .internalUpdateFileDescriptor(descriptor, registry);
    com.google.api.AnnotationsProto.getDescriptor();
    yandex.cloud.api.operation.OperationOuterClass.getDescriptor();
    yandex.cloud.api.Validation.getDescriptor();
  }
  // @@protoc_insertion_point(outer_class_scope)
}
              © 2015 - 2025 Weber Informatics LLC | Privacy Policy