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

com.yandex.ydb.OperationProtos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ydb/public/api/protos/ydb_operation.proto

package com.yandex.ydb;

public final class OperationProtos {
  private OperationProtos() {}
  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 OperationParamsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Ydb.Operations.OperationParams)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1;
     * @return The enum numeric value on the wire for operationMode.
     */
    int getOperationModeValue();
    /**
     * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1;
     * @return The operationMode.
     */
    com.yandex.ydb.OperationProtos.OperationParams.OperationMode getOperationMode();

    /**
     * 
     * Indicates that client is no longer interested in the result of operation after the specified duration
     * starting from the time operation arrives at the server.
     * Server will try to stop the execution of operation and if no result is currently available the operation
     * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
     * Timeout of operation does not tell anything about its result, it might be completed successfully
     * or cancelled on server.
     * 
* * .google.protobuf.Duration operation_timeout = 2; * @return Whether the operationTimeout field is set. */ boolean hasOperationTimeout(); /** *
     * Indicates that client is no longer interested in the result of operation after the specified duration
     * starting from the time operation arrives at the server.
     * Server will try to stop the execution of operation and if no result is currently available the operation
     * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
     * Timeout of operation does not tell anything about its result, it might be completed successfully
     * or cancelled on server.
     * 
* * .google.protobuf.Duration operation_timeout = 2; * @return The operationTimeout. */ com.google.protobuf.Duration getOperationTimeout(); /** *
     * Indicates that client is no longer interested in the result of operation after the specified duration
     * starting from the time operation arrives at the server.
     * Server will try to stop the execution of operation and if no result is currently available the operation
     * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
     * Timeout of operation does not tell anything about its result, it might be completed successfully
     * or cancelled on server.
     * 
* * .google.protobuf.Duration operation_timeout = 2; */ com.google.protobuf.DurationOrBuilder getOperationTimeoutOrBuilder(); /** *
     * Server will try to cancel the operation after the specified duration starting from the time
     * the operation arrives at server.
     * In case of successful cancellation operation will receive CANCELLED status code, which will be
     * sent back to client if it was waiting for the operation result.
     * In case when cancellation isn't possible, no action will be performed.
     * 
* * .google.protobuf.Duration cancel_after = 3; * @return Whether the cancelAfter field is set. */ boolean hasCancelAfter(); /** *
     * Server will try to cancel the operation after the specified duration starting from the time
     * the operation arrives at server.
     * In case of successful cancellation operation will receive CANCELLED status code, which will be
     * sent back to client if it was waiting for the operation result.
     * In case when cancellation isn't possible, no action will be performed.
     * 
* * .google.protobuf.Duration cancel_after = 3; * @return The cancelAfter. */ com.google.protobuf.Duration getCancelAfter(); /** *
     * Server will try to cancel the operation after the specified duration starting from the time
     * the operation arrives at server.
     * In case of successful cancellation operation will receive CANCELLED status code, which will be
     * sent back to client if it was waiting for the operation result.
     * In case when cancellation isn't possible, no action will be performed.
     * 
* * .google.protobuf.Duration cancel_after = 3; */ com.google.protobuf.DurationOrBuilder getCancelAfterOrBuilder(); /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ int getLabelsCount(); /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ java.util.Map getLabelsMap(); /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * If enabled, server will report cost information, if supported by the operation.
     * This flag is mostly useful for SYNC operations, to get the cost information in the response.
     * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @return The enum numeric value on the wire for reportCostInfo. */ int getReportCostInfoValue(); /** *
     * If enabled, server will report cost information, if supported by the operation.
     * This flag is mostly useful for SYNC operations, to get the cost information in the response.
     * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @return The reportCostInfo. */ com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getReportCostInfo(); } /** * Protobuf type {@code Ydb.Operations.OperationParams} */ public static final class OperationParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.OperationParams) OperationParamsOrBuilder { private static final long serialVersionUID = 0L; // Use OperationParams.newBuilder() to construct. private OperationParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OperationParams() { operationMode_ = 0; reportCostInfo_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OperationParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OperationParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); operationMode_ = rawValue; break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (operationTimeout_ != null) { subBuilder = operationTimeout_.toBuilder(); } operationTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(operationTimeout_); operationTimeout_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (cancelAfter_ != null) { subBuilder = cancelAfter_.toBuilder(); } cancelAfter_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cancelAfter_); cancelAfter_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 40: { int rawValue = input.readEnum(); reportCostInfo_ = 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 com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_OperationParams_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_OperationParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.OperationParams.class, com.yandex.ydb.OperationProtos.OperationParams.Builder.class); } /** * Protobuf enum {@code Ydb.Operations.OperationParams.OperationMode} */ public enum OperationMode implements com.google.protobuf.ProtocolMessageEnum { /** * OPERATION_MODE_UNSPECIFIED = 0; */ OPERATION_MODE_UNSPECIFIED(0), /** *
       * Server will only reply once operation is finished (ready=true), and operation object won't be
       * accessible after the reply. This is a basic request-response mode.
       * 
* * SYNC = 1; */ SYNC(1), /** * ASYNC = 2; */ ASYNC(2), UNRECOGNIZED(-1), ; /** * OPERATION_MODE_UNSPECIFIED = 0; */ public static final int OPERATION_MODE_UNSPECIFIED_VALUE = 0; /** *
       * Server will only reply once operation is finished (ready=true), and operation object won't be
       * accessible after the reply. This is a basic request-response mode.
       * 
* * SYNC = 1; */ public static final int SYNC_VALUE = 1; /** * ASYNC = 2; */ public static final int ASYNC_VALUE = 2; 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 OperationMode 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 OperationMode forNumber(int value) { switch (value) { case 0: return OPERATION_MODE_UNSPECIFIED; case 1: return SYNC; case 2: return ASYNC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< OperationMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public OperationMode findValueByNumber(int number) { return OperationMode.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 com.yandex.ydb.OperationProtos.OperationParams.getDescriptor().getEnumTypes().get(0); } private static final OperationMode[] VALUES = values(); public static OperationMode 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 OperationMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Ydb.Operations.OperationParams.OperationMode) } public static final int OPERATION_MODE_FIELD_NUMBER = 1; private int operationMode_; /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @return The enum numeric value on the wire for operationMode. */ @java.lang.Override public int getOperationModeValue() { return operationMode_; } /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @return The operationMode. */ @java.lang.Override public com.yandex.ydb.OperationProtos.OperationParams.OperationMode getOperationMode() { @SuppressWarnings("deprecation") com.yandex.ydb.OperationProtos.OperationParams.OperationMode result = com.yandex.ydb.OperationProtos.OperationParams.OperationMode.valueOf(operationMode_); return result == null ? com.yandex.ydb.OperationProtos.OperationParams.OperationMode.UNRECOGNIZED : result; } public static final int OPERATION_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration operationTimeout_; /** *
     * Indicates that client is no longer interested in the result of operation after the specified duration
     * starting from the time operation arrives at the server.
     * Server will try to stop the execution of operation and if no result is currently available the operation
     * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
     * Timeout of operation does not tell anything about its result, it might be completed successfully
     * or cancelled on server.
     * 
* * .google.protobuf.Duration operation_timeout = 2; * @return Whether the operationTimeout field is set. */ @java.lang.Override public boolean hasOperationTimeout() { return operationTimeout_ != null; } /** *
     * Indicates that client is no longer interested in the result of operation after the specified duration
     * starting from the time operation arrives at the server.
     * Server will try to stop the execution of operation and if no result is currently available the operation
     * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
     * Timeout of operation does not tell anything about its result, it might be completed successfully
     * or cancelled on server.
     * 
* * .google.protobuf.Duration operation_timeout = 2; * @return The operationTimeout. */ @java.lang.Override public com.google.protobuf.Duration getOperationTimeout() { return operationTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : operationTimeout_; } /** *
     * Indicates that client is no longer interested in the result of operation after the specified duration
     * starting from the time operation arrives at the server.
     * Server will try to stop the execution of operation and if no result is currently available the operation
     * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
     * Timeout of operation does not tell anything about its result, it might be completed successfully
     * or cancelled on server.
     * 
* * .google.protobuf.Duration operation_timeout = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getOperationTimeoutOrBuilder() { return getOperationTimeout(); } public static final int CANCEL_AFTER_FIELD_NUMBER = 3; private com.google.protobuf.Duration cancelAfter_; /** *
     * Server will try to cancel the operation after the specified duration starting from the time
     * the operation arrives at server.
     * In case of successful cancellation operation will receive CANCELLED status code, which will be
     * sent back to client if it was waiting for the operation result.
     * In case when cancellation isn't possible, no action will be performed.
     * 
* * .google.protobuf.Duration cancel_after = 3; * @return Whether the cancelAfter field is set. */ @java.lang.Override public boolean hasCancelAfter() { return cancelAfter_ != null; } /** *
     * Server will try to cancel the operation after the specified duration starting from the time
     * the operation arrives at server.
     * In case of successful cancellation operation will receive CANCELLED status code, which will be
     * sent back to client if it was waiting for the operation result.
     * In case when cancellation isn't possible, no action will be performed.
     * 
* * .google.protobuf.Duration cancel_after = 3; * @return The cancelAfter. */ @java.lang.Override public com.google.protobuf.Duration getCancelAfter() { return cancelAfter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cancelAfter_; } /** *
     * Server will try to cancel the operation after the specified duration starting from the time
     * the operation arrives at server.
     * In case of successful cancellation operation will receive CANCELLED status code, which will be
     * sent back to client if it was waiting for the operation result.
     * In case when cancellation isn't possible, no action will be performed.
     * 
* * .google.protobuf.Duration cancel_after = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getCancelAfterOrBuilder() { return getCancelAfter(); } public static final int LABELS_FIELD_NUMBER = 4; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_OperationParams_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * User-defined labels of operation.
     * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int REPORT_COST_INFO_FIELD_NUMBER = 5; private int reportCostInfo_; /** *
     * If enabled, server will report cost information, if supported by the operation.
     * This flag is mostly useful for SYNC operations, to get the cost information in the response.
     * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @return The enum numeric value on the wire for reportCostInfo. */ @java.lang.Override public int getReportCostInfoValue() { return reportCostInfo_; } /** *
     * If enabled, server will report cost information, if supported by the operation.
     * This flag is mostly useful for SYNC operations, to get the cost information in the response.
     * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @return The reportCostInfo. */ @java.lang.Override public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getReportCostInfo() { @SuppressWarnings("deprecation") com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(reportCostInfo_); return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.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 (operationMode_ != com.yandex.ydb.OperationProtos.OperationParams.OperationMode.OPERATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, operationMode_); } if (operationTimeout_ != null) { output.writeMessage(2, getOperationTimeout()); } if (cancelAfter_ != null) { output.writeMessage(3, getCancelAfter()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (reportCostInfo_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(5, reportCostInfo_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operationMode_ != com.yandex.ydb.OperationProtos.OperationParams.OperationMode.OPERATION_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationMode_); } if (operationTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOperationTimeout()); } if (cancelAfter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCancelAfter()); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, labels__); } if (reportCostInfo_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, reportCostInfo_); } 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 com.yandex.ydb.OperationProtos.OperationParams)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.OperationParams other = (com.yandex.ydb.OperationProtos.OperationParams) obj; if (operationMode_ != other.operationMode_) return false; if (hasOperationTimeout() != other.hasOperationTimeout()) return false; if (hasOperationTimeout()) { if (!getOperationTimeout() .equals(other.getOperationTimeout())) return false; } if (hasCancelAfter() != other.hasCancelAfter()) return false; if (hasCancelAfter()) { if (!getCancelAfter() .equals(other.getCancelAfter())) return false; } if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (reportCostInfo_ != other.reportCostInfo_) 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_MODE_FIELD_NUMBER; hash = (53 * hash) + operationMode_; if (hasOperationTimeout()) { hash = (37 * hash) + OPERATION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getOperationTimeout().hashCode(); } if (hasCancelAfter()) { hash = (37 * hash) + CANCEL_AFTER_FIELD_NUMBER; hash = (53 * hash) + getCancelAfter().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + REPORT_COST_INFO_FIELD_NUMBER; hash = (53 * hash) + reportCostInfo_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.OperationParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.OperationParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.OperationParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.OperationParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.OperationParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.OperationParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.OperationParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.OperationParams 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 com.yandex.ydb.OperationProtos.OperationParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.OperationParams 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 com.yandex.ydb.OperationProtos.OperationParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.OperationParams 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(com.yandex.ydb.OperationProtos.OperationParams 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 Ydb.Operations.OperationParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.OperationParams) com.yandex.ydb.OperationProtos.OperationParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_OperationParams_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_OperationParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.OperationParams.class, com.yandex.ydb.OperationProtos.OperationParams.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.OperationParams.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(); operationMode_ = 0; if (operationTimeoutBuilder_ == null) { operationTimeout_ = null; } else { operationTimeout_ = null; operationTimeoutBuilder_ = null; } if (cancelAfterBuilder_ == null) { cancelAfter_ = null; } else { cancelAfter_ = null; cancelAfterBuilder_ = null; } internalGetMutableLabels().clear(); reportCostInfo_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_OperationParams_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.OperationParams getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.OperationParams build() { com.yandex.ydb.OperationProtos.OperationParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.OperationParams buildPartial() { com.yandex.ydb.OperationProtos.OperationParams result = new com.yandex.ydb.OperationProtos.OperationParams(this); int from_bitField0_ = bitField0_; result.operationMode_ = operationMode_; if (operationTimeoutBuilder_ == null) { result.operationTimeout_ = operationTimeout_; } else { result.operationTimeout_ = operationTimeoutBuilder_.build(); } if (cancelAfterBuilder_ == null) { result.cancelAfter_ = cancelAfter_; } else { result.cancelAfter_ = cancelAfterBuilder_.build(); } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.reportCostInfo_ = reportCostInfo_; 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 com.yandex.ydb.OperationProtos.OperationParams) { return mergeFrom((com.yandex.ydb.OperationProtos.OperationParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.OperationParams other) { if (other == com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance()) return this; if (other.operationMode_ != 0) { setOperationModeValue(other.getOperationModeValue()); } if (other.hasOperationTimeout()) { mergeOperationTimeout(other.getOperationTimeout()); } if (other.hasCancelAfter()) { mergeCancelAfter(other.getCancelAfter()); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.reportCostInfo_ != 0) { setReportCostInfoValue(other.getReportCostInfoValue()); } 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 { com.yandex.ydb.OperationProtos.OperationParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.OperationParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int operationMode_ = 0; /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @return The enum numeric value on the wire for operationMode. */ @java.lang.Override public int getOperationModeValue() { return operationMode_; } /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @param value The enum numeric value on the wire for operationMode to set. * @return This builder for chaining. */ public Builder setOperationModeValue(int value) { operationMode_ = value; onChanged(); return this; } /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @return The operationMode. */ @java.lang.Override public com.yandex.ydb.OperationProtos.OperationParams.OperationMode getOperationMode() { @SuppressWarnings("deprecation") com.yandex.ydb.OperationProtos.OperationParams.OperationMode result = com.yandex.ydb.OperationProtos.OperationParams.OperationMode.valueOf(operationMode_); return result == null ? com.yandex.ydb.OperationProtos.OperationParams.OperationMode.UNRECOGNIZED : result; } /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @param value The operationMode to set. * @return This builder for chaining. */ public Builder setOperationMode(com.yandex.ydb.OperationProtos.OperationParams.OperationMode value) { if (value == null) { throw new NullPointerException(); } operationMode_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @return This builder for chaining. */ public Builder clearOperationMode() { operationMode_ = 0; onChanged(); return this; } private com.google.protobuf.Duration operationTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> operationTimeoutBuilder_; /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; * @return Whether the operationTimeout field is set. */ public boolean hasOperationTimeout() { return operationTimeoutBuilder_ != null || operationTimeout_ != null; } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; * @return The operationTimeout. */ public com.google.protobuf.Duration getOperationTimeout() { if (operationTimeoutBuilder_ == null) { return operationTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : operationTimeout_; } else { return operationTimeoutBuilder_.getMessage(); } } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; */ public Builder setOperationTimeout(com.google.protobuf.Duration value) { if (operationTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationTimeout_ = value; onChanged(); } else { operationTimeoutBuilder_.setMessage(value); } return this; } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; */ public Builder setOperationTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (operationTimeoutBuilder_ == null) { operationTimeout_ = builderForValue.build(); onChanged(); } else { operationTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; */ public Builder mergeOperationTimeout(com.google.protobuf.Duration value) { if (operationTimeoutBuilder_ == null) { if (operationTimeout_ != null) { operationTimeout_ = com.google.protobuf.Duration.newBuilder(operationTimeout_).mergeFrom(value).buildPartial(); } else { operationTimeout_ = value; } onChanged(); } else { operationTimeoutBuilder_.mergeFrom(value); } return this; } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; */ public Builder clearOperationTimeout() { if (operationTimeoutBuilder_ == null) { operationTimeout_ = null; onChanged(); } else { operationTimeout_ = null; operationTimeoutBuilder_ = null; } return this; } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; */ public com.google.protobuf.Duration.Builder getOperationTimeoutBuilder() { onChanged(); return getOperationTimeoutFieldBuilder().getBuilder(); } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; */ public com.google.protobuf.DurationOrBuilder getOperationTimeoutOrBuilder() { if (operationTimeoutBuilder_ != null) { return operationTimeoutBuilder_.getMessageOrBuilder(); } else { return operationTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : operationTimeout_; } } /** *
       * Indicates that client is no longer interested in the result of operation after the specified duration
       * starting from the time operation arrives at the server.
       * Server will try to stop the execution of operation and if no result is currently available the operation
       * will receive TIMEOUT status code, which will be sent back to client if it was waiting for the operation result.
       * Timeout of operation does not tell anything about its result, it might be completed successfully
       * or cancelled on server.
       * 
* * .google.protobuf.Duration operation_timeout = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getOperationTimeoutFieldBuilder() { if (operationTimeoutBuilder_ == null) { operationTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getOperationTimeout(), getParentForChildren(), isClean()); operationTimeout_ = null; } return operationTimeoutBuilder_; } private com.google.protobuf.Duration cancelAfter_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> cancelAfterBuilder_; /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; * @return Whether the cancelAfter field is set. */ public boolean hasCancelAfter() { return cancelAfterBuilder_ != null || cancelAfter_ != null; } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; * @return The cancelAfter. */ public com.google.protobuf.Duration getCancelAfter() { if (cancelAfterBuilder_ == null) { return cancelAfter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cancelAfter_; } else { return cancelAfterBuilder_.getMessage(); } } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; */ public Builder setCancelAfter(com.google.protobuf.Duration value) { if (cancelAfterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cancelAfter_ = value; onChanged(); } else { cancelAfterBuilder_.setMessage(value); } return this; } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; */ public Builder setCancelAfter( com.google.protobuf.Duration.Builder builderForValue) { if (cancelAfterBuilder_ == null) { cancelAfter_ = builderForValue.build(); onChanged(); } else { cancelAfterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; */ public Builder mergeCancelAfter(com.google.protobuf.Duration value) { if (cancelAfterBuilder_ == null) { if (cancelAfter_ != null) { cancelAfter_ = com.google.protobuf.Duration.newBuilder(cancelAfter_).mergeFrom(value).buildPartial(); } else { cancelAfter_ = value; } onChanged(); } else { cancelAfterBuilder_.mergeFrom(value); } return this; } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; */ public Builder clearCancelAfter() { if (cancelAfterBuilder_ == null) { cancelAfter_ = null; onChanged(); } else { cancelAfter_ = null; cancelAfterBuilder_ = null; } return this; } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; */ public com.google.protobuf.Duration.Builder getCancelAfterBuilder() { onChanged(); return getCancelAfterFieldBuilder().getBuilder(); } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; */ public com.google.protobuf.DurationOrBuilder getCancelAfterOrBuilder() { if (cancelAfterBuilder_ != null) { return cancelAfterBuilder_.getMessageOrBuilder(); } else { return cancelAfter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cancelAfter_; } } /** *
       * Server will try to cancel the operation after the specified duration starting from the time
       * the operation arrives at server.
       * In case of successful cancellation operation will receive CANCELLED status code, which will be
       * sent back to client if it was waiting for the operation result.
       * In case when cancellation isn't possible, no action will be performed.
       * 
* * .google.protobuf.Duration cancel_after = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getCancelAfterFieldBuilder() { if (cancelAfterBuilder_ == null) { cancelAfterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getCancelAfter(), getParentForChildren(), isClean()); cancelAfter_ = null; } return cancelAfterBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * User-defined labels of operation.
       * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * User-defined labels of operation.
       * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * User-defined labels of operation.
       * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * User-defined labels of operation.
       * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * User-defined labels of operation.
       * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * User-defined labels of operation.
       * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * User-defined labels of operation.
       * 
* * map<string, string> labels = 4 [(.Ydb.length) = { ... } */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private int reportCostInfo_ = 0; /** *
       * If enabled, server will report cost information, if supported by the operation.
       * This flag is mostly useful for SYNC operations, to get the cost information in the response.
       * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @return The enum numeric value on the wire for reportCostInfo. */ @java.lang.Override public int getReportCostInfoValue() { return reportCostInfo_; } /** *
       * If enabled, server will report cost information, if supported by the operation.
       * This flag is mostly useful for SYNC operations, to get the cost information in the response.
       * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @param value The enum numeric value on the wire for reportCostInfo to set. * @return This builder for chaining. */ public Builder setReportCostInfoValue(int value) { reportCostInfo_ = value; onChanged(); return this; } /** *
       * If enabled, server will report cost information, if supported by the operation.
       * This flag is mostly useful for SYNC operations, to get the cost information in the response.
       * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @return The reportCostInfo. */ @java.lang.Override public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getReportCostInfo() { @SuppressWarnings("deprecation") com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(reportCostInfo_); return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result; } /** *
       * If enabled, server will report cost information, if supported by the operation.
       * This flag is mostly useful for SYNC operations, to get the cost information in the response.
       * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @param value The reportCostInfo to set. * @return This builder for chaining. */ public Builder setReportCostInfo(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) { if (value == null) { throw new NullPointerException(); } reportCostInfo_ = value.getNumber(); onChanged(); return this; } /** *
       * If enabled, server will report cost information, if supported by the operation.
       * This flag is mostly useful for SYNC operations, to get the cost information in the response.
       * 
* * .Ydb.FeatureFlag.Status report_cost_info = 5; * @return This builder for chaining. */ public Builder clearReportCostInfo() { reportCostInfo_ = 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:Ydb.Operations.OperationParams) } // @@protoc_insertion_point(class_scope:Ydb.Operations.OperationParams) private static final com.yandex.ydb.OperationProtos.OperationParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.OperationParams(); } public static com.yandex.ydb.OperationProtos.OperationParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OperationParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OperationParams(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 com.yandex.ydb.OperationProtos.OperationParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetOperationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.GetOperationRequest) com.google.protobuf.MessageOrBuilder { /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ java.lang.String getId(); /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); } /** * Protobuf type {@code Ydb.Operations.GetOperationRequest} */ public static final class GetOperationRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.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() { id_ = ""; } @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(); id_ = 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 com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.GetOperationRequest.class, com.yandex.ydb.OperationProtos.GetOperationRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } 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 com.yandex.ydb.OperationProtos.GetOperationRequest)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.GetOperationRequest other = (com.yandex.ydb.OperationProtos.GetOperationRequest) obj; if (!getId() .equals(other.getId())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.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 com.yandex.ydb.OperationProtos.GetOperationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.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 com.yandex.ydb.OperationProtos.GetOperationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.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(com.yandex.ydb.OperationProtos.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 Ydb.Operations.GetOperationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.GetOperationRequest) com.yandex.ydb.OperationProtos.GetOperationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.GetOperationRequest.class, com.yandex.ydb.OperationProtos.GetOperationRequest.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.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(); id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.GetOperationRequest getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.GetOperationRequest.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.GetOperationRequest build() { com.yandex.ydb.OperationProtos.GetOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.GetOperationRequest buildPartial() { com.yandex.ydb.OperationProtos.GetOperationRequest result = new com.yandex.ydb.OperationProtos.GetOperationRequest(this); result.id_ = id_; 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 com.yandex.ydb.OperationProtos.GetOperationRequest) { return mergeFrom((com.yandex.ydb.OperationProtos.GetOperationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.GetOperationRequest other) { if (other == com.yandex.ydb.OperationProtos.GetOperationRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; 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 { com.yandex.ydb.OperationProtos.GetOperationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.GetOperationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1 [(.Ydb.required) = true]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = 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:Ydb.Operations.GetOperationRequest) } // @@protoc_insertion_point(class_scope:Ydb.Operations.GetOperationRequest) private static final com.yandex.ydb.OperationProtos.GetOperationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.GetOperationRequest(); } public static com.yandex.ydb.OperationProtos.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 com.yandex.ydb.OperationProtos.GetOperationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetOperationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.GetOperationResponse) com.google.protobuf.MessageOrBuilder { /** * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** * .Ydb.Operations.Operation operation = 1; * @return The operation. */ com.yandex.ydb.OperationProtos.Operation getOperation(); /** * .Ydb.Operations.Operation operation = 1; */ com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** * Protobuf type {@code Ydb.Operations.GetOperationResponse} */ public static final class GetOperationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.GetOperationResponse) GetOperationResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetOperationResponse.newBuilder() to construct. private GetOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetOperationResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetOperationResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetOperationResponse( 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: { com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null; if (operation_ != null) { subBuilder = operation_.toBuilder(); } operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(operation_); operation_ = subBuilder.buildPartial(); } 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 com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.GetOperationResponse.class, com.yandex.ydb.OperationProtos.GetOperationResponse.Builder.class); } public static final int OPERATION_FIELD_NUMBER = 1; private com.yandex.ydb.OperationProtos.Operation operation_; /** * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return operation_ != null; } /** * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public com.yandex.ydb.OperationProtos.Operation getOperation() { return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_; } /** * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return getOperation(); } 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 (operation_ != null) { output.writeMessage(1, getOperation()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } 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 com.yandex.ydb.OperationProtos.GetOperationResponse)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.GetOperationResponse other = (com.yandex.ydb.OperationProtos.GetOperationResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.GetOperationResponse 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 com.yandex.ydb.OperationProtos.GetOperationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.GetOperationResponse 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 com.yandex.ydb.OperationProtos.GetOperationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.GetOperationResponse 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(com.yandex.ydb.OperationProtos.GetOperationResponse 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 Ydb.Operations.GetOperationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.GetOperationResponse) com.yandex.ydb.OperationProtos.GetOperationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.GetOperationResponse.class, com.yandex.ydb.OperationProtos.GetOperationResponse.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.GetOperationResponse.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(); if (operationBuilder_ == null) { operation_ = null; } else { operation_ = null; operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.GetOperationResponse getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.GetOperationResponse.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.GetOperationResponse build() { com.yandex.ydb.OperationProtos.GetOperationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.GetOperationResponse buildPartial() { com.yandex.ydb.OperationProtos.GetOperationResponse result = new com.yandex.ydb.OperationProtos.GetOperationResponse(this); if (operationBuilder_ == null) { result.operation_ = operation_; } else { result.operation_ = operationBuilder_.build(); } 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 com.yandex.ydb.OperationProtos.GetOperationResponse) { return mergeFrom((com.yandex.ydb.OperationProtos.GetOperationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.GetOperationResponse other) { if (other == com.yandex.ydb.OperationProtos.GetOperationResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } 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 { com.yandex.ydb.OperationProtos.GetOperationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.GetOperationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.yandex.ydb.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_; /** * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return operationBuilder_ != null || operation_ != null; } /** * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public com.yandex.ydb.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; onChanged(); } else { operationBuilder_.setMessage(value); } return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { operationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (operation_ != null) { operation_ = com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial(); } else { operation_ = value; } onChanged(); } else { operationBuilder_.mergeFrom(value); } return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { if (operationBuilder_ == null) { operation_ = null; onChanged(); } else { operation_ = null; operationBuilder_ = null; } return this; } /** * .Ydb.Operations.Operation operation = 1; */ public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() { onChanged(); return getOperationFieldBuilder().getBuilder(); } /** * .Ydb.Operations.Operation operation = 1; */ public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>( getOperation(), getParentForChildren(), isClean()); operation_ = null; } return operationBuilder_; } @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:Ydb.Operations.GetOperationResponse) } // @@protoc_insertion_point(class_scope:Ydb.Operations.GetOperationResponse) private static final com.yandex.ydb.OperationProtos.GetOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.GetOperationResponse(); } public static com.yandex.ydb.OperationProtos.GetOperationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetOperationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetOperationResponse(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 com.yandex.ydb.OperationProtos.GetOperationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelOperationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.CancelOperationRequest) com.google.protobuf.MessageOrBuilder { /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ java.lang.String getId(); /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); } /** * Protobuf type {@code Ydb.Operations.CancelOperationRequest} */ public static final class CancelOperationRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.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() { id_ = ""; } @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(); id_ = 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 com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.CancelOperationRequest.class, com.yandex.ydb.OperationProtos.CancelOperationRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } 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 com.yandex.ydb.OperationProtos.CancelOperationRequest)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.CancelOperationRequest other = (com.yandex.ydb.OperationProtos.CancelOperationRequest) obj; if (!getId() .equals(other.getId())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.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 com.yandex.ydb.OperationProtos.CancelOperationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.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 com.yandex.ydb.OperationProtos.CancelOperationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.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(com.yandex.ydb.OperationProtos.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 Ydb.Operations.CancelOperationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.CancelOperationRequest) com.yandex.ydb.OperationProtos.CancelOperationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.CancelOperationRequest.class, com.yandex.ydb.OperationProtos.CancelOperationRequest.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.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(); id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.CancelOperationRequest getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.CancelOperationRequest.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.CancelOperationRequest build() { com.yandex.ydb.OperationProtos.CancelOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.CancelOperationRequest buildPartial() { com.yandex.ydb.OperationProtos.CancelOperationRequest result = new com.yandex.ydb.OperationProtos.CancelOperationRequest(this); result.id_ = id_; 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 com.yandex.ydb.OperationProtos.CancelOperationRequest) { return mergeFrom((com.yandex.ydb.OperationProtos.CancelOperationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.CancelOperationRequest other) { if (other == com.yandex.ydb.OperationProtos.CancelOperationRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; 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 { com.yandex.ydb.OperationProtos.CancelOperationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.CancelOperationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1 [(.Ydb.required) = true]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = 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:Ydb.Operations.CancelOperationRequest) } // @@protoc_insertion_point(class_scope:Ydb.Operations.CancelOperationRequest) private static final com.yandex.ydb.OperationProtos.CancelOperationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.CancelOperationRequest(); } public static com.yandex.ydb.OperationProtos.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 com.yandex.ydb.OperationProtos.CancelOperationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelOperationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.CancelOperationResponse) com.google.protobuf.MessageOrBuilder { /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); } /** * Protobuf type {@code Ydb.Operations.CancelOperationResponse} */ public static final class CancelOperationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.CancelOperationResponse) CancelOperationResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CancelOperationResponse.newBuilder() to construct. private CancelOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CancelOperationResponse() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CancelOperationResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CancelOperationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.CancelOperationResponse.class, com.yandex.ydb.OperationProtos.CancelOperationResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.OperationProtos.CancelOperationResponse)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.CancelOperationResponse other = (com.yandex.ydb.OperationProtos.CancelOperationResponse) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse 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 com.yandex.ydb.OperationProtos.CancelOperationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse 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 com.yandex.ydb.OperationProtos.CancelOperationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse 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(com.yandex.ydb.OperationProtos.CancelOperationResponse 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 Ydb.Operations.CancelOperationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.CancelOperationResponse) com.yandex.ydb.OperationProtos.CancelOperationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.CancelOperationResponse.class, com.yandex.ydb.OperationProtos.CancelOperationResponse.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.CancelOperationResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.CancelOperationResponse getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.CancelOperationResponse.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.CancelOperationResponse build() { com.yandex.ydb.OperationProtos.CancelOperationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.CancelOperationResponse buildPartial() { com.yandex.ydb.OperationProtos.CancelOperationResponse result = new com.yandex.ydb.OperationProtos.CancelOperationResponse(this); int from_bitField0_ = bitField0_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } 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 com.yandex.ydb.OperationProtos.CancelOperationResponse) { return mergeFrom((com.yandex.ydb.OperationProtos.CancelOperationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.CancelOperationResponse other) { if (other == com.yandex.ydb.OperationProtos.CancelOperationResponse.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } 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 { com.yandex.ydb.OperationProtos.CancelOperationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.CancelOperationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @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; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } @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:Ydb.Operations.CancelOperationResponse) } // @@protoc_insertion_point(class_scope:Ydb.Operations.CancelOperationResponse) private static final com.yandex.ydb.OperationProtos.CancelOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.CancelOperationResponse(); } public static com.yandex.ydb.OperationProtos.CancelOperationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CancelOperationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CancelOperationResponse(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 com.yandex.ydb.OperationProtos.CancelOperationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ForgetOperationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.ForgetOperationRequest) com.google.protobuf.MessageOrBuilder { /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ java.lang.String getId(); /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); } /** * Protobuf type {@code Ydb.Operations.ForgetOperationRequest} */ public static final class ForgetOperationRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.ForgetOperationRequest) ForgetOperationRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ForgetOperationRequest.newBuilder() to construct. private ForgetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ForgetOperationRequest() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForgetOperationRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ForgetOperationRequest( 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(); id_ = 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 com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ForgetOperationRequest.class, com.yandex.ydb.OperationProtos.ForgetOperationRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } 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 com.yandex.ydb.OperationProtos.ForgetOperationRequest)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.ForgetOperationRequest other = (com.yandex.ydb.OperationProtos.ForgetOperationRequest) obj; if (!getId() .equals(other.getId())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest 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 com.yandex.ydb.OperationProtos.ForgetOperationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest 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 com.yandex.ydb.OperationProtos.ForgetOperationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest 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(com.yandex.ydb.OperationProtos.ForgetOperationRequest 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 Ydb.Operations.ForgetOperationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.ForgetOperationRequest) com.yandex.ydb.OperationProtos.ForgetOperationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ForgetOperationRequest.class, com.yandex.ydb.OperationProtos.ForgetOperationRequest.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.ForgetOperationRequest.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(); id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.ForgetOperationRequest getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.ForgetOperationRequest.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.ForgetOperationRequest build() { com.yandex.ydb.OperationProtos.ForgetOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.ForgetOperationRequest buildPartial() { com.yandex.ydb.OperationProtos.ForgetOperationRequest result = new com.yandex.ydb.OperationProtos.ForgetOperationRequest(this); result.id_ = id_; 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 com.yandex.ydb.OperationProtos.ForgetOperationRequest) { return mergeFrom((com.yandex.ydb.OperationProtos.ForgetOperationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.ForgetOperationRequest other) { if (other == com.yandex.ydb.OperationProtos.ForgetOperationRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; 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 { com.yandex.ydb.OperationProtos.ForgetOperationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.ForgetOperationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * string id = 1 [(.Ydb.required) = true]; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1 [(.Ydb.required) = true]; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1 [(.Ydb.required) = true]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = 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:Ydb.Operations.ForgetOperationRequest) } // @@protoc_insertion_point(class_scope:Ydb.Operations.ForgetOperationRequest) private static final com.yandex.ydb.OperationProtos.ForgetOperationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.ForgetOperationRequest(); } public static com.yandex.ydb.OperationProtos.ForgetOperationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ForgetOperationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ForgetOperationRequest(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 com.yandex.ydb.OperationProtos.ForgetOperationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ForgetOperationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.ForgetOperationResponse) com.google.protobuf.MessageOrBuilder { /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); } /** * Protobuf type {@code Ydb.Operations.ForgetOperationResponse} */ public static final class ForgetOperationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.ForgetOperationResponse) ForgetOperationResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ForgetOperationResponse.newBuilder() to construct. private ForgetOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ForgetOperationResponse() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForgetOperationResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ForgetOperationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ForgetOperationResponse.class, com.yandex.ydb.OperationProtos.ForgetOperationResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.OperationProtos.ForgetOperationResponse)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.ForgetOperationResponse other = (com.yandex.ydb.OperationProtos.ForgetOperationResponse) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse 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 com.yandex.ydb.OperationProtos.ForgetOperationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse 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 com.yandex.ydb.OperationProtos.ForgetOperationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse 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(com.yandex.ydb.OperationProtos.ForgetOperationResponse 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 Ydb.Operations.ForgetOperationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.ForgetOperationResponse) com.yandex.ydb.OperationProtos.ForgetOperationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ForgetOperationResponse.class, com.yandex.ydb.OperationProtos.ForgetOperationResponse.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.ForgetOperationResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.ForgetOperationResponse getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.ForgetOperationResponse.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.ForgetOperationResponse build() { com.yandex.ydb.OperationProtos.ForgetOperationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.ForgetOperationResponse buildPartial() { com.yandex.ydb.OperationProtos.ForgetOperationResponse result = new com.yandex.ydb.OperationProtos.ForgetOperationResponse(this); int from_bitField0_ = bitField0_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } 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 com.yandex.ydb.OperationProtos.ForgetOperationResponse) { return mergeFrom((com.yandex.ydb.OperationProtos.ForgetOperationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.ForgetOperationResponse other) { if (other == com.yandex.ydb.OperationProtos.ForgetOperationResponse.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } 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 { com.yandex.ydb.OperationProtos.ForgetOperationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.ForgetOperationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @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; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } @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:Ydb.Operations.ForgetOperationResponse) } // @@protoc_insertion_point(class_scope:Ydb.Operations.ForgetOperationResponse) private static final com.yandex.ydb.OperationProtos.ForgetOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.ForgetOperationResponse(); } public static com.yandex.ydb.OperationProtos.ForgetOperationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ForgetOperationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ForgetOperationResponse(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 com.yandex.ydb.OperationProtos.ForgetOperationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.ListOperationsRequest) com.google.protobuf.MessageOrBuilder { /** * string kind = 1 [(.Ydb.required) = true]; * @return The kind. */ java.lang.String getKind(); /** * string kind = 1 [(.Ydb.required) = true]; * @return The bytes for kind. */ com.google.protobuf.ByteString getKindBytes(); /** * uint64 page_size = 2; * @return The pageSize. */ long getPageSize(); /** * string page_token = 3; * @return The pageToken. */ java.lang.String getPageToken(); /** * string page_token = 3; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code Ydb.Operations.ListOperationsRequest} */ public static final class ListOperationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.ListOperationsRequest) ListOperationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListOperationsRequest.newBuilder() to construct. private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListOperationsRequest() { kind_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListOperationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListOperationsRequest( 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(); kind_ = s; break; } case 16: { pageSize_ = input.readUInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = 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 com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ListOperationsRequest.class, com.yandex.ydb.OperationProtos.ListOperationsRequest.Builder.class); } public static final int KIND_FIELD_NUMBER = 1; private volatile java.lang.Object kind_; /** * string kind = 1 [(.Ydb.required) = true]; * @return The kind. */ @java.lang.Override public java.lang.String getKind() { java.lang.Object ref = kind_; 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(); kind_ = s; return s; } } /** * string kind = 1 [(.Ydb.required) = true]; * @return The bytes for kind. */ @java.lang.Override public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** * uint64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** * string page_token = 3; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; } } /** * string page_token = 3; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = 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(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } if (pageSize_ != 0L) { output.writeUInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } 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(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } 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 com.yandex.ydb.OperationProtos.ListOperationsRequest)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.ListOperationsRequest other = (com.yandex.ydb.OperationProtos.ListOperationsRequest) obj; if (!getKind() .equals(other.getKind())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) 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) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest 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 com.yandex.ydb.OperationProtos.ListOperationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest 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 com.yandex.ydb.OperationProtos.ListOperationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest 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(com.yandex.ydb.OperationProtos.ListOperationsRequest 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 Ydb.Operations.ListOperationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.ListOperationsRequest) com.yandex.ydb.OperationProtos.ListOperationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ListOperationsRequest.class, com.yandex.ydb.OperationProtos.ListOperationsRequest.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.ListOperationsRequest.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(); kind_ = ""; pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.ListOperationsRequest getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.ListOperationsRequest.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.ListOperationsRequest build() { com.yandex.ydb.OperationProtos.ListOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.ListOperationsRequest buildPartial() { com.yandex.ydb.OperationProtos.ListOperationsRequest result = new com.yandex.ydb.OperationProtos.ListOperationsRequest(this); result.kind_ = kind_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; 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 com.yandex.ydb.OperationProtos.ListOperationsRequest) { return mergeFrom((com.yandex.ydb.OperationProtos.ListOperationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.ListOperationsRequest other) { if (other == com.yandex.ydb.OperationProtos.ListOperationsRequest.getDefaultInstance()) return this; if (!other.getKind().isEmpty()) { kind_ = other.kind_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; 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 { com.yandex.ydb.OperationProtos.ListOperationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.ListOperationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object kind_ = ""; /** * string kind = 1 [(.Ydb.required) = true]; * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } else { return (java.lang.String) ref; } } /** * string kind = 1 [(.Ydb.required) = true]; * @return The bytes for kind. */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string kind = 1 [(.Ydb.required) = true]; * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind( java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); return this; } /** * string kind = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** * string kind = 1 [(.Ydb.required) = true]; * @param value The bytes for kind to set. * @return This builder for chaining. */ public Builder setKindBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; onChanged(); return this; } private long pageSize_ ; /** * uint64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** * uint64 page_size = 2; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** * uint64 page_size = 2; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** * string page_token = 3; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** * string page_token = 3; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string page_token = 3; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** * string page_token = 3; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** * string page_token = 3; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = 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:Ydb.Operations.ListOperationsRequest) } // @@protoc_insertion_point(class_scope:Ydb.Operations.ListOperationsRequest) private static final com.yandex.ydb.OperationProtos.ListOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.ListOperationsRequest(); } public static com.yandex.ydb.OperationProtos.ListOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListOperationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListOperationsRequest(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 com.yandex.ydb.OperationProtos.ListOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.ListOperationsResponse) com.google.protobuf.MessageOrBuilder { /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** * repeated .Ydb.Operations.Operation operations = 3; */ java.util.List getOperationsList(); /** * repeated .Ydb.Operations.Operation operations = 3; */ com.yandex.ydb.OperationProtos.Operation getOperations(int index); /** * repeated .Ydb.Operations.Operation operations = 3; */ int getOperationsCount(); /** * repeated .Ydb.Operations.Operation operations = 3; */ java.util.List getOperationsOrBuilderList(); /** * repeated .Ydb.Operations.Operation operations = 3; */ com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationsOrBuilder( int index); /** * string next_page_token = 4; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** * string next_page_token = 4; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code Ydb.Operations.ListOperationsResponse} */ public static final class ListOperationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.ListOperationsResponse) ListOperationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListOperationsResponse.newBuilder() to construct. private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListOperationsResponse() { status_ = 0; issues_ = java.util.Collections.emptyList(); operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListOperationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListOperationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { operations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } operations_.add( input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry)); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ListOperationsResponse.class, com.yandex.ydb.OperationProtos.ListOperationsResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int OPERATIONS_FIELD_NUMBER = 3; private java.util.List operations_; /** * repeated .Ydb.Operations.Operation operations = 3; */ @java.lang.Override public java.util.List getOperationsList() { return operations_; } /** * repeated .Ydb.Operations.Operation operations = 3; */ @java.lang.Override public java.util.List getOperationsOrBuilderList() { return operations_; } /** * repeated .Ydb.Operations.Operation operations = 3; */ @java.lang.Override public int getOperationsCount() { return operations_.size(); } /** * repeated .Ydb.Operations.Operation operations = 3; */ @java.lang.Override public com.yandex.ydb.OperationProtos.Operation getOperations(int index) { return operations_.get(index); } /** * repeated .Ydb.Operations.Operation operations = 3; */ @java.lang.Override public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object nextPageToken_; /** * string next_page_token = 4; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** * string next_page_token = 4; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } for (int i = 0; i < operations_.size(); i++) { output.writeMessage(3, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } for (int i = 0; i < operations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextPageToken_); } 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 com.yandex.ydb.OperationProtos.ListOperationsResponse)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.ListOperationsResponse other = (com.yandex.ydb.OperationProtos.ListOperationsResponse) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (!getOperationsList() .equals(other.getOperationsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse 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 com.yandex.ydb.OperationProtos.ListOperationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse 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 com.yandex.ydb.OperationProtos.ListOperationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse 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(com.yandex.ydb.OperationProtos.ListOperationsResponse 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 Ydb.Operations.ListOperationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.ListOperationsResponse) com.yandex.ydb.OperationProtos.ListOperationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.ListOperationsResponse.class, com.yandex.ydb.OperationProtos.ListOperationsResponse.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.ListOperationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); getOperationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { operationsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.ListOperationsResponse getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.ListOperationsResponse.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.ListOperationsResponse build() { com.yandex.ydb.OperationProtos.ListOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.ListOperationsResponse buildPartial() { com.yandex.ydb.OperationProtos.ListOperationsResponse result = new com.yandex.ydb.OperationProtos.ListOperationsResponse(this); int from_bitField0_ = bitField0_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); bitField0_ = (bitField0_ & ~0x00000002); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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 com.yandex.ydb.OperationProtos.ListOperationsResponse) { return mergeFrom((com.yandex.ydb.OperationProtos.ListOperationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.ListOperationsResponse other) { if (other == com.yandex.ydb.OperationProtos.ListOperationsResponse.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } } else { if (!other.operations_.isEmpty()) { if (operationsBuilder_.isEmpty()) { operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000002); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; 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 { com.yandex.ydb.OperationProtos.ListOperationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.ListOperationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @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; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationsBuilder_; /** * repeated .Ydb.Operations.Operation operations = 3; */ public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { return operationsBuilder_.getMessageList(); } } /** * repeated .Ydb.Operations.Operation operations = 3; */ public int getOperationsCount() { if (operationsBuilder_ == null) { return operations_.size(); } else { return operationsBuilder_.getCount(); } } /** * repeated .Ydb.Operations.Operation operations = 3; */ public com.yandex.ydb.OperationProtos.Operation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessage(index); } } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder setOperations( int index, com.yandex.ydb.OperationProtos.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.set(index, value); onChanged(); } else { operationsBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder setOperations( int index, com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder addOperations(com.yandex.ydb.OperationProtos.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); } else { operationsBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder addOperations( int index, com.yandex.ydb.OperationProtos.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(index, value); onChanged(); } else { operationsBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder addOperations( com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder addOperations( int index, com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder addAllOperations( java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { operationsBuilder_.clear(); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public Builder removeOperations(int index) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.remove(index); onChanged(); } else { operationsBuilder_.remove(index); } return this; } /** * repeated .Ydb.Operations.Operation operations = 3; */ public com.yandex.ydb.OperationProtos.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Operations.Operation operations = 3; */ public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationsOrBuilder( int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Operations.Operation operations = 3; */ public java.util.List getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operations_); } } /** * repeated .Ydb.Operations.Operation operations = 3; */ public com.yandex.ydb.OperationProtos.Operation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( com.yandex.ydb.OperationProtos.Operation.getDefaultInstance()); } /** * repeated .Ydb.Operations.Operation operations = 3; */ public com.yandex.ydb.OperationProtos.Operation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( index, com.yandex.ydb.OperationProtos.Operation.getDefaultInstance()); } /** * repeated .Ydb.Operations.Operation operations = 3; */ public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>( operations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** * string next_page_token = 4; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** * string next_page_token = 4; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string next_page_token = 4; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** * string next_page_token = 4; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** * string next_page_token = 4; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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:Ydb.Operations.ListOperationsResponse) } // @@protoc_insertion_point(class_scope:Ydb.Operations.ListOperationsResponse) private static final com.yandex.ydb.OperationProtos.ListOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.ListOperationsResponse(); } public static com.yandex.ydb.OperationProtos.ListOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListOperationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListOperationsResponse(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 com.yandex.ydb.OperationProtos.ListOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperationOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Operations.Operation) com.google.protobuf.MessageOrBuilder { /** *
     * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
     * not created in the first place, as in SYNC operation mode).
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
     * not created in the first place, as in SYNC operation mode).
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * true - this operation has beed finished (doesn't matter successful or not),
     * so Status field has status code, and Result field can contains result data.
     * false - this operation still running. You can repeat request using operation Id.
     * 
* * bool ready = 2; * @return The ready. */ boolean getReady(); /** * .Ydb.StatusIds.StatusCode status = 3; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 3; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** *
     * Result data
     * 
* * .google.protobuf.Any result = 5; * @return Whether the result field is set. */ boolean hasResult(); /** *
     * Result data
     * 
* * .google.protobuf.Any result = 5; * @return The result. */ com.google.protobuf.Any getResult(); /** *
     * Result data
     * 
* * .google.protobuf.Any result = 5; */ com.google.protobuf.AnyOrBuilder getResultOrBuilder(); /** * .google.protobuf.Any metadata = 6; * @return Whether the metadata field is set. */ boolean hasMetadata(); /** * .google.protobuf.Any metadata = 6; * @return The metadata. */ com.google.protobuf.Any getMetadata(); /** * .google.protobuf.Any metadata = 6; */ com.google.protobuf.AnyOrBuilder getMetadataOrBuilder(); /** *
     * Contains information about the cost of the operation.
     * For completed operations, it shows the final cost of the operation.
     * For operations in progress, it might indicate the current cost of the operation (if supported).
     * 
* * .Ydb.CostInfo cost_info = 7; * @return Whether the costInfo field is set. */ boolean hasCostInfo(); /** *
     * Contains information about the cost of the operation.
     * For completed operations, it shows the final cost of the operation.
     * For operations in progress, it might indicate the current cost of the operation (if supported).
     * 
* * .Ydb.CostInfo cost_info = 7; * @return The costInfo. */ com.yandex.ydb.common.CommonProtos.CostInfo getCostInfo(); /** *
     * Contains information about the cost of the operation.
     * For completed operations, it shows the final cost of the operation.
     * For operations in progress, it might indicate the current cost of the operation (if supported).
     * 
* * .Ydb.CostInfo cost_info = 7; */ com.yandex.ydb.common.CommonProtos.CostInfoOrBuilder getCostInfoOrBuilder(); } /** * Protobuf type {@code Ydb.Operations.Operation} */ public static final class Operation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Operations.Operation) OperationOrBuilder { private static final long serialVersionUID = 0L; // Use Operation.newBuilder() to construct. private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Operation() { id_ = ""; status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Operation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Operation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 16: { ready_ = input.readBool(); break; } case 24: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } case 42: { com.google.protobuf.Any.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Any.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } break; } case 58: { com.yandex.ydb.common.CommonProtos.CostInfo.Builder subBuilder = null; if (costInfo_ != null) { subBuilder = costInfo_.toBuilder(); } costInfo_ = input.readMessage(com.yandex.ydb.common.CommonProtos.CostInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(costInfo_); costInfo_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.Operation.class, com.yandex.ydb.OperationProtos.Operation.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
     * not created in the first place, as in SYNC operation mode).
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
     * not created in the first place, as in SYNC operation mode).
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READY_FIELD_NUMBER = 2; private boolean ready_; /** *
     * true - this operation has beed finished (doesn't matter successful or not),
     * so Status field has status code, and Result field can contains result data.
     * false - this operation still running. You can repeat request using operation Id.
     * 
* * bool ready = 2; * @return The ready. */ @java.lang.Override public boolean getReady() { return ready_; } public static final int STATUS_FIELD_NUMBER = 3; private int status_; /** * .Ydb.StatusIds.StatusCode status = 3; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 3; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 4; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int RESULT_FIELD_NUMBER = 5; private com.google.protobuf.Any result_; /** *
     * Result data
     * 
* * .google.protobuf.Any result = 5; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** *
     * Result data
     * 
* * .google.protobuf.Any result = 5; * @return The result. */ @java.lang.Override public com.google.protobuf.Any getResult() { return result_ == null ? com.google.protobuf.Any.getDefaultInstance() : result_; } /** *
     * Result data
     * 
* * .google.protobuf.Any result = 5; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getResultOrBuilder() { return getResult(); } public static final int METADATA_FIELD_NUMBER = 6; private com.google.protobuf.Any metadata_; /** * .google.protobuf.Any metadata = 6; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return metadata_ != null; } /** * .google.protobuf.Any metadata = 6; * @return The metadata. */ @java.lang.Override public com.google.protobuf.Any getMetadata() { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } /** * .google.protobuf.Any metadata = 6; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int COST_INFO_FIELD_NUMBER = 7; private com.yandex.ydb.common.CommonProtos.CostInfo costInfo_; /** *
     * Contains information about the cost of the operation.
     * For completed operations, it shows the final cost of the operation.
     * For operations in progress, it might indicate the current cost of the operation (if supported).
     * 
* * .Ydb.CostInfo cost_info = 7; * @return Whether the costInfo field is set. */ @java.lang.Override public boolean hasCostInfo() { return costInfo_ != null; } /** *
     * Contains information about the cost of the operation.
     * For completed operations, it shows the final cost of the operation.
     * For operations in progress, it might indicate the current cost of the operation (if supported).
     * 
* * .Ydb.CostInfo cost_info = 7; * @return The costInfo. */ @java.lang.Override public com.yandex.ydb.common.CommonProtos.CostInfo getCostInfo() { return costInfo_ == null ? com.yandex.ydb.common.CommonProtos.CostInfo.getDefaultInstance() : costInfo_; } /** *
     * Contains information about the cost of the operation.
     * For completed operations, it shows the final cost of the operation.
     * For operations in progress, it might indicate the current cost of the operation (if supported).
     * 
* * .Ydb.CostInfo cost_info = 7; */ @java.lang.Override public com.yandex.ydb.common.CommonProtos.CostInfoOrBuilder getCostInfoOrBuilder() { return getCostInfo(); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (ready_ != false) { output.writeBool(2, ready_); } if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(4, issues_.get(i)); } if (result_ != null) { output.writeMessage(5, getResult()); } if (metadata_ != null) { output.writeMessage(6, getMetadata()); } if (costInfo_ != null) { output.writeMessage(7, getCostInfo()); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (ready_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, ready_); } if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, issues_.get(i)); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getResult()); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMetadata()); } if (costInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCostInfo()); } 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 com.yandex.ydb.OperationProtos.Operation)) { return super.equals(obj); } com.yandex.ydb.OperationProtos.Operation other = (com.yandex.ydb.OperationProtos.Operation) obj; if (!getId() .equals(other.getId())) return false; if (getReady() != other.getReady()) return false; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (hasCostInfo() != other.hasCostInfo()) return false; if (hasCostInfo()) { if (!getCostInfo() .equals(other.getCostInfo())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + READY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReady()); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (hasCostInfo()) { hash = (37 * hash) + COST_INFO_FIELD_NUMBER; hash = (53 * hash) + getCostInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.OperationProtos.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.Operation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.Operation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.OperationProtos.Operation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.OperationProtos.Operation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.Operation 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 com.yandex.ydb.OperationProtos.Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.Operation 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 com.yandex.ydb.OperationProtos.Operation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.OperationProtos.Operation 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(com.yandex.ydb.OperationProtos.Operation 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 Ydb.Operations.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Operations.Operation) com.yandex.ydb.OperationProtos.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.OperationProtos.Operation.class, com.yandex.ydb.OperationProtos.Operation.Builder.class); } // Construct using com.yandex.ydb.OperationProtos.Operation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; ready_ = false; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } if (costInfoBuilder_ == null) { costInfo_ = null; } else { costInfo_ = null; costInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.OperationProtos.internal_static_Ydb_Operations_Operation_descriptor; } @java.lang.Override public com.yandex.ydb.OperationProtos.Operation getDefaultInstanceForType() { return com.yandex.ydb.OperationProtos.Operation.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.OperationProtos.Operation build() { com.yandex.ydb.OperationProtos.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.OperationProtos.Operation buildPartial() { com.yandex.ydb.OperationProtos.Operation result = new com.yandex.ydb.OperationProtos.Operation(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.ready_ = ready_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (costInfoBuilder_ == null) { result.costInfo_ = costInfo_; } else { result.costInfo_ = costInfoBuilder_.build(); } 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 com.yandex.ydb.OperationProtos.Operation) { return mergeFrom((com.yandex.ydb.OperationProtos.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.OperationProtos.Operation other) { if (other == com.yandex.ydb.OperationProtos.Operation.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.getReady() != false) { setReady(other.getReady()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasCostInfo()) { mergeCostInfo(other.getCostInfo()); } 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 { com.yandex.ydb.OperationProtos.Operation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.OperationProtos.Operation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
       * not created in the first place, as in SYNC operation mode).
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
       * not created in the first place, as in SYNC operation mode).
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
       * not created in the first place, as in SYNC operation mode).
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
       * not created in the first place, as in SYNC operation mode).
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Identifier of the operation, empty value means no active operation object is present (it was forgotten or
       * not created in the first place, as in SYNC operation mode).
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private boolean ready_ ; /** *
       * true - this operation has beed finished (doesn't matter successful or not),
       * so Status field has status code, and Result field can contains result data.
       * false - this operation still running. You can repeat request using operation Id.
       * 
* * bool ready = 2; * @return The ready. */ @java.lang.Override public boolean getReady() { return ready_; } /** *
       * true - this operation has beed finished (doesn't matter successful or not),
       * so Status field has status code, and Result field can contains result data.
       * false - this operation still running. You can repeat request using operation Id.
       * 
* * bool ready = 2; * @param value The ready to set. * @return This builder for chaining. */ public Builder setReady(boolean value) { ready_ = value; onChanged(); return this; } /** *
       * true - this operation has beed finished (doesn't matter successful or not),
       * so Status field has status code, and Result field can contains result data.
       * false - this operation still running. You can repeat request using operation Id.
       * 
* * bool ready = 2; * @return This builder for chaining. */ public Builder clearReady() { ready_ = false; onChanged(); return this; } private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 3; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 3; * @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; } /** * .Ydb.StatusIds.StatusCode status = 3; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 3; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 3; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private com.google.protobuf.Any result_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> resultBuilder_; /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; * @return The result. */ public com.google.protobuf.Any getResult() { if (resultBuilder_ == null) { return result_ == null ? com.google.protobuf.Any.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public Builder setResult(com.google.protobuf.Any value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public Builder setResult( com.google.protobuf.Any.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public Builder mergeResult(com.google.protobuf.Any value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = com.google.protobuf.Any.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public com.google.protobuf.Any.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public com.google.protobuf.AnyOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.google.protobuf.Any.getDefaultInstance() : result_; } } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private com.google.protobuf.Any metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> metadataBuilder_; /** * .google.protobuf.Any metadata = 6; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** * .google.protobuf.Any metadata = 6; * @return The metadata. */ public com.google.protobuf.Any getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * .google.protobuf.Any metadata = 6; */ public Builder setMetadata(com.google.protobuf.Any value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Any metadata = 6; */ public Builder setMetadata( com.google.protobuf.Any.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Any metadata = 6; */ public Builder mergeMetadata(com.google.protobuf.Any value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Any metadata = 6; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** * .google.protobuf.Any metadata = 6; */ public com.google.protobuf.Any.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * .google.protobuf.Any metadata = 6; */ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } } /** * .google.protobuf.Any metadata = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private com.yandex.ydb.common.CommonProtos.CostInfo costInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.common.CommonProtos.CostInfo, com.yandex.ydb.common.CommonProtos.CostInfo.Builder, com.yandex.ydb.common.CommonProtos.CostInfoOrBuilder> costInfoBuilder_; /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; * @return Whether the costInfo field is set. */ public boolean hasCostInfo() { return costInfoBuilder_ != null || costInfo_ != null; } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; * @return The costInfo. */ public com.yandex.ydb.common.CommonProtos.CostInfo getCostInfo() { if (costInfoBuilder_ == null) { return costInfo_ == null ? com.yandex.ydb.common.CommonProtos.CostInfo.getDefaultInstance() : costInfo_; } else { return costInfoBuilder_.getMessage(); } } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; */ public Builder setCostInfo(com.yandex.ydb.common.CommonProtos.CostInfo value) { if (costInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } costInfo_ = value; onChanged(); } else { costInfoBuilder_.setMessage(value); } return this; } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; */ public Builder setCostInfo( com.yandex.ydb.common.CommonProtos.CostInfo.Builder builderForValue) { if (costInfoBuilder_ == null) { costInfo_ = builderForValue.build(); onChanged(); } else { costInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; */ public Builder mergeCostInfo(com.yandex.ydb.common.CommonProtos.CostInfo value) { if (costInfoBuilder_ == null) { if (costInfo_ != null) { costInfo_ = com.yandex.ydb.common.CommonProtos.CostInfo.newBuilder(costInfo_).mergeFrom(value).buildPartial(); } else { costInfo_ = value; } onChanged(); } else { costInfoBuilder_.mergeFrom(value); } return this; } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; */ public Builder clearCostInfo() { if (costInfoBuilder_ == null) { costInfo_ = null; onChanged(); } else { costInfo_ = null; costInfoBuilder_ = null; } return this; } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; */ public com.yandex.ydb.common.CommonProtos.CostInfo.Builder getCostInfoBuilder() { onChanged(); return getCostInfoFieldBuilder().getBuilder(); } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; */ public com.yandex.ydb.common.CommonProtos.CostInfoOrBuilder getCostInfoOrBuilder() { if (costInfoBuilder_ != null) { return costInfoBuilder_.getMessageOrBuilder(); } else { return costInfo_ == null ? com.yandex.ydb.common.CommonProtos.CostInfo.getDefaultInstance() : costInfo_; } } /** *
       * Contains information about the cost of the operation.
       * For completed operations, it shows the final cost of the operation.
       * For operations in progress, it might indicate the current cost of the operation (if supported).
       * 
* * .Ydb.CostInfo cost_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.common.CommonProtos.CostInfo, com.yandex.ydb.common.CommonProtos.CostInfo.Builder, com.yandex.ydb.common.CommonProtos.CostInfoOrBuilder> getCostInfoFieldBuilder() { if (costInfoBuilder_ == null) { costInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.common.CommonProtos.CostInfo, com.yandex.ydb.common.CommonProtos.CostInfo.Builder, com.yandex.ydb.common.CommonProtos.CostInfoOrBuilder>( getCostInfo(), getParentForChildren(), isClean()); costInfo_ = null; } return costInfoBuilder_; } @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:Ydb.Operations.Operation) } // @@protoc_insertion_point(class_scope:Ydb.Operations.Operation) private static final com.yandex.ydb.OperationProtos.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.OperationProtos.Operation(); } public static com.yandex.ydb.OperationProtos.Operation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Operation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Operation(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 com.yandex.ydb.OperationProtos.Operation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_OperationParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_OperationParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_OperationParams_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_OperationParams_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_GetOperationRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_GetOperationRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_GetOperationResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_GetOperationResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_CancelOperationRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_CancelOperationRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_CancelOperationResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_CancelOperationResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_ForgetOperationRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_ForgetOperationRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_ForgetOperationResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_ForgetOperationResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_ListOperationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_ListOperationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_ListOperationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_ListOperationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Operations_Operation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Operations_Operation_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)ydb/public/api/protos/ydb_operation.pr" + "oto\022\016Ydb.Operations\032\031google/protobuf/any" + ".proto\032\036google/protobuf/duration.proto\0322" + "ydb/public/api/protos/annotations/valida" + "tion.proto\032&ydb/public/api/protos/ydb_co" + "mmon.proto\032-ydb/public/api/protos/ydb_is" + "sue_message.proto\032,ydb/public/api/protos" + "/ydb_status_codes.proto\"\266\003\n\017OperationPar" + "ams\022E\n\016operation_mode\030\001 \001(\0162-.Ydb.Operat" + "ions.OperationParams.OperationMode\0224\n\021op" + "eration_timeout\030\002 \001(\0132\031.google.protobuf." + "Duration\022/\n\014cancel_after\030\003 \001(\0132\031.google." + "protobuf.Duration\022M\n\006labels\030\004 \003(\0132+.Ydb." + "Operations.OperationParams.LabelsEntryB\020" + "\252\346*\005\n\003\030\200\001\242\346*\003\030\200\001\0221\n\020report_cost_info\030\005 \001" + "(\0162\027.Ydb.FeatureFlag.Status\032-\n\013LabelsEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"D\n\rOp" + "erationMode\022\036\n\032OPERATION_MODE_UNSPECIFIE" + "D\020\000\022\010\n\004SYNC\020\001\022\t\n\005ASYNC\020\002\"\'\n\023GetOperation" + "Request\022\020\n\002id\030\001 \001(\tB\004\220\346*\001\"D\n\024GetOperatio" + "nResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Opera" + "tions.Operation\"*\n\026CancelOperationReques" + "t\022\020\n\002id\030\001 \001(\tB\004\220\346*\001\"m\n\027CancelOperationRe" + "sponse\022)\n\006status\030\001 \001(\0162\031.Ydb.StatusIds.S" + "tatusCode\022\'\n\006issues\030\002 \003(\0132\027.Ydb.Issue.Is" + "sueMessage\"*\n\026ForgetOperationRequest\022\020\n\002" + "id\030\001 \001(\tB\004\220\346*\001\"m\n\027ForgetOperationRespons" + "e\022)\n\006status\030\001 \001(\0162\031.Ydb.StatusIds.Status" + "Code\022\'\n\006issues\030\002 \003(\0132\027.Ydb.Issue.IssueMe" + "ssage\"R\n\025ListOperationsRequest\022\022\n\004kind\030\001" + " \001(\tB\004\220\346*\001\022\021\n\tpage_size\030\002 \001(\004\022\022\n\npage_to" + "ken\030\003 \001(\t\"\264\001\n\026ListOperationsResponse\022)\n\006" + "status\030\001 \001(\0162\031.Ydb.StatusIds.StatusCode\022" + "\'\n\006issues\030\002 \003(\0132\027.Ydb.Issue.IssueMessage" + "\022-\n\noperations\030\003 \003(\0132\031.Ydb.Operations.Op" + "eration\022\027\n\017next_page_token\030\004 \001(\t\"\352\001\n\tOpe" + "ration\022\n\n\002id\030\001 \001(\t\022\r\n\005ready\030\002 \001(\010\022)\n\006sta" + "tus\030\003 \001(\0162\031.Ydb.StatusIds.StatusCode\022\'\n\006" + "issues\030\004 \003(\0132\027.Ydb.Issue.IssueMessage\022$\n" + "\006result\030\005 \001(\0132\024.google.protobuf.Any\022&\n\010m" + "etadata\030\006 \001(\0132\024.google.protobuf.Any\022 \n\tc" + "ost_info\030\007 \001(\0132\r.Ydb.CostInfoB$\n\016com.yan" + "dex.ydbB\017OperationProtos\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.yandex.ydb.Validation.getDescriptor(), com.yandex.ydb.common.CommonProtos.getDescriptor(), com.yandex.ydb.YdbIssueMessage.getDescriptor(), com.yandex.ydb.StatusCodesProtos.getDescriptor(), }); internal_static_Ydb_Operations_OperationParams_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Ydb_Operations_OperationParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_OperationParams_descriptor, new java.lang.String[] { "OperationMode", "OperationTimeout", "CancelAfter", "Labels", "ReportCostInfo", }); internal_static_Ydb_Operations_OperationParams_LabelsEntry_descriptor = internal_static_Ydb_Operations_OperationParams_descriptor.getNestedTypes().get(0); internal_static_Ydb_Operations_OperationParams_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_OperationParams_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Operations_GetOperationRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Ydb_Operations_GetOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_GetOperationRequest_descriptor, new java.lang.String[] { "Id", }); internal_static_Ydb_Operations_GetOperationResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Ydb_Operations_GetOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_GetOperationResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Operations_CancelOperationRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Ydb_Operations_CancelOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_CancelOperationRequest_descriptor, new java.lang.String[] { "Id", }); internal_static_Ydb_Operations_CancelOperationResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Ydb_Operations_CancelOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_CancelOperationResponse_descriptor, new java.lang.String[] { "Status", "Issues", }); internal_static_Ydb_Operations_ForgetOperationRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_Ydb_Operations_ForgetOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_ForgetOperationRequest_descriptor, new java.lang.String[] { "Id", }); internal_static_Ydb_Operations_ForgetOperationResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_Ydb_Operations_ForgetOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_ForgetOperationResponse_descriptor, new java.lang.String[] { "Status", "Issues", }); internal_static_Ydb_Operations_ListOperationsRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_Ydb_Operations_ListOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_ListOperationsRequest_descriptor, new java.lang.String[] { "Kind", "PageSize", "PageToken", }); internal_static_Ydb_Operations_ListOperationsResponse_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Ydb_Operations_ListOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_ListOperationsResponse_descriptor, new java.lang.String[] { "Status", "Issues", "Operations", "NextPageToken", }); internal_static_Ydb_Operations_Operation_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_Ydb_Operations_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Operations_Operation_descriptor, new java.lang.String[] { "Id", "Ready", "Status", "Issues", "Result", "Metadata", "CostInfo", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.yandex.ydb.Validation.length); registry.add(com.yandex.ydb.Validation.mapKey); registry.add(com.yandex.ydb.Validation.required); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.yandex.ydb.Validation.getDescriptor(); com.yandex.ydb.common.CommonProtos.getDescriptor(); com.yandex.ydb.YdbIssueMessage.getDescriptor(); com.yandex.ydb.StatusCodesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy