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

tech.ydb.proto.OperationProtos Maven / Gradle / Ivy

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

package tech.ydb.proto;

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.
     */
    tech.ydb.proto.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) = { ... } */ /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ 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. */ tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.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 tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_OperationParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.OperationParams.class, tech.ydb.proto.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 tech.ydb.proto.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) } private int bitField0_; public static final int OPERATION_MODE_FIELD_NUMBER = 1; 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; * @return The operationMode. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams.OperationMode getOperationMode() { tech.ydb.proto.OperationProtos.OperationParams.OperationMode result = tech.ydb.proto.OperationProtos.OperationParams.OperationMode.forNumber(operationMode_); return result == null ? tech.ydb.proto.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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 operationTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : operationTimeout_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
     * 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 cancelAfter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cancelAfter_; } 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( tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_OperationParams_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") 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 /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ 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_ = 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; * @return The reportCostInfo. */ @java.lang.Override public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getReportCostInfo() { tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(reportCostInfo_); return result == null ? tech.ydb.proto.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_ != tech.ydb.proto.OperationProtos.OperationParams.OperationMode.OPERATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, operationMode_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOperationTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCancelAfter()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (reportCostInfo_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(5, reportCostInfo_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operationMode_ != tech.ydb.proto.OperationProtos.OperationParams.OperationMode.OPERATION_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationMode_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOperationTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { 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_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, reportCostInfo_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.OperationParams)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.OperationParams other = (tech.ydb.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.OperationParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.OperationParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.OperationParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.OperationParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.OperationParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.OperationParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.OperationParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.OperationParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.OperationParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.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 tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_OperationParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.OperationParams.class, tech.ydb.proto.OperationProtos.OperationParams.Builder.class); } // Construct using tech.ydb.proto.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) { getOperationTimeoutFieldBuilder(); getCancelAfterFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationMode_ = 0; operationTimeout_ = null; if (operationTimeoutBuilder_ != null) { operationTimeoutBuilder_.dispose(); operationTimeoutBuilder_ = null; } cancelAfter_ = null; if (cancelAfterBuilder_ != null) { cancelAfterBuilder_.dispose(); cancelAfterBuilder_ = null; } internalGetMutableLabels().clear(); reportCostInfo_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_OperationParams_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams build() { tech.ydb.proto.OperationProtos.OperationParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams buildPartial() { tech.ydb.proto.OperationProtos.OperationParams result = new tech.ydb.proto.OperationProtos.OperationParams(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.OperationProtos.OperationParams result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationMode_ = operationMode_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.operationTimeout_ = operationTimeoutBuilder_ == null ? operationTimeout_ : operationTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cancelAfter_ = cancelAfterBuilder_ == null ? cancelAfter_ : cancelAfterBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.reportCostInfo_ = reportCostInfo_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.OperationProtos.OperationParams) { return mergeFrom((tech.ydb.proto.OperationProtos.OperationParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.OperationParams other) { if (other == tech.ydb.proto.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()); bitField0_ |= 0x00000008; if (other.reportCostInfo_ != 0) { setReportCostInfoValue(other.getReportCostInfoValue()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { operationMode_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getOperationTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getCancelAfterFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels().getMutableMap().put( labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 40: { reportCostInfo_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @return The operationMode. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams.OperationMode getOperationMode() { tech.ydb.proto.OperationProtos.OperationParams.OperationMode result = tech.ydb.proto.OperationProtos.OperationParams.OperationMode.forNumber(operationMode_); return result == null ? tech.ydb.proto.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(tech.ydb.proto.OperationProtos.OperationParams.OperationMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; operationMode_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.Operations.OperationParams.OperationMode operation_mode = 1; * @return This builder for chaining. */ public Builder clearOperationMode() { bitField0_ = (bitField0_ & ~0x00000001); 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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; } else { operationTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { operationTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && operationTimeout_ != null && operationTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getOperationTimeoutBuilder().mergeFrom(value); } else { operationTimeout_ = value; } } else { operationTimeoutBuilder_.mergeFrom(value); } if (operationTimeout_ != null) { bitField0_ |= 0x00000002; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000002); operationTimeout_ = null; if (operationTimeoutBuilder_ != null) { operationTimeoutBuilder_.dispose(); operationTimeoutBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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; } else { cancelAfterBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { cancelAfterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && cancelAfter_ != null && cancelAfter_ != com.google.protobuf.Duration.getDefaultInstance()) { getCancelAfterBuilder().mergeFrom(value); } else { cancelAfter_ = value; } } else { cancelAfterBuilder_.mergeFrom(value); } if (cancelAfter_ != null) { bitField0_ |= 0x00000004; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000004); cancelAfter_ = null; if (cancelAfterBuilder_ != null) { cancelAfterBuilder_.dispose(); cancelAfterBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000004; 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() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000008; onChanged(); 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 /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ 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() { bitField0_ = (bitField0_ & ~0x00000008); 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() { bitField0_ |= 0x00000008; 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); bitField0_ |= 0x00000008; 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); bitField0_ |= 0x00000008; 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; bitField0_ |= 0x00000010; 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 tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getReportCostInfo() { tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(reportCostInfo_); return result == null ? tech.ydb.proto.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(tech.ydb.proto.common.CommonProtos.FeatureFlag.Status value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; 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() { bitField0_ = (bitField0_ & ~0x00000010); 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 tech.ydb.proto.OperationProtos.OperationParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.OperationParams(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.GetOperationRequest.class, tech.ydb.proto.OperationProtos.GetOperationRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.GetOperationRequest)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.GetOperationRequest other = (tech.ydb.proto.OperationProtos.GetOperationRequest) obj; if (!getId() .equals(other.getId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.GetOperationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.GetOperationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.GetOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.GetOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.GetOperationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.GetOperationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.GetOperationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.GetOperationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.GetOperationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.GetOperationRequest.class, tech.ydb.proto.OperationProtos.GetOperationRequest.Builder.class); } // Construct using tech.ydb.proto.OperationProtos.GetOperationRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationRequest_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.GetOperationRequest getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.GetOperationRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.GetOperationRequest build() { tech.ydb.proto.OperationProtos.GetOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.GetOperationRequest buildPartial() { tech.ydb.proto.OperationProtos.GetOperationRequest result = new tech.ydb.proto.OperationProtos.GetOperationRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.OperationProtos.GetOperationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } } @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 tech.ydb.proto.OperationProtos.GetOperationRequest) { return mergeFrom((tech.ydb.proto.OperationProtos.GetOperationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.GetOperationRequest other) { if (other == tech.ydb.proto.OperationProtos.GetOperationRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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 tech.ydb.proto.OperationProtos.GetOperationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.GetOperationRequest(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.GetOperationResponse.class, tech.ydb.proto.OperationProtos.GetOperationResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.GetOperationResponse)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.GetOperationResponse other = (tech.ydb.proto.OperationProtos.GetOperationResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.GetOperationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.GetOperationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.GetOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.GetOperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.GetOperationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.GetOperationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.GetOperationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.GetOperationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.GetOperationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.GetOperationResponse.class, tech.ydb.proto.OperationProtos.GetOperationResponse.Builder.class); } // Construct using tech.ydb.proto.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) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_GetOperationResponse_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.GetOperationResponse getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.GetOperationResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.GetOperationResponse build() { tech.ydb.proto.OperationProtos.GetOperationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.GetOperationResponse buildPartial() { tech.ydb.proto.OperationProtos.GetOperationResponse result = new tech.ydb.proto.OperationProtos.GetOperationResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.OperationProtos.GetOperationResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.OperationProtos.GetOperationResponse) { return mergeFrom((tech.ydb.proto.OperationProtos.GetOperationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.GetOperationResponse other) { if (other == tech.ydb.proto.OperationProtos.GetOperationResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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 tech.ydb.proto.OperationProtos.GetOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.GetOperationResponse(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.CancelOperationRequest.class, tech.ydb.proto.OperationProtos.CancelOperationRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.CancelOperationRequest)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.CancelOperationRequest other = (tech.ydb.proto.OperationProtos.CancelOperationRequest) obj; if (!getId() .equals(other.getId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.CancelOperationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.CancelOperationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.CancelOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.CancelOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.CancelOperationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.CancelOperationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.CancelOperationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.CancelOperationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.CancelOperationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.CancelOperationRequest.class, tech.ydb.proto.OperationProtos.CancelOperationRequest.Builder.class); } // Construct using tech.ydb.proto.OperationProtos.CancelOperationRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationRequest_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.CancelOperationRequest getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.CancelOperationRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.CancelOperationRequest build() { tech.ydb.proto.OperationProtos.CancelOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.CancelOperationRequest buildPartial() { tech.ydb.proto.OperationProtos.CancelOperationRequest result = new tech.ydb.proto.OperationProtos.CancelOperationRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.OperationProtos.CancelOperationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } } @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 tech.ydb.proto.OperationProtos.CancelOperationRequest) { return mergeFrom((tech.ydb.proto.OperationProtos.CancelOperationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.CancelOperationRequest other) { if (other == tech.ydb.proto.OperationProtos.CancelOperationRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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 tech.ydb.proto.OperationProtos.CancelOperationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.CancelOperationRequest(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.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; */ tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.CancelOperationResponse.class, tech.ydb.proto.OperationProtos.CancelOperationResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; 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; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.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_ != tech.ydb.proto.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)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.CancelOperationResponse)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.CancelOperationResponse other = (tech.ydb.proto.OperationProtos.CancelOperationResponse) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.CancelOperationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.CancelOperationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.CancelOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.CancelOperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.CancelOperationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.CancelOperationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.CancelOperationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.CancelOperationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.CancelOperationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.CancelOperationResponse.class, tech.ydb.proto.OperationProtos.CancelOperationResponse.Builder.class); } // Construct using tech.ydb.proto.OperationProtos.CancelOperationResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_CancelOperationResponse_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.CancelOperationResponse getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.CancelOperationResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.CancelOperationResponse build() { tech.ydb.proto.OperationProtos.CancelOperationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.CancelOperationResponse buildPartial() { tech.ydb.proto.OperationProtos.CancelOperationResponse result = new tech.ydb.proto.OperationProtos.CancelOperationResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.OperationProtos.CancelOperationResponse result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.OperationProtos.CancelOperationResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } } @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 tech.ydb.proto.OperationProtos.CancelOperationResponse) { return mergeFrom((tech.ydb.proto.OperationProtos.CancelOperationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.CancelOperationResponse other) { if (other == tech.ydb.proto.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_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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( tech.ydb.proto.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, tech.ydb.proto.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_ & ~0x00000002); 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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 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 tech.ydb.proto.OperationProtos.CancelOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.CancelOperationResponse(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ForgetOperationRequest.class, tech.ydb.proto.OperationProtos.ForgetOperationRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.ForgetOperationRequest)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.ForgetOperationRequest other = (tech.ydb.proto.OperationProtos.ForgetOperationRequest) obj; if (!getId() .equals(other.getId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.ForgetOperationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ForgetOperationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ForgetOperationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ForgetOperationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ForgetOperationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ForgetOperationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ForgetOperationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ForgetOperationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.ForgetOperationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ForgetOperationRequest.class, tech.ydb.proto.OperationProtos.ForgetOperationRequest.Builder.class); } // Construct using tech.ydb.proto.OperationProtos.ForgetOperationRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationRequest_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.ForgetOperationRequest getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.ForgetOperationRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.ForgetOperationRequest build() { tech.ydb.proto.OperationProtos.ForgetOperationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.ForgetOperationRequest buildPartial() { tech.ydb.proto.OperationProtos.ForgetOperationRequest result = new tech.ydb.proto.OperationProtos.ForgetOperationRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.OperationProtos.ForgetOperationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } } @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 tech.ydb.proto.OperationProtos.ForgetOperationRequest) { return mergeFrom((tech.ydb.proto.OperationProtos.ForgetOperationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.ForgetOperationRequest other) { if (other == tech.ydb.proto.OperationProtos.ForgetOperationRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string id = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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 tech.ydb.proto.OperationProtos.ForgetOperationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.ForgetOperationRequest(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.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; */ tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ForgetOperationResponse.class, tech.ydb.proto.OperationProtos.ForgetOperationResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; 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; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.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_ != tech.ydb.proto.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)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.ForgetOperationResponse)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.ForgetOperationResponse other = (tech.ydb.proto.OperationProtos.ForgetOperationResponse) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.ForgetOperationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ForgetOperationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ForgetOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ForgetOperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ForgetOperationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ForgetOperationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ForgetOperationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ForgetOperationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.ForgetOperationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ForgetOperationResponse.class, tech.ydb.proto.OperationProtos.ForgetOperationResponse.Builder.class); } // Construct using tech.ydb.proto.OperationProtos.ForgetOperationResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ForgetOperationResponse_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.ForgetOperationResponse getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.ForgetOperationResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.ForgetOperationResponse build() { tech.ydb.proto.OperationProtos.ForgetOperationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.ForgetOperationResponse buildPartial() { tech.ydb.proto.OperationProtos.ForgetOperationResponse result = new tech.ydb.proto.OperationProtos.ForgetOperationResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.OperationProtos.ForgetOperationResponse result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.OperationProtos.ForgetOperationResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } } @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 tech.ydb.proto.OperationProtos.ForgetOperationResponse) { return mergeFrom((tech.ydb.proto.OperationProtos.ForgetOperationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.ForgetOperationResponse other) { if (other == tech.ydb.proto.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_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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( tech.ydb.proto.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, tech.ydb.proto.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_ & ~0x00000002); 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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 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 tech.ydb.proto.OperationProtos.ForgetOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.ForgetOperationResponse(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ListOperationsRequest.class, tech.ydb.proto.OperationProtos.ListOperationsRequest.Builder.class); } public static final int KIND_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_ = 0L; /** * uint64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.ListOperationsRequest)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.ListOperationsRequest other = (tech.ydb.proto.OperationProtos.ListOperationsRequest) obj; if (!getKind() .equals(other.getKind())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.ListOperationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ListOperationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ListOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ListOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ListOperationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ListOperationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ListOperationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ListOperationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.ListOperationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ListOperationsRequest.class, tech.ydb.proto.OperationProtos.ListOperationsRequest.Builder.class); } // Construct using tech.ydb.proto.OperationProtos.ListOperationsRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; kind_ = ""; pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsRequest_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.ListOperationsRequest getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.ListOperationsRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.ListOperationsRequest build() { tech.ydb.proto.OperationProtos.ListOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.ListOperationsRequest buildPartial() { tech.ydb.proto.OperationProtos.ListOperationsRequest result = new tech.ydb.proto.OperationProtos.ListOperationsRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.OperationProtos.ListOperationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.kind_ = kind_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.pageSize_ = pageSize_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } } @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 tech.ydb.proto.OperationProtos.ListOperationsRequest) { return mergeFrom((tech.ydb.proto.OperationProtos.ListOperationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.ListOperationsRequest other) { if (other == tech.ydb.proto.OperationProtos.ListOperationsRequest.getDefaultInstance()) return this; if (!other.getKind().isEmpty()) { kind_ = other.kind_; bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { kind_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string kind = 1 [(.Ydb.required) = true]; * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint64 page_size = 2; * @return This builder for chaining. */ public Builder clearPageSize() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string page_token = 3; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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 tech.ydb.proto.OperationProtos.ListOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.ListOperationsRequest(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.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; */ tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** * repeated .Ydb.Operations.Operation operations = 3; */ java.util.List getOperationsList(); /** * repeated .Ydb.Operations.Operation operations = 3; */ tech.ydb.proto.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; */ tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ListOperationsResponse.class, tech.ydb.proto.OperationProtos.ListOperationsResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; 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; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int OPERATIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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 tech.ydb.proto.OperationProtos.Operation getOperations(int index) { return operations_.get(index); } /** * repeated .Ydb.Operations.Operation operations = 3; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 4; @SuppressWarnings("serial") 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_ != tech.ydb.proto.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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.ListOperationsResponse)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.ListOperationsResponse other = (tech.ydb.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.ListOperationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ListOperationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ListOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ListOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.ListOperationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.ListOperationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ListOperationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.ListOperationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.ListOperationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.ListOperationsResponse.class, tech.ydb.proto.OperationProtos.ListOperationsResponse.Builder.class); } // Construct using tech.ydb.proto.OperationProtos.ListOperationsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); } else { operations_ = null; operationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_ListOperationsResponse_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.ListOperationsResponse getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.ListOperationsResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.ListOperationsResponse build() { tech.ydb.proto.OperationProtos.ListOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.ListOperationsResponse buildPartial() { tech.ydb.proto.OperationProtos.ListOperationsResponse result = new tech.ydb.proto.OperationProtos.ListOperationsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.OperationProtos.ListOperationsResponse result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); bitField0_ = (bitField0_ & ~0x00000004); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.OperationProtos.ListOperationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.nextPageToken_ = nextPageToken_; } } @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 tech.ydb.proto.OperationProtos.ListOperationsResponse) { return mergeFrom((tech.ydb.proto.OperationProtos.ListOperationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.ListOperationsResponse other) { if (other == tech.ydb.proto.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_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); 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_ & ~0x00000004); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } } else { if (!other.operations_.isEmpty()) { if (operationsBuilder_.isEmpty()) { operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000004); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 case 26: { tech.ydb.proto.OperationProtos.Operation m = input.readMessage( tech.ydb.proto.OperationProtos.Operation.parser(), extensionRegistry); if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(m); } else { operationsBuilder_.addMessage(m); } break; } // case 26 case 34: { nextPageToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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( tech.ydb.proto.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, tech.ydb.proto.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_ & ~0x00000002); 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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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( tech.ydb.proto.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, tech.ydb.proto.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_ & ~0x00000004); 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 tech.ydb.proto.OperationProtos.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Operations.Operation operations = 3; */ public tech.ydb.proto.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 tech.ydb.proto.OperationProtos.Operation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()); } /** * repeated .Ydb.Operations.Operation operations = 3; */ public tech.ydb.proto.OperationProtos.Operation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( index, tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()); } /** * repeated .Ydb.Operations.Operation operations = 3; */ public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>( operations_, ((bitField0_ & 0x00000004) != 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string next_page_token = 4; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; 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 tech.ydb.proto.OperationProtos.ListOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.ListOperationsResponse(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ tech.ydb.proto.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; */ tech.ydb.proto.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. */ tech.ydb.proto.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; */ tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.Operation.class, tech.ydb.proto.OperationProtos.Operation.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_ = false; /** *
     * 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_ = 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; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 4; @SuppressWarnings("serial") 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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ @java.lang.Override public tech.ydb.proto.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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 result_ == null ? com.google.protobuf.Any.getDefaultInstance() : result_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } public static final int COST_INFO_FIELD_NUMBER = 7; private tech.ydb.proto.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 ((bitField0_ & 0x00000004) != 0); } /** *
     * 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 tech.ydb.proto.common.CommonProtos.CostInfo getCostInfo() { return costInfo_ == null ? tech.ydb.proto.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 tech.ydb.proto.common.CommonProtos.CostInfoOrBuilder getCostInfoOrBuilder() { return costInfo_ == null ? tech.ydb.proto.common.CommonProtos.CostInfo.getDefaultInstance() : costInfo_; } 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_ != tech.ydb.proto.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getMetadata()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getCostInfo()); } getUnknownFields().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_ != tech.ydb.proto.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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMetadata()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCostInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.OperationProtos.Operation)) { return super.equals(obj); } tech.ydb.proto.OperationProtos.Operation other = (tech.ydb.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.OperationProtos.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.Operation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.OperationProtos.Operation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.OperationProtos.Operation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.OperationProtos.Operation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.OperationProtos.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.OperationProtos.Operation.class, tech.ydb.proto.OperationProtos.Operation.Builder.class); } // Construct using tech.ydb.proto.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(); getResultFieldBuilder(); getMetadataFieldBuilder(); getCostInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; ready_ = false; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } costInfo_ = null; if (costInfoBuilder_ != null) { costInfoBuilder_.dispose(); costInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.OperationProtos.internal_static_Ydb_Operations_Operation_descriptor; } @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getDefaultInstanceForType() { return tech.ydb.proto.OperationProtos.Operation.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.OperationProtos.Operation build() { tech.ydb.proto.OperationProtos.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.OperationProtos.Operation buildPartial() { tech.ydb.proto.OperationProtos.Operation result = new tech.ydb.proto.OperationProtos.Operation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.OperationProtos.Operation result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000008); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.OperationProtos.Operation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ready_ = ready_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.status_ = status_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.costInfo_ = costInfoBuilder_ == null ? costInfo_ : costInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.OperationProtos.Operation) { return mergeFrom((tech.ydb.proto.OperationProtos.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.OperationProtos.Operation other) { if (other == tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; 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_ & ~0x00000008); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000008); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { ready_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { status_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getCostInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; bitField0_ |= 0x00000001; 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(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 3; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 3; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 3; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000004); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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( tech.ydb.proto.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, tech.ydb.proto.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_ & ~0x00000008); 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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public tech.ydb.proto.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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 4; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000008) != 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 ((bitField0_ & 0x00000010) != 0); } /** *
       * 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; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public Builder setResult( com.google.protobuf.Any.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public Builder mergeResult(com.google.protobuf.Any value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && result_ != null && result_ != com.google.protobuf.Any.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000010); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** *
       * Result data
       * 
* * .google.protobuf.Any result = 5; */ public com.google.protobuf.Any.Builder getResultBuilder() { bitField0_ |= 0x00000010; 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 ((bitField0_ & 0x00000020) != 0); } /** * .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; } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .google.protobuf.Any metadata = 6; */ public Builder setMetadata( com.google.protobuf.Any.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .google.protobuf.Any metadata = 6; */ public Builder mergeMetadata(com.google.protobuf.Any value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && metadata_ != null && metadata_ != com.google.protobuf.Any.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } } else { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * .google.protobuf.Any metadata = 6; */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000020); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } onChanged(); return this; } /** * .google.protobuf.Any metadata = 6; */ public com.google.protobuf.Any.Builder getMetadataBuilder() { bitField0_ |= 0x00000020; 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 tech.ydb.proto.common.CommonProtos.CostInfo costInfo_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.common.CommonProtos.CostInfo, tech.ydb.proto.common.CommonProtos.CostInfo.Builder, tech.ydb.proto.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 ((bitField0_ & 0x00000040) != 0); } /** *
       * 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 tech.ydb.proto.common.CommonProtos.CostInfo getCostInfo() { if (costInfoBuilder_ == null) { return costInfo_ == null ? tech.ydb.proto.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(tech.ydb.proto.common.CommonProtos.CostInfo value) { if (costInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } costInfo_ = value; } else { costInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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( tech.ydb.proto.common.CommonProtos.CostInfo.Builder builderForValue) { if (costInfoBuilder_ == null) { costInfo_ = builderForValue.build(); } else { costInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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(tech.ydb.proto.common.CommonProtos.CostInfo value) { if (costInfoBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && costInfo_ != null && costInfo_ != tech.ydb.proto.common.CommonProtos.CostInfo.getDefaultInstance()) { getCostInfoBuilder().mergeFrom(value); } else { costInfo_ = value; } } else { costInfoBuilder_.mergeFrom(value); } if (costInfo_ != null) { bitField0_ |= 0x00000040; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000040); costInfo_ = null; if (costInfoBuilder_ != null) { costInfoBuilder_.dispose(); costInfoBuilder_ = null; } onChanged(); 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 tech.ydb.proto.common.CommonProtos.CostInfo.Builder getCostInfoBuilder() { bitField0_ |= 0x00000040; 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 tech.ydb.proto.common.CommonProtos.CostInfoOrBuilder getCostInfoOrBuilder() { if (costInfoBuilder_ != null) { return costInfoBuilder_.getMessageOrBuilder(); } else { return costInfo_ == null ? tech.ydb.proto.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< tech.ydb.proto.common.CommonProtos.CostInfo, tech.ydb.proto.common.CommonProtos.CostInfo.Builder, tech.ydb.proto.common.CommonProtos.CostInfoOrBuilder> getCostInfoFieldBuilder() { if (costInfoBuilder_ == null) { costInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.common.CommonProtos.CostInfo, tech.ydb.proto.common.CommonProtos.CostInfo.Builder, tech.ydb.proto.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 tech.ydb.proto.OperationProtos.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.OperationProtos.Operation(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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\032protos/ydb_operation.proto\022\016Ydb.Operat" + "ions\032\031google/protobuf/any.proto\032\036google/" + "protobuf/duration.proto\032#protos/annotati" + "ons/validation.proto\032\027protos/ydb_common." + "proto\032\036protos/ydb_issue_message.proto\032\035p" + "rotos/ydb_status_codes.proto\"\266\003\n\017Operati" + "onParams\022E\n\016operation_mode\030\001 \001(\0162-.Ydb.O" + "perations.OperationParams.OperationMode\022" + "4\n\021operation_timeout\030\002 \001(\0132\031.google.prot" + "obuf.Duration\022/\n\014cancel_after\030\003 \001(\0132\031.go" + "ogle.protobuf.Duration\022M\n\006labels\030\004 \003(\0132+" + ".Ydb.Operations.OperationParams.LabelsEn" + "tryB\020\242\346*\003\030\200\001\252\346*\005\n\003\030\200\001\0221\n\020report_cost_inf" + "o\030\005 \001(\0162\027.Ydb.FeatureFlag.Status\032-\n\013Labe" + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + "D\n\rOperationMode\022\036\n\032OPERATION_MODE_UNSPE" + "CIFIED\020\000\022\010\n\004SYNC\020\001\022\t\n\005ASYNC\020\002\"\'\n\023GetOper" + "ationRequest\022\020\n\002id\030\001 \001(\tB\004\220\346*\001\"D\n\024GetOpe" + "rationResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb." + "Operations.Operation\"*\n\026CancelOperationR" + "equest\022\020\n\002id\030\001 \001(\tB\004\220\346*\001\"m\n\027CancelOperat" + "ionResponse\022)\n\006status\030\001 \001(\0162\031.Ydb.Status" + "Ids.StatusCode\022\'\n\006issues\030\002 \003(\0132\027.Ydb.Iss" + "ue.IssueMessage\"*\n\026ForgetOperationReques" + "t\022\020\n\002id\030\001 \001(\tB\004\220\346*\001\"m\n\027ForgetOperationRe" + "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\"R\n\025ListOperationsRequest\022\022\n\004k" + "ind\030\001 \001(\tB\004\220\346*\001\022\021\n\tpage_size\030\002 \001(\004\022\022\n\npa" + "ge_token\030\003 \001(\t\"\264\001\n\026ListOperationsRespons" + "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\022-\n\noperations\030\003 \003(\0132\031.Ydb.Operatio" + "ns.Operation\022\027\n\017next_page_token\030\004 \001(\t\"\352\001" + "\n\tOperation\022\n\n\002id\030\001 \001(\t\022\r\n\005ready\030\002 \001(\010\022)" + "\n\006status\030\003 \001(\0162\031.Ydb.StatusIds.StatusCod" + "e\022\'\n\006issues\030\004 \003(\0132\027.Ydb.Issue.IssueMessa" + "ge\022$\n\006result\030\005 \001(\0132\024.google.protobuf.Any" + "\022&\n\010metadata\030\006 \001(\0132\024.google.protobuf.Any" + "\022 \n\tcost_info\030\007 \001(\0132\r.Ydb.CostInfoBc\n\016te" + "ch.ydb.protoB\017OperationProtosZ=github.co" + "m/ydb-platform/ydb-go-genproto/protos/Yd" + "b_Operations\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(), tech.ydb.proto.Validation.getDescriptor(), tech.ydb.proto.common.CommonProtos.getDescriptor(), tech.ydb.proto.YdbIssueMessage.getDescriptor(), tech.ydb.proto.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(tech.ydb.proto.Validation.length); registry.add(tech.ydb.proto.Validation.mapKey); registry.add(tech.ydb.proto.Validation.required); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); tech.ydb.proto.Validation.getDescriptor(); tech.ydb.proto.common.CommonProtos.getDescriptor(); tech.ydb.proto.YdbIssueMessage.getDescriptor(); tech.ydb.proto.StatusCodesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy