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

org.tikv.kvproto.BackupOuterClass Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: backup.proto

package org.tikv.kvproto;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * sst files compression algorithm
   * 
* * Protobuf enum {@code backup.CompressionType} */ public enum CompressionType implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * LZ4 = 1; */ LZ4(1), /** * SNAPPY = 2; */ SNAPPY(2), /** * ZSTD = 3; */ ZSTD(3), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * LZ4 = 1; */ public static final int LZ4_VALUE = 1; /** * SNAPPY = 2; */ public static final int SNAPPY_VALUE = 2; /** * ZSTD = 3; */ public static final int ZSTD_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CompressionType valueOf(int value) { return forNumber(value); } public static CompressionType forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return LZ4; case 2: return SNAPPY; case 3: return ZSTD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CompressionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompressionType findValueByNumber(int number) { return CompressionType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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 org.tikv.kvproto.BackupOuterClass.getDescriptor().getEnumTypes().get(0); } private static final CompressionType[] VALUES = values(); public static CompressionType 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 CompressionType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:backup.CompressionType) } public interface BackupMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.BackupMeta) com.google.protobuf.MessageOrBuilder { /** *
     * ID and version of backuped cluster.
     * 
* * uint64 cluster_id = 1; */ long getClusterId(); /** * string cluster_version = 2; */ java.lang.String getClusterVersion(); /** * string cluster_version = 2; */ com.google.protobuf.ByteString getClusterVersionBytes(); /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ java.util.List getFilesList(); /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ org.tikv.kvproto.BackupOuterClass.File getFiles(int index); /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ int getFilesCount(); /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ java.util.List getFilesOrBuilderList(); /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ org.tikv.kvproto.BackupOuterClass.FileOrBuilder getFilesOrBuilder( int index); /** *
     * A pair of timestamp specifies a time range of a backup.
     * For full backup, the start_version equals to the end_version,
     * it means point in time.
     * For incremental backup, the time range is specified as
     * (start_version, end_version].
     * 
* * uint64 start_version = 5; */ long getStartVersion(); /** * uint64 end_version = 6; */ long getEndVersion(); /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ java.util.List getSchemasList(); /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ org.tikv.kvproto.BackupOuterClass.Schema getSchemas(int index); /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ int getSchemasCount(); /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ java.util.List getSchemasOrBuilderList(); /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ org.tikv.kvproto.BackupOuterClass.SchemaOrBuilder getSchemasOrBuilder( int index); /** *
     * If in raw kv mode, `start_versions`, `end_versions` and `schemas` will be ignored, and the
     * backup data's range is represented by raw_ranges.
     * 
* * bool is_raw_kv = 8; */ boolean getIsRawKv(); /** * repeated .backup.RawRange raw_ranges = 9; */ java.util.List getRawRangesList(); /** * repeated .backup.RawRange raw_ranges = 9; */ org.tikv.kvproto.BackupOuterClass.RawRange getRawRanges(int index); /** * repeated .backup.RawRange raw_ranges = 9; */ int getRawRangesCount(); /** * repeated .backup.RawRange raw_ranges = 9; */ java.util.List getRawRangesOrBuilderList(); /** * repeated .backup.RawRange raw_ranges = 9; */ org.tikv.kvproto.BackupOuterClass.RawRangeOrBuilder getRawRangesOrBuilder( int index); /** *
     * In incremental backup, DDLs which are completed in (lastBackupTS, backupTS] will be stored here.
     * 
* * bytes ddls = 10; */ com.google.protobuf.ByteString getDdls(); /** *
     * Save the version of BR running backup jobs.
     * 
* * string br_version = 11; */ java.lang.String getBrVersion(); /** *
     * Save the version of BR running backup jobs.
     * 
* * string br_version = 11; */ com.google.protobuf.ByteString getBrVersionBytes(); } /** *
   * The message save the metadata of a backup.
   * 
* * Protobuf type {@code backup.BackupMeta} */ public static final class BackupMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.BackupMeta) BackupMetaOrBuilder { private static final long serialVersionUID = 0L; // Use BackupMeta.newBuilder() to construct. private BackupMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BackupMeta() { clusterId_ = 0L; clusterVersion_ = ""; files_ = java.util.Collections.emptyList(); startVersion_ = 0L; endVersion_ = 0L; schemas_ = java.util.Collections.emptyList(); isRawKv_ = false; rawRanges_ = java.util.Collections.emptyList(); ddls_ = com.google.protobuf.ByteString.EMPTY; brVersion_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BackupMeta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { clusterId_ = input.readUInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); clusterVersion_ = s; break; } case 34: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { files_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } files_.add( input.readMessage(org.tikv.kvproto.BackupOuterClass.File.parser(), extensionRegistry)); break; } case 40: { startVersion_ = input.readUInt64(); break; } case 48: { endVersion_ = input.readUInt64(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { schemas_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } schemas_.add( input.readMessage(org.tikv.kvproto.BackupOuterClass.Schema.parser(), extensionRegistry)); break; } case 64: { isRawKv_ = input.readBool(); break; } case 74: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { rawRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } rawRanges_.add( input.readMessage(org.tikv.kvproto.BackupOuterClass.RawRange.parser(), extensionRegistry)); break; } case 82: { ddls_ = input.readBytes(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); brVersion_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { files_ = java.util.Collections.unmodifiableList(files_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { rawRanges_ = java.util.Collections.unmodifiableList(rawRanges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupMeta_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.BackupMeta.class, org.tikv.kvproto.BackupOuterClass.BackupMeta.Builder.class); } private int bitField0_; public static final int CLUSTER_ID_FIELD_NUMBER = 1; private long clusterId_; /** *
     * ID and version of backuped cluster.
     * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } public static final int CLUSTER_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object clusterVersion_; /** * string cluster_version = 2; */ public java.lang.String getClusterVersion() { java.lang.Object ref = clusterVersion_; 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(); clusterVersion_ = s; return s; } } /** * string cluster_version = 2; */ public com.google.protobuf.ByteString getClusterVersionBytes() { java.lang.Object ref = clusterVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILES_FIELD_NUMBER = 4; private java.util.List files_; /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ public java.util.List getFilesList() { return files_; } /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ public java.util.List getFilesOrBuilderList() { return files_; } /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ public int getFilesCount() { return files_.size(); } /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File getFiles(int index) { return files_.get(index); } /** *
     * A set of files that compose a backup.
     * 
* * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.FileOrBuilder getFilesOrBuilder( int index) { return files_.get(index); } public static final int START_VERSION_FIELD_NUMBER = 5; private long startVersion_; /** *
     * A pair of timestamp specifies a time range of a backup.
     * For full backup, the start_version equals to the end_version,
     * it means point in time.
     * For incremental backup, the time range is specified as
     * (start_version, end_version].
     * 
* * uint64 start_version = 5; */ public long getStartVersion() { return startVersion_; } public static final int END_VERSION_FIELD_NUMBER = 6; private long endVersion_; /** * uint64 end_version = 6; */ public long getEndVersion() { return endVersion_; } public static final int SCHEMAS_FIELD_NUMBER = 7; private java.util.List schemas_; /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ public java.util.List getSchemasList() { return schemas_; } /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ public java.util.List getSchemasOrBuilderList() { return schemas_; } /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ public int getSchemasCount() { return schemas_.size(); } /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ public org.tikv.kvproto.BackupOuterClass.Schema getSchemas(int index) { return schemas_.get(index); } /** *
     * Additional metadata describes database and table info.
     * 
* * repeated .backup.Schema schemas = 7; */ public org.tikv.kvproto.BackupOuterClass.SchemaOrBuilder getSchemasOrBuilder( int index) { return schemas_.get(index); } public static final int IS_RAW_KV_FIELD_NUMBER = 8; private boolean isRawKv_; /** *
     * If in raw kv mode, `start_versions`, `end_versions` and `schemas` will be ignored, and the
     * backup data's range is represented by raw_ranges.
     * 
* * bool is_raw_kv = 8; */ public boolean getIsRawKv() { return isRawKv_; } public static final int RAW_RANGES_FIELD_NUMBER = 9; private java.util.List rawRanges_; /** * repeated .backup.RawRange raw_ranges = 9; */ public java.util.List getRawRangesList() { return rawRanges_; } /** * repeated .backup.RawRange raw_ranges = 9; */ public java.util.List getRawRangesOrBuilderList() { return rawRanges_; } /** * repeated .backup.RawRange raw_ranges = 9; */ public int getRawRangesCount() { return rawRanges_.size(); } /** * repeated .backup.RawRange raw_ranges = 9; */ public org.tikv.kvproto.BackupOuterClass.RawRange getRawRanges(int index) { return rawRanges_.get(index); } /** * repeated .backup.RawRange raw_ranges = 9; */ public org.tikv.kvproto.BackupOuterClass.RawRangeOrBuilder getRawRangesOrBuilder( int index) { return rawRanges_.get(index); } public static final int DDLS_FIELD_NUMBER = 10; private com.google.protobuf.ByteString ddls_; /** *
     * In incremental backup, DDLs which are completed in (lastBackupTS, backupTS] will be stored here.
     * 
* * bytes ddls = 10; */ public com.google.protobuf.ByteString getDdls() { return ddls_; } public static final int BR_VERSION_FIELD_NUMBER = 11; private volatile java.lang.Object brVersion_; /** *
     * Save the version of BR running backup jobs.
     * 
* * string br_version = 11; */ public java.lang.String getBrVersion() { java.lang.Object ref = brVersion_; 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(); brVersion_ = s; return s; } } /** *
     * Save the version of BR running backup jobs.
     * 
* * string br_version = 11; */ public com.google.protobuf.ByteString getBrVersionBytes() { java.lang.Object ref = brVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); brVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (clusterId_ != 0L) { output.writeUInt64(1, clusterId_); } if (!getClusterVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterVersion_); } for (int i = 0; i < files_.size(); i++) { output.writeMessage(4, files_.get(i)); } if (startVersion_ != 0L) { output.writeUInt64(5, startVersion_); } if (endVersion_ != 0L) { output.writeUInt64(6, endVersion_); } for (int i = 0; i < schemas_.size(); i++) { output.writeMessage(7, schemas_.get(i)); } if (isRawKv_ != false) { output.writeBool(8, isRawKv_); } for (int i = 0; i < rawRanges_.size(); i++) { output.writeMessage(9, rawRanges_.get(i)); } if (!ddls_.isEmpty()) { output.writeBytes(10, ddls_); } if (!getBrVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, brVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clusterId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, clusterId_); } if (!getClusterVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterVersion_); } for (int i = 0; i < files_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, files_.get(i)); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, startVersion_); } if (endVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, endVersion_); } for (int i = 0; i < schemas_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, schemas_.get(i)); } if (isRawKv_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, isRawKv_); } for (int i = 0; i < rawRanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, rawRanges_.get(i)); } if (!ddls_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, ddls_); } if (!getBrVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, brVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.BackupMeta)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.BackupMeta other = (org.tikv.kvproto.BackupOuterClass.BackupMeta) obj; boolean result = true; result = result && (getClusterId() == other.getClusterId()); result = result && getClusterVersion() .equals(other.getClusterVersion()); result = result && getFilesList() .equals(other.getFilesList()); result = result && (getStartVersion() == other.getStartVersion()); result = result && (getEndVersion() == other.getEndVersion()); result = result && getSchemasList() .equals(other.getSchemasList()); result = result && (getIsRawKv() == other.getIsRawKv()); result = result && getRawRangesList() .equals(other.getRawRangesList()); result = result && getDdls() .equals(other.getDdls()); result = result && getBrVersion() .equals(other.getBrVersion()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClusterId()); hash = (37 * hash) + CLUSTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getClusterVersion().hashCode(); if (getFilesCount() > 0) { hash = (37 * hash) + FILES_FIELD_NUMBER; hash = (53 * hash) + getFilesList().hashCode(); } hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + END_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndVersion()); if (getSchemasCount() > 0) { hash = (37 * hash) + SCHEMAS_FIELD_NUMBER; hash = (53 * hash) + getSchemasList().hashCode(); } hash = (37 * hash) + IS_RAW_KV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRawKv()); if (getRawRangesCount() > 0) { hash = (37 * hash) + RAW_RANGES_FIELD_NUMBER; hash = (53 * hash) + getRawRangesList().hashCode(); } hash = (37 * hash) + DDLS_FIELD_NUMBER; hash = (53 * hash) + getDdls().hashCode(); hash = (37 * hash) + BR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getBrVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.BackupMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * The message save the metadata of a backup.
     * 
* * Protobuf type {@code backup.BackupMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.BackupMeta) org.tikv.kvproto.BackupOuterClass.BackupMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupMeta_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.BackupMeta.class, org.tikv.kvproto.BackupOuterClass.BackupMeta.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.BackupMeta.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFilesFieldBuilder(); getSchemasFieldBuilder(); getRawRangesFieldBuilder(); } } public Builder clear() { super.clear(); clusterId_ = 0L; clusterVersion_ = ""; if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { filesBuilder_.clear(); } startVersion_ = 0L; endVersion_ = 0L; if (schemasBuilder_ == null) { schemas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { schemasBuilder_.clear(); } isRawKv_ = false; if (rawRangesBuilder_ == null) { rawRanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { rawRangesBuilder_.clear(); } ddls_ = com.google.protobuf.ByteString.EMPTY; brVersion_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupMeta_descriptor; } public org.tikv.kvproto.BackupOuterClass.BackupMeta getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.BackupMeta.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.BackupMeta build() { org.tikv.kvproto.BackupOuterClass.BackupMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.BackupMeta buildPartial() { org.tikv.kvproto.BackupOuterClass.BackupMeta result = new org.tikv.kvproto.BackupOuterClass.BackupMeta(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.clusterId_ = clusterId_; result.clusterVersion_ = clusterVersion_; if (filesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { files_ = java.util.Collections.unmodifiableList(files_); bitField0_ = (bitField0_ & ~0x00000004); } result.files_ = files_; } else { result.files_ = filesBuilder_.build(); } result.startVersion_ = startVersion_; result.endVersion_ = endVersion_; if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); bitField0_ = (bitField0_ & ~0x00000020); } result.schemas_ = schemas_; } else { result.schemas_ = schemasBuilder_.build(); } result.isRawKv_ = isRawKv_; if (rawRangesBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { rawRanges_ = java.util.Collections.unmodifiableList(rawRanges_); bitField0_ = (bitField0_ & ~0x00000080); } result.rawRanges_ = rawRanges_; } else { result.rawRanges_ = rawRangesBuilder_.build(); } result.ddls_ = ddls_; result.brVersion_ = brVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.BackupMeta) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.BackupMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.BackupMeta other) { if (other == org.tikv.kvproto.BackupOuterClass.BackupMeta.getDefaultInstance()) return this; if (other.getClusterId() != 0L) { setClusterId(other.getClusterId()); } if (!other.getClusterVersion().isEmpty()) { clusterVersion_ = other.clusterVersion_; onChanged(); } if (filesBuilder_ == null) { if (!other.files_.isEmpty()) { if (files_.isEmpty()) { files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFilesIsMutable(); files_.addAll(other.files_); } onChanged(); } } else { if (!other.files_.isEmpty()) { if (filesBuilder_.isEmpty()) { filesBuilder_.dispose(); filesBuilder_ = null; files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000004); filesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFilesFieldBuilder() : null; } else { filesBuilder_.addAllMessages(other.files_); } } } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getEndVersion() != 0L) { setEndVersion(other.getEndVersion()); } if (schemasBuilder_ == null) { if (!other.schemas_.isEmpty()) { if (schemas_.isEmpty()) { schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSchemasIsMutable(); schemas_.addAll(other.schemas_); } onChanged(); } } else { if (!other.schemas_.isEmpty()) { if (schemasBuilder_.isEmpty()) { schemasBuilder_.dispose(); schemasBuilder_ = null; schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000020); schemasBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSchemasFieldBuilder() : null; } else { schemasBuilder_.addAllMessages(other.schemas_); } } } if (other.getIsRawKv() != false) { setIsRawKv(other.getIsRawKv()); } if (rawRangesBuilder_ == null) { if (!other.rawRanges_.isEmpty()) { if (rawRanges_.isEmpty()) { rawRanges_ = other.rawRanges_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureRawRangesIsMutable(); rawRanges_.addAll(other.rawRanges_); } onChanged(); } } else { if (!other.rawRanges_.isEmpty()) { if (rawRangesBuilder_.isEmpty()) { rawRangesBuilder_.dispose(); rawRangesBuilder_ = null; rawRanges_ = other.rawRanges_; bitField0_ = (bitField0_ & ~0x00000080); rawRangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRawRangesFieldBuilder() : null; } else { rawRangesBuilder_.addAllMessages(other.rawRanges_); } } } if (other.getDdls() != com.google.protobuf.ByteString.EMPTY) { setDdls(other.getDdls()); } if (!other.getBrVersion().isEmpty()) { brVersion_ = other.brVersion_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.BackupMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.BackupMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long clusterId_ ; /** *
       * ID and version of backuped cluster.
       * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } /** *
       * ID and version of backuped cluster.
       * 
* * uint64 cluster_id = 1; */ public Builder setClusterId(long value) { clusterId_ = value; onChanged(); return this; } /** *
       * ID and version of backuped cluster.
       * 
* * uint64 cluster_id = 1; */ public Builder clearClusterId() { clusterId_ = 0L; onChanged(); return this; } private java.lang.Object clusterVersion_ = ""; /** * string cluster_version = 2; */ public java.lang.String getClusterVersion() { java.lang.Object ref = clusterVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cluster_version = 2; */ public com.google.protobuf.ByteString getClusterVersionBytes() { java.lang.Object ref = clusterVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cluster_version = 2; */ public Builder setClusterVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterVersion_ = value; onChanged(); return this; } /** * string cluster_version = 2; */ public Builder clearClusterVersion() { clusterVersion_ = getDefaultInstance().getClusterVersion(); onChanged(); return this; } /** * string cluster_version = 2; */ public Builder setClusterVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterVersion_ = value; onChanged(); return this; } private java.util.List files_ = java.util.Collections.emptyList(); private void ensureFilesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { files_ = new java.util.ArrayList(files_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.File, org.tikv.kvproto.BackupOuterClass.File.Builder, org.tikv.kvproto.BackupOuterClass.FileOrBuilder> filesBuilder_; /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public java.util.List getFilesList() { if (filesBuilder_ == null) { return java.util.Collections.unmodifiableList(files_); } else { return filesBuilder_.getMessageList(); } } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public int getFilesCount() { if (filesBuilder_ == null) { return files_.size(); } else { return filesBuilder_.getCount(); } } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File getFiles(int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessage(index); } } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder setFiles( int index, org.tikv.kvproto.BackupOuterClass.File value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.set(index, value); onChanged(); } else { filesBuilder_.setMessage(index, value); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder setFiles( int index, org.tikv.kvproto.BackupOuterClass.File.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.set(index, builderForValue.build()); onChanged(); } else { filesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder addFiles(org.tikv.kvproto.BackupOuterClass.File value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(value); onChanged(); } else { filesBuilder_.addMessage(value); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder addFiles( int index, org.tikv.kvproto.BackupOuterClass.File value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(index, value); onChanged(); } else { filesBuilder_.addMessage(index, value); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder addFiles( org.tikv.kvproto.BackupOuterClass.File.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder addFiles( int index, org.tikv.kvproto.BackupOuterClass.File.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(index, builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder addAllFiles( java.lang.Iterable values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder clearFiles() { if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { filesBuilder_.clear(); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public Builder removeFiles(int index) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.remove(index); onChanged(); } else { filesBuilder_.remove(index); } return this; } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File.Builder getFilesBuilder( int index) { return getFilesFieldBuilder().getBuilder(index); } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.FileOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessageOrBuilder(index); } } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public java.util.List getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(files_); } } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File.Builder addFilesBuilder() { return getFilesFieldBuilder().addBuilder( org.tikv.kvproto.BackupOuterClass.File.getDefaultInstance()); } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File.Builder addFilesBuilder( int index) { return getFilesFieldBuilder().addBuilder( index, org.tikv.kvproto.BackupOuterClass.File.getDefaultInstance()); } /** *
       * A set of files that compose a backup.
       * 
* * repeated .backup.File files = 4; */ public java.util.List getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.File, org.tikv.kvproto.BackupOuterClass.File.Builder, org.tikv.kvproto.BackupOuterClass.FileOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.File, org.tikv.kvproto.BackupOuterClass.File.Builder, org.tikv.kvproto.BackupOuterClass.FileOrBuilder>( files_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; } private long startVersion_ ; /** *
       * A pair of timestamp specifies a time range of a backup.
       * For full backup, the start_version equals to the end_version,
       * it means point in time.
       * For incremental backup, the time range is specified as
       * (start_version, end_version].
       * 
* * uint64 start_version = 5; */ public long getStartVersion() { return startVersion_; } /** *
       * A pair of timestamp specifies a time range of a backup.
       * For full backup, the start_version equals to the end_version,
       * it means point in time.
       * For incremental backup, the time range is specified as
       * (start_version, end_version].
       * 
* * uint64 start_version = 5; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** *
       * A pair of timestamp specifies a time range of a backup.
       * For full backup, the start_version equals to the end_version,
       * it means point in time.
       * For incremental backup, the time range is specified as
       * (start_version, end_version].
       * 
* * uint64 start_version = 5; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long endVersion_ ; /** * uint64 end_version = 6; */ public long getEndVersion() { return endVersion_; } /** * uint64 end_version = 6; */ public Builder setEndVersion(long value) { endVersion_ = value; onChanged(); return this; } /** * uint64 end_version = 6; */ public Builder clearEndVersion() { endVersion_ = 0L; onChanged(); return this; } private java.util.List schemas_ = java.util.Collections.emptyList(); private void ensureSchemasIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { schemas_ = new java.util.ArrayList(schemas_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Schema, org.tikv.kvproto.BackupOuterClass.Schema.Builder, org.tikv.kvproto.BackupOuterClass.SchemaOrBuilder> schemasBuilder_; /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public java.util.List getSchemasList() { if (schemasBuilder_ == null) { return java.util.Collections.unmodifiableList(schemas_); } else { return schemasBuilder_.getMessageList(); } } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public int getSchemasCount() { if (schemasBuilder_ == null) { return schemas_.size(); } else { return schemasBuilder_.getCount(); } } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public org.tikv.kvproto.BackupOuterClass.Schema getSchemas(int index) { if (schemasBuilder_ == null) { return schemas_.get(index); } else { return schemasBuilder_.getMessage(index); } } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder setSchemas( int index, org.tikv.kvproto.BackupOuterClass.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSchemasIsMutable(); schemas_.set(index, value); onChanged(); } else { schemasBuilder_.setMessage(index, value); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder setSchemas( int index, org.tikv.kvproto.BackupOuterClass.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.set(index, builderForValue.build()); onChanged(); } else { schemasBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder addSchemas(org.tikv.kvproto.BackupOuterClass.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSchemasIsMutable(); schemas_.add(value); onChanged(); } else { schemasBuilder_.addMessage(value); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder addSchemas( int index, org.tikv.kvproto.BackupOuterClass.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSchemasIsMutable(); schemas_.add(index, value); onChanged(); } else { schemasBuilder_.addMessage(index, value); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder addSchemas( org.tikv.kvproto.BackupOuterClass.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(builderForValue.build()); onChanged(); } else { schemasBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder addSchemas( int index, org.tikv.kvproto.BackupOuterClass.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(index, builderForValue.build()); onChanged(); } else { schemasBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder addAllSchemas( java.lang.Iterable values) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, schemas_); onChanged(); } else { schemasBuilder_.addAllMessages(values); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder clearSchemas() { if (schemasBuilder_ == null) { schemas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { schemasBuilder_.clear(); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public Builder removeSchemas(int index) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.remove(index); onChanged(); } else { schemasBuilder_.remove(index); } return this; } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public org.tikv.kvproto.BackupOuterClass.Schema.Builder getSchemasBuilder( int index) { return getSchemasFieldBuilder().getBuilder(index); } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public org.tikv.kvproto.BackupOuterClass.SchemaOrBuilder getSchemasOrBuilder( int index) { if (schemasBuilder_ == null) { return schemas_.get(index); } else { return schemasBuilder_.getMessageOrBuilder(index); } } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public java.util.List getSchemasOrBuilderList() { if (schemasBuilder_ != null) { return schemasBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(schemas_); } } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public org.tikv.kvproto.BackupOuterClass.Schema.Builder addSchemasBuilder() { return getSchemasFieldBuilder().addBuilder( org.tikv.kvproto.BackupOuterClass.Schema.getDefaultInstance()); } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public org.tikv.kvproto.BackupOuterClass.Schema.Builder addSchemasBuilder( int index) { return getSchemasFieldBuilder().addBuilder( index, org.tikv.kvproto.BackupOuterClass.Schema.getDefaultInstance()); } /** *
       * Additional metadata describes database and table info.
       * 
* * repeated .backup.Schema schemas = 7; */ public java.util.List getSchemasBuilderList() { return getSchemasFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Schema, org.tikv.kvproto.BackupOuterClass.Schema.Builder, org.tikv.kvproto.BackupOuterClass.SchemaOrBuilder> getSchemasFieldBuilder() { if (schemasBuilder_ == null) { schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Schema, org.tikv.kvproto.BackupOuterClass.Schema.Builder, org.tikv.kvproto.BackupOuterClass.SchemaOrBuilder>( schemas_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); schemas_ = null; } return schemasBuilder_; } private boolean isRawKv_ ; /** *
       * If in raw kv mode, `start_versions`, `end_versions` and `schemas` will be ignored, and the
       * backup data's range is represented by raw_ranges.
       * 
* * bool is_raw_kv = 8; */ public boolean getIsRawKv() { return isRawKv_; } /** *
       * If in raw kv mode, `start_versions`, `end_versions` and `schemas` will be ignored, and the
       * backup data's range is represented by raw_ranges.
       * 
* * bool is_raw_kv = 8; */ public Builder setIsRawKv(boolean value) { isRawKv_ = value; onChanged(); return this; } /** *
       * If in raw kv mode, `start_versions`, `end_versions` and `schemas` will be ignored, and the
       * backup data's range is represented by raw_ranges.
       * 
* * bool is_raw_kv = 8; */ public Builder clearIsRawKv() { isRawKv_ = false; onChanged(); return this; } private java.util.List rawRanges_ = java.util.Collections.emptyList(); private void ensureRawRangesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { rawRanges_ = new java.util.ArrayList(rawRanges_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.RawRange, org.tikv.kvproto.BackupOuterClass.RawRange.Builder, org.tikv.kvproto.BackupOuterClass.RawRangeOrBuilder> rawRangesBuilder_; /** * repeated .backup.RawRange raw_ranges = 9; */ public java.util.List getRawRangesList() { if (rawRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(rawRanges_); } else { return rawRangesBuilder_.getMessageList(); } } /** * repeated .backup.RawRange raw_ranges = 9; */ public int getRawRangesCount() { if (rawRangesBuilder_ == null) { return rawRanges_.size(); } else { return rawRangesBuilder_.getCount(); } } /** * repeated .backup.RawRange raw_ranges = 9; */ public org.tikv.kvproto.BackupOuterClass.RawRange getRawRanges(int index) { if (rawRangesBuilder_ == null) { return rawRanges_.get(index); } else { return rawRangesBuilder_.getMessage(index); } } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder setRawRanges( int index, org.tikv.kvproto.BackupOuterClass.RawRange value) { if (rawRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRawRangesIsMutable(); rawRanges_.set(index, value); onChanged(); } else { rawRangesBuilder_.setMessage(index, value); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder setRawRanges( int index, org.tikv.kvproto.BackupOuterClass.RawRange.Builder builderForValue) { if (rawRangesBuilder_ == null) { ensureRawRangesIsMutable(); rawRanges_.set(index, builderForValue.build()); onChanged(); } else { rawRangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder addRawRanges(org.tikv.kvproto.BackupOuterClass.RawRange value) { if (rawRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRawRangesIsMutable(); rawRanges_.add(value); onChanged(); } else { rawRangesBuilder_.addMessage(value); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder addRawRanges( int index, org.tikv.kvproto.BackupOuterClass.RawRange value) { if (rawRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRawRangesIsMutable(); rawRanges_.add(index, value); onChanged(); } else { rawRangesBuilder_.addMessage(index, value); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder addRawRanges( org.tikv.kvproto.BackupOuterClass.RawRange.Builder builderForValue) { if (rawRangesBuilder_ == null) { ensureRawRangesIsMutable(); rawRanges_.add(builderForValue.build()); onChanged(); } else { rawRangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder addRawRanges( int index, org.tikv.kvproto.BackupOuterClass.RawRange.Builder builderForValue) { if (rawRangesBuilder_ == null) { ensureRawRangesIsMutable(); rawRanges_.add(index, builderForValue.build()); onChanged(); } else { rawRangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder addAllRawRanges( java.lang.Iterable values) { if (rawRangesBuilder_ == null) { ensureRawRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rawRanges_); onChanged(); } else { rawRangesBuilder_.addAllMessages(values); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder clearRawRanges() { if (rawRangesBuilder_ == null) { rawRanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { rawRangesBuilder_.clear(); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public Builder removeRawRanges(int index) { if (rawRangesBuilder_ == null) { ensureRawRangesIsMutable(); rawRanges_.remove(index); onChanged(); } else { rawRangesBuilder_.remove(index); } return this; } /** * repeated .backup.RawRange raw_ranges = 9; */ public org.tikv.kvproto.BackupOuterClass.RawRange.Builder getRawRangesBuilder( int index) { return getRawRangesFieldBuilder().getBuilder(index); } /** * repeated .backup.RawRange raw_ranges = 9; */ public org.tikv.kvproto.BackupOuterClass.RawRangeOrBuilder getRawRangesOrBuilder( int index) { if (rawRangesBuilder_ == null) { return rawRanges_.get(index); } else { return rawRangesBuilder_.getMessageOrBuilder(index); } } /** * repeated .backup.RawRange raw_ranges = 9; */ public java.util.List getRawRangesOrBuilderList() { if (rawRangesBuilder_ != null) { return rawRangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rawRanges_); } } /** * repeated .backup.RawRange raw_ranges = 9; */ public org.tikv.kvproto.BackupOuterClass.RawRange.Builder addRawRangesBuilder() { return getRawRangesFieldBuilder().addBuilder( org.tikv.kvproto.BackupOuterClass.RawRange.getDefaultInstance()); } /** * repeated .backup.RawRange raw_ranges = 9; */ public org.tikv.kvproto.BackupOuterClass.RawRange.Builder addRawRangesBuilder( int index) { return getRawRangesFieldBuilder().addBuilder( index, org.tikv.kvproto.BackupOuterClass.RawRange.getDefaultInstance()); } /** * repeated .backup.RawRange raw_ranges = 9; */ public java.util.List getRawRangesBuilderList() { return getRawRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.RawRange, org.tikv.kvproto.BackupOuterClass.RawRange.Builder, org.tikv.kvproto.BackupOuterClass.RawRangeOrBuilder> getRawRangesFieldBuilder() { if (rawRangesBuilder_ == null) { rawRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.RawRange, org.tikv.kvproto.BackupOuterClass.RawRange.Builder, org.tikv.kvproto.BackupOuterClass.RawRangeOrBuilder>( rawRanges_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); rawRanges_ = null; } return rawRangesBuilder_; } private com.google.protobuf.ByteString ddls_ = com.google.protobuf.ByteString.EMPTY; /** *
       * In incremental backup, DDLs which are completed in (lastBackupTS, backupTS] will be stored here.
       * 
* * bytes ddls = 10; */ public com.google.protobuf.ByteString getDdls() { return ddls_; } /** *
       * In incremental backup, DDLs which are completed in (lastBackupTS, backupTS] will be stored here.
       * 
* * bytes ddls = 10; */ public Builder setDdls(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ddls_ = value; onChanged(); return this; } /** *
       * In incremental backup, DDLs which are completed in (lastBackupTS, backupTS] will be stored here.
       * 
* * bytes ddls = 10; */ public Builder clearDdls() { ddls_ = getDefaultInstance().getDdls(); onChanged(); return this; } private java.lang.Object brVersion_ = ""; /** *
       * Save the version of BR running backup jobs.
       * 
* * string br_version = 11; */ public java.lang.String getBrVersion() { java.lang.Object ref = brVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); brVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Save the version of BR running backup jobs.
       * 
* * string br_version = 11; */ public com.google.protobuf.ByteString getBrVersionBytes() { java.lang.Object ref = brVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); brVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Save the version of BR running backup jobs.
       * 
* * string br_version = 11; */ public Builder setBrVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } brVersion_ = value; onChanged(); return this; } /** *
       * Save the version of BR running backup jobs.
       * 
* * string br_version = 11; */ public Builder clearBrVersion() { brVersion_ = getDefaultInstance().getBrVersion(); onChanged(); return this; } /** *
       * Save the version of BR running backup jobs.
       * 
* * string br_version = 11; */ public Builder setBrVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); brVersion_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.BackupMeta) } // @@protoc_insertion_point(class_scope:backup.BackupMeta) private static final org.tikv.kvproto.BackupOuterClass.BackupMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.BackupMeta(); } public static org.tikv.kvproto.BackupOuterClass.BackupMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BackupMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BackupMeta(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.BackupMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FileOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.File) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * bytes sha256 = 2; */ com.google.protobuf.ByteString getSha256(); /** * bytes start_key = 3; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 4; */ com.google.protobuf.ByteString getEndKey(); /** * uint64 start_version = 5; */ long getStartVersion(); /** * uint64 end_version = 6; */ long getEndVersion(); /** * uint64 crc64xor = 7; */ long getCrc64Xor(); /** * uint64 total_kvs = 8; */ long getTotalKvs(); /** * uint64 total_bytes = 9; */ long getTotalBytes(); /** * string cf = 10; */ java.lang.String getCf(); /** * string cf = 10; */ com.google.protobuf.ByteString getCfBytes(); /** * uint64 size = 11; */ long getSize(); } /** * Protobuf type {@code backup.File} */ public static final class File extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.File) FileOrBuilder { private static final long serialVersionUID = 0L; // Use File.newBuilder() to construct. private File(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private File() { name_ = ""; sha256_ = com.google.protobuf.ByteString.EMPTY; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; endVersion_ = 0L; crc64Xor_ = 0L; totalKvs_ = 0L; totalBytes_ = 0L; cf_ = ""; size_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private File( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { sha256_ = input.readBytes(); break; } case 26: { startKey_ = input.readBytes(); break; } case 34: { endKey_ = input.readBytes(); break; } case 40: { startVersion_ = input.readUInt64(); break; } case 48: { endVersion_ = input.readUInt64(); break; } case 56: { crc64Xor_ = input.readUInt64(); break; } case 64: { totalKvs_ = input.readUInt64(); break; } case 72: { totalBytes_ = input.readUInt64(); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 88: { size_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_File_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_File_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.File.class, org.tikv.kvproto.BackupOuterClass.File.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHA256_FIELD_NUMBER = 2; private com.google.protobuf.ByteString sha256_; /** * bytes sha256 = 2; */ public com.google.protobuf.ByteString getSha256() { return sha256_; } public static final int START_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 4; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int START_VERSION_FIELD_NUMBER = 5; private long startVersion_; /** * uint64 start_version = 5; */ public long getStartVersion() { return startVersion_; } public static final int END_VERSION_FIELD_NUMBER = 6; private long endVersion_; /** * uint64 end_version = 6; */ public long getEndVersion() { return endVersion_; } public static final int CRC64XOR_FIELD_NUMBER = 7; private long crc64Xor_; /** * uint64 crc64xor = 7; */ public long getCrc64Xor() { return crc64Xor_; } public static final int TOTAL_KVS_FIELD_NUMBER = 8; private long totalKvs_; /** * uint64 total_kvs = 8; */ public long getTotalKvs() { return totalKvs_; } public static final int TOTAL_BYTES_FIELD_NUMBER = 9; private long totalBytes_; /** * uint64 total_bytes = 9; */ public long getTotalBytes() { return totalBytes_; } public static final int CF_FIELD_NUMBER = 10; private volatile java.lang.Object cf_; /** * string cf = 10; */ public java.lang.String getCf() { java.lang.Object ref = cf_; 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(); cf_ = s; return s; } } /** * string cf = 10; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIZE_FIELD_NUMBER = 11; private long size_; /** * uint64 size = 11; */ public long getSize() { return size_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!sha256_.isEmpty()) { output.writeBytes(2, sha256_); } if (!startKey_.isEmpty()) { output.writeBytes(3, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(4, endKey_); } if (startVersion_ != 0L) { output.writeUInt64(5, startVersion_); } if (endVersion_ != 0L) { output.writeUInt64(6, endVersion_); } if (crc64Xor_ != 0L) { output.writeUInt64(7, crc64Xor_); } if (totalKvs_ != 0L) { output.writeUInt64(8, totalKvs_); } if (totalBytes_ != 0L) { output.writeUInt64(9, totalBytes_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, cf_); } if (size_ != 0L) { output.writeUInt64(11, size_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!sha256_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, sha256_); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, endKey_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, startVersion_); } if (endVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, endVersion_); } if (crc64Xor_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, crc64Xor_); } if (totalKvs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, totalKvs_); } if (totalBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, totalBytes_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, cf_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, size_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.File)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.File other = (org.tikv.kvproto.BackupOuterClass.File) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getSha256() .equals(other.getSha256()); result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (getStartVersion() == other.getStartVersion()); result = result && (getEndVersion() == other.getEndVersion()); result = result && (getCrc64Xor() == other.getCrc64Xor()); result = result && (getTotalKvs() == other.getTotalKvs()); result = result && (getTotalBytes() == other.getTotalBytes()); result = result && getCf() .equals(other.getCf()); result = result && (getSize() == other.getSize()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SHA256_FIELD_NUMBER; hash = (53 * hash) + getSha256().hashCode(); hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + END_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndVersion()); hash = (37 * hash) + CRC64XOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCrc64Xor()); hash = (37 * hash) + TOTAL_KVS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalKvs()); hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalBytes()); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.File parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.File parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.File parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.File prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.File} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.File) org.tikv.kvproto.BackupOuterClass.FileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_File_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_File_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.File.class, org.tikv.kvproto.BackupOuterClass.File.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.File.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; sha256_ = com.google.protobuf.ByteString.EMPTY; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; endVersion_ = 0L; crc64Xor_ = 0L; totalKvs_ = 0L; totalBytes_ = 0L; cf_ = ""; size_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_File_descriptor; } public org.tikv.kvproto.BackupOuterClass.File getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.File.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.File build() { org.tikv.kvproto.BackupOuterClass.File result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.File buildPartial() { org.tikv.kvproto.BackupOuterClass.File result = new org.tikv.kvproto.BackupOuterClass.File(this); result.name_ = name_; result.sha256_ = sha256_; result.startKey_ = startKey_; result.endKey_ = endKey_; result.startVersion_ = startVersion_; result.endVersion_ = endVersion_; result.crc64Xor_ = crc64Xor_; result.totalKvs_ = totalKvs_; result.totalBytes_ = totalBytes_; result.cf_ = cf_; result.size_ = size_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.File) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.File)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.File other) { if (other == org.tikv.kvproto.BackupOuterClass.File.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getSha256() != com.google.protobuf.ByteString.EMPTY) { setSha256(other.getSha256()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getEndVersion() != 0L) { setEndVersion(other.getEndVersion()); } if (other.getCrc64Xor() != 0L) { setCrc64Xor(other.getCrc64Xor()); } if (other.getTotalKvs() != 0L) { setTotalKvs(other.getTotalKvs()); } if (other.getTotalBytes() != 0L) { setTotalBytes(other.getTotalBytes()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.File parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.File) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.ByteString sha256_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sha256 = 2; */ public com.google.protobuf.ByteString getSha256() { return sha256_; } /** * bytes sha256 = 2; */ public Builder setSha256(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sha256_ = value; onChanged(); return this; } /** * bytes sha256 = 2; */ public Builder clearSha256() { sha256_ = getDefaultInstance().getSha256(); onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 3; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 3; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 4; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 4; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 4; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private long startVersion_ ; /** * uint64 start_version = 5; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 5; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 5; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long endVersion_ ; /** * uint64 end_version = 6; */ public long getEndVersion() { return endVersion_; } /** * uint64 end_version = 6; */ public Builder setEndVersion(long value) { endVersion_ = value; onChanged(); return this; } /** * uint64 end_version = 6; */ public Builder clearEndVersion() { endVersion_ = 0L; onChanged(); return this; } private long crc64Xor_ ; /** * uint64 crc64xor = 7; */ public long getCrc64Xor() { return crc64Xor_; } /** * uint64 crc64xor = 7; */ public Builder setCrc64Xor(long value) { crc64Xor_ = value; onChanged(); return this; } /** * uint64 crc64xor = 7; */ public Builder clearCrc64Xor() { crc64Xor_ = 0L; onChanged(); return this; } private long totalKvs_ ; /** * uint64 total_kvs = 8; */ public long getTotalKvs() { return totalKvs_; } /** * uint64 total_kvs = 8; */ public Builder setTotalKvs(long value) { totalKvs_ = value; onChanged(); return this; } /** * uint64 total_kvs = 8; */ public Builder clearTotalKvs() { totalKvs_ = 0L; onChanged(); return this; } private long totalBytes_ ; /** * uint64 total_bytes = 9; */ public long getTotalBytes() { return totalBytes_; } /** * uint64 total_bytes = 9; */ public Builder setTotalBytes(long value) { totalBytes_ = value; onChanged(); return this; } /** * uint64 total_bytes = 9; */ public Builder clearTotalBytes() { totalBytes_ = 0L; onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 10; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 10; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 10; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 10; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 10; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private long size_ ; /** * uint64 size = 11; */ public long getSize() { return size_; } /** * uint64 size = 11; */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** * uint64 size = 11; */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.File) } // @@protoc_insertion_point(class_scope:backup.File) private static final org.tikv.kvproto.BackupOuterClass.File DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.File(); } public static org.tikv.kvproto.BackupOuterClass.File getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public File parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new File(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.File getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.Schema) com.google.protobuf.MessageOrBuilder { /** * bytes db = 1; */ com.google.protobuf.ByteString getDb(); /** * bytes table = 2; */ com.google.protobuf.ByteString getTable(); /** * uint64 crc64xor = 3; */ long getCrc64Xor(); /** * uint64 total_kvs = 4; */ long getTotalKvs(); /** * uint64 total_bytes = 5; */ long getTotalBytes(); /** * uint32 tiflash_replicas = 6; */ int getTiflashReplicas(); /** *
     * stats represents the dump stats for a analyzed table, which generate by DumpStatsToJSON
     * https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116
     * 
* * bytes stats = 7; */ com.google.protobuf.ByteString getStats(); } /** * Protobuf type {@code backup.Schema} */ public static final class Schema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.Schema) SchemaOrBuilder { private static final long serialVersionUID = 0L; // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Schema() { db_ = com.google.protobuf.ByteString.EMPTY; table_ = com.google.protobuf.ByteString.EMPTY; crc64Xor_ = 0L; totalKvs_ = 0L; totalBytes_ = 0L; tiflashReplicas_ = 0; stats_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Schema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { db_ = input.readBytes(); break; } case 18: { table_ = input.readBytes(); break; } case 24: { crc64Xor_ = input.readUInt64(); break; } case 32: { totalKvs_ = input.readUInt64(); break; } case 40: { totalBytes_ = input.readUInt64(); break; } case 48: { tiflashReplicas_ = input.readUInt32(); break; } case 58: { stats_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Schema_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Schema.class, org.tikv.kvproto.BackupOuterClass.Schema.Builder.class); } public static final int DB_FIELD_NUMBER = 1; private com.google.protobuf.ByteString db_; /** * bytes db = 1; */ public com.google.protobuf.ByteString getDb() { return db_; } public static final int TABLE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString table_; /** * bytes table = 2; */ public com.google.protobuf.ByteString getTable() { return table_; } public static final int CRC64XOR_FIELD_NUMBER = 3; private long crc64Xor_; /** * uint64 crc64xor = 3; */ public long getCrc64Xor() { return crc64Xor_; } public static final int TOTAL_KVS_FIELD_NUMBER = 4; private long totalKvs_; /** * uint64 total_kvs = 4; */ public long getTotalKvs() { return totalKvs_; } public static final int TOTAL_BYTES_FIELD_NUMBER = 5; private long totalBytes_; /** * uint64 total_bytes = 5; */ public long getTotalBytes() { return totalBytes_; } public static final int TIFLASH_REPLICAS_FIELD_NUMBER = 6; private int tiflashReplicas_; /** * uint32 tiflash_replicas = 6; */ public int getTiflashReplicas() { return tiflashReplicas_; } public static final int STATS_FIELD_NUMBER = 7; private com.google.protobuf.ByteString stats_; /** *
     * stats represents the dump stats for a analyzed table, which generate by DumpStatsToJSON
     * https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116
     * 
* * bytes stats = 7; */ public com.google.protobuf.ByteString getStats() { return stats_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!db_.isEmpty()) { output.writeBytes(1, db_); } if (!table_.isEmpty()) { output.writeBytes(2, table_); } if (crc64Xor_ != 0L) { output.writeUInt64(3, crc64Xor_); } if (totalKvs_ != 0L) { output.writeUInt64(4, totalKvs_); } if (totalBytes_ != 0L) { output.writeUInt64(5, totalBytes_); } if (tiflashReplicas_ != 0) { output.writeUInt32(6, tiflashReplicas_); } if (!stats_.isEmpty()) { output.writeBytes(7, stats_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!db_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, db_); } if (!table_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, table_); } if (crc64Xor_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, crc64Xor_); } if (totalKvs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, totalKvs_); } if (totalBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, totalBytes_); } if (tiflashReplicas_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, tiflashReplicas_); } if (!stats_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, stats_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.Schema)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.Schema other = (org.tikv.kvproto.BackupOuterClass.Schema) obj; boolean result = true; result = result && getDb() .equals(other.getDb()); result = result && getTable() .equals(other.getTable()); result = result && (getCrc64Xor() == other.getCrc64Xor()); result = result && (getTotalKvs() == other.getTotalKvs()); result = result && (getTotalBytes() == other.getTotalBytes()); result = result && (getTiflashReplicas() == other.getTiflashReplicas()); result = result && getStats() .equals(other.getStats()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DB_FIELD_NUMBER; hash = (53 * hash) + getDb().hashCode(); hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + CRC64XOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCrc64Xor()); hash = (37 * hash) + TOTAL_KVS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalKvs()); hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalBytes()); hash = (37 * hash) + TIFLASH_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getTiflashReplicas(); hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Schema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Schema parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Schema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.Schema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.Schema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.Schema) org.tikv.kvproto.BackupOuterClass.SchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Schema_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Schema.class, org.tikv.kvproto.BackupOuterClass.Schema.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.Schema.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); db_ = com.google.protobuf.ByteString.EMPTY; table_ = com.google.protobuf.ByteString.EMPTY; crc64Xor_ = 0L; totalKvs_ = 0L; totalBytes_ = 0L; tiflashReplicas_ = 0; stats_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Schema_descriptor; } public org.tikv.kvproto.BackupOuterClass.Schema getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.Schema.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.Schema build() { org.tikv.kvproto.BackupOuterClass.Schema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.Schema buildPartial() { org.tikv.kvproto.BackupOuterClass.Schema result = new org.tikv.kvproto.BackupOuterClass.Schema(this); result.db_ = db_; result.table_ = table_; result.crc64Xor_ = crc64Xor_; result.totalKvs_ = totalKvs_; result.totalBytes_ = totalBytes_; result.tiflashReplicas_ = tiflashReplicas_; result.stats_ = stats_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.Schema) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.Schema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.Schema other) { if (other == org.tikv.kvproto.BackupOuterClass.Schema.getDefaultInstance()) return this; if (other.getDb() != com.google.protobuf.ByteString.EMPTY) { setDb(other.getDb()); } if (other.getTable() != com.google.protobuf.ByteString.EMPTY) { setTable(other.getTable()); } if (other.getCrc64Xor() != 0L) { setCrc64Xor(other.getCrc64Xor()); } if (other.getTotalKvs() != 0L) { setTotalKvs(other.getTotalKvs()); } if (other.getTotalBytes() != 0L) { setTotalBytes(other.getTotalBytes()); } if (other.getTiflashReplicas() != 0) { setTiflashReplicas(other.getTiflashReplicas()); } if (other.getStats() != com.google.protobuf.ByteString.EMPTY) { setStats(other.getStats()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.Schema parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.Schema) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString db_ = com.google.protobuf.ByteString.EMPTY; /** * bytes db = 1; */ public com.google.protobuf.ByteString getDb() { return db_; } /** * bytes db = 1; */ public Builder setDb(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } db_ = value; onChanged(); return this; } /** * bytes db = 1; */ public Builder clearDb() { db_ = getDefaultInstance().getDb(); onChanged(); return this; } private com.google.protobuf.ByteString table_ = com.google.protobuf.ByteString.EMPTY; /** * bytes table = 2; */ public com.google.protobuf.ByteString getTable() { return table_; } /** * bytes table = 2; */ public Builder setTable(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } table_ = value; onChanged(); return this; } /** * bytes table = 2; */ public Builder clearTable() { table_ = getDefaultInstance().getTable(); onChanged(); return this; } private long crc64Xor_ ; /** * uint64 crc64xor = 3; */ public long getCrc64Xor() { return crc64Xor_; } /** * uint64 crc64xor = 3; */ public Builder setCrc64Xor(long value) { crc64Xor_ = value; onChanged(); return this; } /** * uint64 crc64xor = 3; */ public Builder clearCrc64Xor() { crc64Xor_ = 0L; onChanged(); return this; } private long totalKvs_ ; /** * uint64 total_kvs = 4; */ public long getTotalKvs() { return totalKvs_; } /** * uint64 total_kvs = 4; */ public Builder setTotalKvs(long value) { totalKvs_ = value; onChanged(); return this; } /** * uint64 total_kvs = 4; */ public Builder clearTotalKvs() { totalKvs_ = 0L; onChanged(); return this; } private long totalBytes_ ; /** * uint64 total_bytes = 5; */ public long getTotalBytes() { return totalBytes_; } /** * uint64 total_bytes = 5; */ public Builder setTotalBytes(long value) { totalBytes_ = value; onChanged(); return this; } /** * uint64 total_bytes = 5; */ public Builder clearTotalBytes() { totalBytes_ = 0L; onChanged(); return this; } private int tiflashReplicas_ ; /** * uint32 tiflash_replicas = 6; */ public int getTiflashReplicas() { return tiflashReplicas_; } /** * uint32 tiflash_replicas = 6; */ public Builder setTiflashReplicas(int value) { tiflashReplicas_ = value; onChanged(); return this; } /** * uint32 tiflash_replicas = 6; */ public Builder clearTiflashReplicas() { tiflashReplicas_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString stats_ = com.google.protobuf.ByteString.EMPTY; /** *
       * stats represents the dump stats for a analyzed table, which generate by DumpStatsToJSON
       * https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116
       * 
* * bytes stats = 7; */ public com.google.protobuf.ByteString getStats() { return stats_; } /** *
       * stats represents the dump stats for a analyzed table, which generate by DumpStatsToJSON
       * https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116
       * 
* * bytes stats = 7; */ public Builder setStats(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } stats_ = value; onChanged(); return this; } /** *
       * stats represents the dump stats for a analyzed table, which generate by DumpStatsToJSON
       * https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116
       * 
* * bytes stats = 7; */ public Builder clearStats() { stats_ = getDefaultInstance().getStats(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.Schema) } // @@protoc_insertion_point(class_scope:backup.Schema) private static final org.tikv.kvproto.BackupOuterClass.Schema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.Schema(); } public static org.tikv.kvproto.BackupOuterClass.Schema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Schema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Schema(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.RawRange) com.google.protobuf.MessageOrBuilder { /** * bytes start_key = 1; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 2; */ com.google.protobuf.ByteString getEndKey(); /** * string cf = 3; */ java.lang.String getCf(); /** * string cf = 3; */ com.google.protobuf.ByteString getCfBytes(); } /** * Protobuf type {@code backup.RawRange} */ public static final class RawRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.RawRange) RawRangeOrBuilder { private static final long serialVersionUID = 0L; // Use RawRange.newBuilder() to construct. private RawRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawRange() { startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawRange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { startKey_ = input.readBytes(); break; } case 18: { endKey_ = input.readBytes(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_RawRange_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_RawRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.RawRange.class, org.tikv.kvproto.BackupOuterClass.RawRange.Builder.class); } public static final int START_KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 1; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 2; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int CF_FIELD_NUMBER = 3; private volatile java.lang.Object cf_; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; 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(); cf_ = s; return s; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!startKey_.isEmpty()) { output.writeBytes(1, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(2, endKey_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cf_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, endKey_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cf_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.RawRange)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.RawRange other = (org.tikv.kvproto.BackupOuterClass.RawRange) obj; boolean result = true; result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && getCf() .equals(other.getCf()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.RawRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.RawRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.RawRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.RawRange) org.tikv.kvproto.BackupOuterClass.RawRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_RawRange_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_RawRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.RawRange.class, org.tikv.kvproto.BackupOuterClass.RawRange.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.RawRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_RawRange_descriptor; } public org.tikv.kvproto.BackupOuterClass.RawRange getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.RawRange.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.RawRange build() { org.tikv.kvproto.BackupOuterClass.RawRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.RawRange buildPartial() { org.tikv.kvproto.BackupOuterClass.RawRange result = new org.tikv.kvproto.BackupOuterClass.RawRange(this); result.startKey_ = startKey_; result.endKey_ = endKey_; result.cf_ = cf_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.RawRange) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.RawRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.RawRange other) { if (other == org.tikv.kvproto.BackupOuterClass.RawRange.getDefaultInstance()) return this; if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.RawRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.RawRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 1; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 1; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 1; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 2; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 2; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 2; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 3; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 3; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 3; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.RawRange) } // @@protoc_insertion_point(class_scope:backup.RawRange) private static final org.tikv.kvproto.BackupOuterClass.RawRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.RawRange(); } public static org.tikv.kvproto.BackupOuterClass.RawRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawRange(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.RawRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClusterIDErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.ClusterIDError) com.google.protobuf.MessageOrBuilder { /** * uint64 current = 1; */ long getCurrent(); /** * uint64 request = 2; */ long getRequest(); } /** * Protobuf type {@code backup.ClusterIDError} */ public static final class ClusterIDError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.ClusterIDError) ClusterIDErrorOrBuilder { private static final long serialVersionUID = 0L; // Use ClusterIDError.newBuilder() to construct. private ClusterIDError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClusterIDError() { current_ = 0L; request_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterIDError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { current_ = input.readUInt64(); break; } case 16: { request_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_ClusterIDError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_ClusterIDError_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.ClusterIDError.class, org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder.class); } public static final int CURRENT_FIELD_NUMBER = 1; private long current_; /** * uint64 current = 1; */ public long getCurrent() { return current_; } public static final int REQUEST_FIELD_NUMBER = 2; private long request_; /** * uint64 request = 2; */ public long getRequest() { return request_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (current_ != 0L) { output.writeUInt64(1, current_); } if (request_ != 0L) { output.writeUInt64(2, request_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (current_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, current_); } if (request_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, request_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.ClusterIDError)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.ClusterIDError other = (org.tikv.kvproto.BackupOuterClass.ClusterIDError) obj; boolean result = true; result = result && (getCurrent() == other.getCurrent()); result = result && (getRequest() == other.getRequest()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CURRENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrent()); hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequest()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.ClusterIDError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.ClusterIDError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.ClusterIDError) org.tikv.kvproto.BackupOuterClass.ClusterIDErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_ClusterIDError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_ClusterIDError_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.ClusterIDError.class, org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.ClusterIDError.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); current_ = 0L; request_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_ClusterIDError_descriptor; } public org.tikv.kvproto.BackupOuterClass.ClusterIDError getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.ClusterIDError build() { org.tikv.kvproto.BackupOuterClass.ClusterIDError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.ClusterIDError buildPartial() { org.tikv.kvproto.BackupOuterClass.ClusterIDError result = new org.tikv.kvproto.BackupOuterClass.ClusterIDError(this); result.current_ = current_; result.request_ = request_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.ClusterIDError) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.ClusterIDError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.ClusterIDError other) { if (other == org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance()) return this; if (other.getCurrent() != 0L) { setCurrent(other.getCurrent()); } if (other.getRequest() != 0L) { setRequest(other.getRequest()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.ClusterIDError parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.ClusterIDError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long current_ ; /** * uint64 current = 1; */ public long getCurrent() { return current_; } /** * uint64 current = 1; */ public Builder setCurrent(long value) { current_ = value; onChanged(); return this; } /** * uint64 current = 1; */ public Builder clearCurrent() { current_ = 0L; onChanged(); return this; } private long request_ ; /** * uint64 request = 2; */ public long getRequest() { return request_; } /** * uint64 request = 2; */ public Builder setRequest(long value) { request_ = value; onChanged(); return this; } /** * uint64 request = 2; */ public Builder clearRequest() { request_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.ClusterIDError) } // @@protoc_insertion_point(class_scope:backup.ClusterIDError) private static final org.tikv.kvproto.BackupOuterClass.ClusterIDError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.ClusterIDError(); } public static org.tikv.kvproto.BackupOuterClass.ClusterIDError getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ClusterIDError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterIDError(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.ClusterIDError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.Error) com.google.protobuf.MessageOrBuilder { /** * string msg = 1; */ java.lang.String getMsg(); /** * string msg = 1; */ com.google.protobuf.ByteString getMsgBytes(); /** * .backup.ClusterIDError cluster_id_error = 3; */ boolean hasClusterIdError(); /** * .backup.ClusterIDError cluster_id_error = 3; */ org.tikv.kvproto.BackupOuterClass.ClusterIDError getClusterIdError(); /** * .backup.ClusterIDError cluster_id_error = 3; */ org.tikv.kvproto.BackupOuterClass.ClusterIDErrorOrBuilder getClusterIdErrorOrBuilder(); /** * .kvrpcpb.KeyError kv_error = 4; */ boolean hasKvError(); /** * .kvrpcpb.KeyError kv_error = 4; */ org.tikv.kvproto.Kvrpcpb.KeyError getKvError(); /** * .kvrpcpb.KeyError kv_error = 4; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getKvErrorOrBuilder(); /** * .errorpb.Error region_error = 5; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 5; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 5; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); public org.tikv.kvproto.BackupOuterClass.Error.DetailCase getDetailCase(); } /** * Protobuf type {@code backup.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { msg_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Error( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); msg_ = s; break; } case 26: { org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder subBuilder = null; if (detailCase_ == 3) { subBuilder = ((org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_).toBuilder(); } detail_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.ClusterIDError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_); detail_ = subBuilder.buildPartial(); } detailCase_ = 3; break; } case 34: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (detailCase_ == 4) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.KeyError) detail_).toBuilder(); } detail_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.KeyError) detail_); detail_ = subBuilder.buildPartial(); } detailCase_ = 4; break; } case 42: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (detailCase_ == 5) { subBuilder = ((org.tikv.kvproto.Errorpb.Error) detail_).toBuilder(); } detail_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Errorpb.Error) detail_); detail_ = subBuilder.buildPartial(); } detailCase_ = 5; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Error.class, org.tikv.kvproto.BackupOuterClass.Error.Builder.class); } private int detailCase_ = 0; private java.lang.Object detail_; public enum DetailCase implements com.google.protobuf.Internal.EnumLite { CLUSTER_ID_ERROR(3), KV_ERROR(4), REGION_ERROR(5), DETAIL_NOT_SET(0); private final int value; private DetailCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DetailCase valueOf(int value) { return forNumber(value); } public static DetailCase forNumber(int value) { switch (value) { case 3: return CLUSTER_ID_ERROR; case 4: return KV_ERROR; case 5: return REGION_ERROR; case 0: return DETAIL_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DetailCase getDetailCase() { return DetailCase.forNumber( detailCase_); } public static final int MSG_FIELD_NUMBER = 1; private volatile java.lang.Object msg_; /** * string msg = 1; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; 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(); msg_ = s; return s; } } /** * string msg = 1; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTER_ID_ERROR_FIELD_NUMBER = 3; /** * .backup.ClusterIDError cluster_id_error = 3; */ public boolean hasClusterIdError() { return detailCase_ == 3; } /** * .backup.ClusterIDError cluster_id_error = 3; */ public org.tikv.kvproto.BackupOuterClass.ClusterIDError getClusterIdError() { if (detailCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_; } return org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance(); } /** * .backup.ClusterIDError cluster_id_error = 3; */ public org.tikv.kvproto.BackupOuterClass.ClusterIDErrorOrBuilder getClusterIdErrorOrBuilder() { if (detailCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_; } return org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance(); } public static final int KV_ERROR_FIELD_NUMBER = 4; /** * .kvrpcpb.KeyError kv_error = 4; */ public boolean hasKvError() { return detailCase_ == 4; } /** * .kvrpcpb.KeyError kv_error = 4; */ public org.tikv.kvproto.Kvrpcpb.KeyError getKvError() { if (detailCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.KeyError) detail_; } return org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance(); } /** * .kvrpcpb.KeyError kv_error = 4; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getKvErrorOrBuilder() { if (detailCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.KeyError) detail_; } return org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance(); } public static final int REGION_ERROR_FIELD_NUMBER = 5; /** * .errorpb.Error region_error = 5; */ public boolean hasRegionError() { return detailCase_ == 5; } /** * .errorpb.Error region_error = 5; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (detailCase_ == 5) { return (org.tikv.kvproto.Errorpb.Error) detail_; } return org.tikv.kvproto.Errorpb.Error.getDefaultInstance(); } /** * .errorpb.Error region_error = 5; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (detailCase_ == 5) { return (org.tikv.kvproto.Errorpb.Error) detail_; } return org.tikv.kvproto.Errorpb.Error.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMsgBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, msg_); } if (detailCase_ == 3) { output.writeMessage(3, (org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_); } if (detailCase_ == 4) { output.writeMessage(4, (org.tikv.kvproto.Kvrpcpb.KeyError) detail_); } if (detailCase_ == 5) { output.writeMessage(5, (org.tikv.kvproto.Errorpb.Error) detail_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMsgBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, msg_); } if (detailCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_); } if (detailCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.tikv.kvproto.Kvrpcpb.KeyError) detail_); } if (detailCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.tikv.kvproto.Errorpb.Error) detail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.Error)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.Error other = (org.tikv.kvproto.BackupOuterClass.Error) obj; boolean result = true; result = result && getMsg() .equals(other.getMsg()); result = result && getDetailCase().equals( other.getDetailCase()); if (!result) return false; switch (detailCase_) { case 3: result = result && getClusterIdError() .equals(other.getClusterIdError()); break; case 4: result = result && getKvError() .equals(other.getKvError()); break; case 5: result = result && getRegionError() .equals(other.getRegionError()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MSG_FIELD_NUMBER; hash = (53 * hash) + getMsg().hashCode(); switch (detailCase_) { case 3: hash = (37 * hash) + CLUSTER_ID_ERROR_FIELD_NUMBER; hash = (53 * hash) + getClusterIdError().hashCode(); break; case 4: hash = (37 * hash) + KV_ERROR_FIELD_NUMBER; hash = (53 * hash) + getKvError().hashCode(); break; case 5: hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Error parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.Error) org.tikv.kvproto.BackupOuterClass.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Error.class, org.tikv.kvproto.BackupOuterClass.Error.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); msg_ = ""; detailCase_ = 0; detail_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Error_descriptor; } public org.tikv.kvproto.BackupOuterClass.Error getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.Error.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.Error build() { org.tikv.kvproto.BackupOuterClass.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.Error buildPartial() { org.tikv.kvproto.BackupOuterClass.Error result = new org.tikv.kvproto.BackupOuterClass.Error(this); result.msg_ = msg_; if (detailCase_ == 3) { if (clusterIdErrorBuilder_ == null) { result.detail_ = detail_; } else { result.detail_ = clusterIdErrorBuilder_.build(); } } if (detailCase_ == 4) { if (kvErrorBuilder_ == null) { result.detail_ = detail_; } else { result.detail_ = kvErrorBuilder_.build(); } } if (detailCase_ == 5) { if (regionErrorBuilder_ == null) { result.detail_ = detail_; } else { result.detail_ = regionErrorBuilder_.build(); } } result.detailCase_ = detailCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.Error) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.Error other) { if (other == org.tikv.kvproto.BackupOuterClass.Error.getDefaultInstance()) return this; if (!other.getMsg().isEmpty()) { msg_ = other.msg_; onChanged(); } switch (other.getDetailCase()) { case CLUSTER_ID_ERROR: { mergeClusterIdError(other.getClusterIdError()); break; } case KV_ERROR: { mergeKvError(other.getKvError()); break; } case REGION_ERROR: { mergeRegionError(other.getRegionError()); break; } case DETAIL_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.Error parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.Error) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int detailCase_ = 0; private java.lang.Object detail_; public DetailCase getDetailCase() { return DetailCase.forNumber( detailCase_); } public Builder clearDetail() { detailCase_ = 0; detail_ = null; onChanged(); return this; } private java.lang.Object msg_ = ""; /** * string msg = 1; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); msg_ = s; return s; } else { return (java.lang.String) ref; } } /** * string msg = 1; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string msg = 1; */ public Builder setMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } msg_ = value; onChanged(); return this; } /** * string msg = 1; */ public Builder clearMsg() { msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /** * string msg = 1; */ public Builder setMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); msg_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.ClusterIDError, org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder, org.tikv.kvproto.BackupOuterClass.ClusterIDErrorOrBuilder> clusterIdErrorBuilder_; /** * .backup.ClusterIDError cluster_id_error = 3; */ public boolean hasClusterIdError() { return detailCase_ == 3; } /** * .backup.ClusterIDError cluster_id_error = 3; */ public org.tikv.kvproto.BackupOuterClass.ClusterIDError getClusterIdError() { if (clusterIdErrorBuilder_ == null) { if (detailCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_; } return org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance(); } else { if (detailCase_ == 3) { return clusterIdErrorBuilder_.getMessage(); } return org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance(); } } /** * .backup.ClusterIDError cluster_id_error = 3; */ public Builder setClusterIdError(org.tikv.kvproto.BackupOuterClass.ClusterIDError value) { if (clusterIdErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); } else { clusterIdErrorBuilder_.setMessage(value); } detailCase_ = 3; return this; } /** * .backup.ClusterIDError cluster_id_error = 3; */ public Builder setClusterIdError( org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder builderForValue) { if (clusterIdErrorBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); } else { clusterIdErrorBuilder_.setMessage(builderForValue.build()); } detailCase_ = 3; return this; } /** * .backup.ClusterIDError cluster_id_error = 3; */ public Builder mergeClusterIdError(org.tikv.kvproto.BackupOuterClass.ClusterIDError value) { if (clusterIdErrorBuilder_ == null) { if (detailCase_ == 3 && detail_ != org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance()) { detail_ = org.tikv.kvproto.BackupOuterClass.ClusterIDError.newBuilder((org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_) .mergeFrom(value).buildPartial(); } else { detail_ = value; } onChanged(); } else { if (detailCase_ == 3) { clusterIdErrorBuilder_.mergeFrom(value); } clusterIdErrorBuilder_.setMessage(value); } detailCase_ = 3; return this; } /** * .backup.ClusterIDError cluster_id_error = 3; */ public Builder clearClusterIdError() { if (clusterIdErrorBuilder_ == null) { if (detailCase_ == 3) { detailCase_ = 0; detail_ = null; onChanged(); } } else { if (detailCase_ == 3) { detailCase_ = 0; detail_ = null; } clusterIdErrorBuilder_.clear(); } return this; } /** * .backup.ClusterIDError cluster_id_error = 3; */ public org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder getClusterIdErrorBuilder() { return getClusterIdErrorFieldBuilder().getBuilder(); } /** * .backup.ClusterIDError cluster_id_error = 3; */ public org.tikv.kvproto.BackupOuterClass.ClusterIDErrorOrBuilder getClusterIdErrorOrBuilder() { if ((detailCase_ == 3) && (clusterIdErrorBuilder_ != null)) { return clusterIdErrorBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_; } return org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance(); } } /** * .backup.ClusterIDError cluster_id_error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.ClusterIDError, org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder, org.tikv.kvproto.BackupOuterClass.ClusterIDErrorOrBuilder> getClusterIdErrorFieldBuilder() { if (clusterIdErrorBuilder_ == null) { if (!(detailCase_ == 3)) { detail_ = org.tikv.kvproto.BackupOuterClass.ClusterIDError.getDefaultInstance(); } clusterIdErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.ClusterIDError, org.tikv.kvproto.BackupOuterClass.ClusterIDError.Builder, org.tikv.kvproto.BackupOuterClass.ClusterIDErrorOrBuilder>( (org.tikv.kvproto.BackupOuterClass.ClusterIDError) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 3; onChanged();; return clusterIdErrorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> kvErrorBuilder_; /** * .kvrpcpb.KeyError kv_error = 4; */ public boolean hasKvError() { return detailCase_ == 4; } /** * .kvrpcpb.KeyError kv_error = 4; */ public org.tikv.kvproto.Kvrpcpb.KeyError getKvError() { if (kvErrorBuilder_ == null) { if (detailCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.KeyError) detail_; } return org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance(); } else { if (detailCase_ == 4) { return kvErrorBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance(); } } /** * .kvrpcpb.KeyError kv_error = 4; */ public Builder setKvError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (kvErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); } else { kvErrorBuilder_.setMessage(value); } detailCase_ = 4; return this; } /** * .kvrpcpb.KeyError kv_error = 4; */ public Builder setKvError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (kvErrorBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); } else { kvErrorBuilder_.setMessage(builderForValue.build()); } detailCase_ = 4; return this; } /** * .kvrpcpb.KeyError kv_error = 4; */ public Builder mergeKvError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (kvErrorBuilder_ == null) { if (detailCase_ == 4 && detail_ != org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()) { detail_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder((org.tikv.kvproto.Kvrpcpb.KeyError) detail_) .mergeFrom(value).buildPartial(); } else { detail_ = value; } onChanged(); } else { if (detailCase_ == 4) { kvErrorBuilder_.mergeFrom(value); } kvErrorBuilder_.setMessage(value); } detailCase_ = 4; return this; } /** * .kvrpcpb.KeyError kv_error = 4; */ public Builder clearKvError() { if (kvErrorBuilder_ == null) { if (detailCase_ == 4) { detailCase_ = 0; detail_ = null; onChanged(); } } else { if (detailCase_ == 4) { detailCase_ = 0; detail_ = null; } kvErrorBuilder_.clear(); } return this; } /** * .kvrpcpb.KeyError kv_error = 4; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getKvErrorBuilder() { return getKvErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError kv_error = 4; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getKvErrorOrBuilder() { if ((detailCase_ == 4) && (kvErrorBuilder_ != null)) { return kvErrorBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.KeyError) detail_; } return org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance(); } } /** * .kvrpcpb.KeyError kv_error = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getKvErrorFieldBuilder() { if (kvErrorBuilder_ == null) { if (!(detailCase_ == 4)) { detail_ = org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance(); } kvErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( (org.tikv.kvproto.Kvrpcpb.KeyError) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 4; onChanged();; return kvErrorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 5; */ public boolean hasRegionError() { return detailCase_ == 5; } /** * .errorpb.Error region_error = 5; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { if (detailCase_ == 5) { return (org.tikv.kvproto.Errorpb.Error) detail_; } return org.tikv.kvproto.Errorpb.Error.getDefaultInstance(); } else { if (detailCase_ == 5) { return regionErrorBuilder_.getMessage(); } return org.tikv.kvproto.Errorpb.Error.getDefaultInstance(); } } /** * .errorpb.Error region_error = 5; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } detailCase_ = 5; return this; } /** * .errorpb.Error region_error = 5; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } detailCase_ = 5; return this; } /** * .errorpb.Error region_error = 5; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (detailCase_ == 5 && detail_ != org.tikv.kvproto.Errorpb.Error.getDefaultInstance()) { detail_ = org.tikv.kvproto.Errorpb.Error.newBuilder((org.tikv.kvproto.Errorpb.Error) detail_) .mergeFrom(value).buildPartial(); } else { detail_ = value; } onChanged(); } else { if (detailCase_ == 5) { regionErrorBuilder_.mergeFrom(value); } regionErrorBuilder_.setMessage(value); } detailCase_ = 5; return this; } /** * .errorpb.Error region_error = 5; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { if (detailCase_ == 5) { detailCase_ = 0; detail_ = null; onChanged(); } } else { if (detailCase_ == 5) { detailCase_ = 0; detail_ = null; } regionErrorBuilder_.clear(); } return this; } /** * .errorpb.Error region_error = 5; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 5; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if ((detailCase_ == 5) && (regionErrorBuilder_ != null)) { return regionErrorBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 5) { return (org.tikv.kvproto.Errorpb.Error) detail_; } return org.tikv.kvproto.Errorpb.Error.getDefaultInstance(); } } /** * .errorpb.Error region_error = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { if (!(detailCase_ == 5)) { detail_ = org.tikv.kvproto.Errorpb.Error.getDefaultInstance(); } regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( (org.tikv.kvproto.Errorpb.Error) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 5; onChanged();; return regionErrorBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.Error) } // @@protoc_insertion_point(class_scope:backup.Error) private static final org.tikv.kvproto.BackupOuterClass.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.Error(); } public static org.tikv.kvproto.BackupOuterClass.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Error(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.BackupRequest) com.google.protobuf.MessageOrBuilder { /** * uint64 cluster_id = 1; */ long getClusterId(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); /** * uint64 start_version = 4; */ long getStartVersion(); /** * uint64 end_version = 5; */ long getEndVersion(); /** *
     * The I/O rate limit for backup request.
     * 
* * uint64 rate_limit = 7; */ long getRateLimit(); /** *
     * The concurrency for executing the backup request in every tikv node.
     * 
* * uint32 concurrency = 8; */ int getConcurrency(); /** * .backup.StorageBackend storage_backend = 9; */ boolean hasStorageBackend(); /** * .backup.StorageBackend storage_backend = 9; */ org.tikv.kvproto.BackupOuterClass.StorageBackend getStorageBackend(); /** * .backup.StorageBackend storage_backend = 9; */ org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder getStorageBackendOrBuilder(); /** *
     * If raw kv mode is enabled, `start_version` and `end_version` will be ignored, and `cf`
     * specifies which cf to backup.
     * 
* * bool is_raw_kv = 10; */ boolean getIsRawKv(); /** * string cf = 11; */ java.lang.String getCf(); /** * string cf = 11; */ com.google.protobuf.ByteString getCfBytes(); /** *
     * algorithm used for compress sst files
     * 
* * .backup.CompressionType compression_type = 12; */ int getCompressionTypeValue(); /** *
     * algorithm used for compress sst files
     * 
* * .backup.CompressionType compression_type = 12; */ org.tikv.kvproto.BackupOuterClass.CompressionType getCompressionType(); /** *
     * sst compression level, some algorithms support negative compression levels
     * 
* * int32 compression_level = 13; */ int getCompressionLevel(); } /** * Protobuf type {@code backup.BackupRequest} */ public static final class BackupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.BackupRequest) BackupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BackupRequest.newBuilder() to construct. private BackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BackupRequest() { clusterId_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; endVersion_ = 0L; rateLimit_ = 0L; concurrency_ = 0; isRawKv_ = false; cf_ = ""; compressionType_ = 0; compressionLevel_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { clusterId_ = input.readUInt64(); break; } case 18: { startKey_ = input.readBytes(); break; } case 26: { endKey_ = input.readBytes(); break; } case 32: { startVersion_ = input.readUInt64(); break; } case 40: { endVersion_ = input.readUInt64(); break; } case 56: { rateLimit_ = input.readUInt64(); break; } case 64: { concurrency_ = input.readUInt32(); break; } case 74: { org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder subBuilder = null; if (storageBackend_ != null) { subBuilder = storageBackend_.toBuilder(); } storageBackend_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.StorageBackend.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(storageBackend_); storageBackend_ = subBuilder.buildPartial(); } break; } case 80: { isRawKv_ = input.readBool(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 96: { int rawValue = input.readEnum(); compressionType_ = rawValue; break; } case 104: { compressionLevel_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.BackupRequest.class, org.tikv.kvproto.BackupOuterClass.BackupRequest.Builder.class); } public static final int CLUSTER_ID_FIELD_NUMBER = 1; private long clusterId_; /** * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int START_VERSION_FIELD_NUMBER = 4; private long startVersion_; /** * uint64 start_version = 4; */ public long getStartVersion() { return startVersion_; } public static final int END_VERSION_FIELD_NUMBER = 5; private long endVersion_; /** * uint64 end_version = 5; */ public long getEndVersion() { return endVersion_; } public static final int RATE_LIMIT_FIELD_NUMBER = 7; private long rateLimit_; /** *
     * The I/O rate limit for backup request.
     * 
* * uint64 rate_limit = 7; */ public long getRateLimit() { return rateLimit_; } public static final int CONCURRENCY_FIELD_NUMBER = 8; private int concurrency_; /** *
     * The concurrency for executing the backup request in every tikv node.
     * 
* * uint32 concurrency = 8; */ public int getConcurrency() { return concurrency_; } public static final int STORAGE_BACKEND_FIELD_NUMBER = 9; private org.tikv.kvproto.BackupOuterClass.StorageBackend storageBackend_; /** * .backup.StorageBackend storage_backend = 9; */ public boolean hasStorageBackend() { return storageBackend_ != null; } /** * .backup.StorageBackend storage_backend = 9; */ public org.tikv.kvproto.BackupOuterClass.StorageBackend getStorageBackend() { return storageBackend_ == null ? org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance() : storageBackend_; } /** * .backup.StorageBackend storage_backend = 9; */ public org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder getStorageBackendOrBuilder() { return getStorageBackend(); } public static final int IS_RAW_KV_FIELD_NUMBER = 10; private boolean isRawKv_; /** *
     * If raw kv mode is enabled, `start_version` and `end_version` will be ignored, and `cf`
     * specifies which cf to backup.
     * 
* * bool is_raw_kv = 10; */ public boolean getIsRawKv() { return isRawKv_; } public static final int CF_FIELD_NUMBER = 11; private volatile java.lang.Object cf_; /** * string cf = 11; */ public java.lang.String getCf() { java.lang.Object ref = cf_; 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(); cf_ = s; return s; } } /** * string cf = 11; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPRESSION_TYPE_FIELD_NUMBER = 12; private int compressionType_; /** *
     * algorithm used for compress sst files
     * 
* * .backup.CompressionType compression_type = 12; */ public int getCompressionTypeValue() { return compressionType_; } /** *
     * algorithm used for compress sst files
     * 
* * .backup.CompressionType compression_type = 12; */ public org.tikv.kvproto.BackupOuterClass.CompressionType getCompressionType() { org.tikv.kvproto.BackupOuterClass.CompressionType result = org.tikv.kvproto.BackupOuterClass.CompressionType.valueOf(compressionType_); return result == null ? org.tikv.kvproto.BackupOuterClass.CompressionType.UNRECOGNIZED : result; } public static final int COMPRESSION_LEVEL_FIELD_NUMBER = 13; private int compressionLevel_; /** *
     * sst compression level, some algorithms support negative compression levels
     * 
* * int32 compression_level = 13; */ public int getCompressionLevel() { return compressionLevel_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (clusterId_ != 0L) { output.writeUInt64(1, clusterId_); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } if (startVersion_ != 0L) { output.writeUInt64(4, startVersion_); } if (endVersion_ != 0L) { output.writeUInt64(5, endVersion_); } if (rateLimit_ != 0L) { output.writeUInt64(7, rateLimit_); } if (concurrency_ != 0) { output.writeUInt32(8, concurrency_); } if (storageBackend_ != null) { output.writeMessage(9, getStorageBackend()); } if (isRawKv_ != false) { output.writeBool(10, isRawKv_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, cf_); } if (compressionType_ != org.tikv.kvproto.BackupOuterClass.CompressionType.UNKNOWN.getNumber()) { output.writeEnum(12, compressionType_); } if (compressionLevel_ != 0) { output.writeInt32(13, compressionLevel_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clusterId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, clusterId_); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, endKey_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, startVersion_); } if (endVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, endVersion_); } if (rateLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, rateLimit_); } if (concurrency_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, concurrency_); } if (storageBackend_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getStorageBackend()); } if (isRawKv_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, isRawKv_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cf_); } if (compressionType_ != org.tikv.kvproto.BackupOuterClass.CompressionType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, compressionType_); } if (compressionLevel_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, compressionLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.BackupRequest)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.BackupRequest other = (org.tikv.kvproto.BackupOuterClass.BackupRequest) obj; boolean result = true; result = result && (getClusterId() == other.getClusterId()); result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (getStartVersion() == other.getStartVersion()); result = result && (getEndVersion() == other.getEndVersion()); result = result && (getRateLimit() == other.getRateLimit()); result = result && (getConcurrency() == other.getConcurrency()); result = result && (hasStorageBackend() == other.hasStorageBackend()); if (hasStorageBackend()) { result = result && getStorageBackend() .equals(other.getStorageBackend()); } result = result && (getIsRawKv() == other.getIsRawKv()); result = result && getCf() .equals(other.getCf()); result = result && compressionType_ == other.compressionType_; result = result && (getCompressionLevel() == other.getCompressionLevel()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClusterId()); hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + END_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndVersion()); hash = (37 * hash) + RATE_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRateLimit()); hash = (37 * hash) + CONCURRENCY_FIELD_NUMBER; hash = (53 * hash) + getConcurrency(); if (hasStorageBackend()) { hash = (37 * hash) + STORAGE_BACKEND_FIELD_NUMBER; hash = (53 * hash) + getStorageBackend().hashCode(); } hash = (37 * hash) + IS_RAW_KV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRawKv()); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + COMPRESSION_TYPE_FIELD_NUMBER; hash = (53 * hash) + compressionType_; hash = (37 * hash) + COMPRESSION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getCompressionLevel(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.BackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.BackupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.BackupRequest) org.tikv.kvproto.BackupOuterClass.BackupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.BackupRequest.class, org.tikv.kvproto.BackupOuterClass.BackupRequest.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.BackupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); clusterId_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; endVersion_ = 0L; rateLimit_ = 0L; concurrency_ = 0; if (storageBackendBuilder_ == null) { storageBackend_ = null; } else { storageBackend_ = null; storageBackendBuilder_ = null; } isRawKv_ = false; cf_ = ""; compressionType_ = 0; compressionLevel_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupRequest_descriptor; } public org.tikv.kvproto.BackupOuterClass.BackupRequest getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.BackupRequest.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.BackupRequest build() { org.tikv.kvproto.BackupOuterClass.BackupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.BackupRequest buildPartial() { org.tikv.kvproto.BackupOuterClass.BackupRequest result = new org.tikv.kvproto.BackupOuterClass.BackupRequest(this); result.clusterId_ = clusterId_; result.startKey_ = startKey_; result.endKey_ = endKey_; result.startVersion_ = startVersion_; result.endVersion_ = endVersion_; result.rateLimit_ = rateLimit_; result.concurrency_ = concurrency_; if (storageBackendBuilder_ == null) { result.storageBackend_ = storageBackend_; } else { result.storageBackend_ = storageBackendBuilder_.build(); } result.isRawKv_ = isRawKv_; result.cf_ = cf_; result.compressionType_ = compressionType_; result.compressionLevel_ = compressionLevel_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.BackupRequest) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.BackupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.BackupRequest other) { if (other == org.tikv.kvproto.BackupOuterClass.BackupRequest.getDefaultInstance()) return this; if (other.getClusterId() != 0L) { setClusterId(other.getClusterId()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getEndVersion() != 0L) { setEndVersion(other.getEndVersion()); } if (other.getRateLimit() != 0L) { setRateLimit(other.getRateLimit()); } if (other.getConcurrency() != 0) { setConcurrency(other.getConcurrency()); } if (other.hasStorageBackend()) { mergeStorageBackend(other.getStorageBackend()); } if (other.getIsRawKv() != false) { setIsRawKv(other.getIsRawKv()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.compressionType_ != 0) { setCompressionTypeValue(other.getCompressionTypeValue()); } if (other.getCompressionLevel() != 0) { setCompressionLevel(other.getCompressionLevel()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.BackupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.BackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long clusterId_ ; /** * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } /** * uint64 cluster_id = 1; */ public Builder setClusterId(long value) { clusterId_ = value; onChanged(); return this; } /** * uint64 cluster_id = 1; */ public Builder clearClusterId() { clusterId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private long startVersion_ ; /** * uint64 start_version = 4; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 4; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 4; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long endVersion_ ; /** * uint64 end_version = 5; */ public long getEndVersion() { return endVersion_; } /** * uint64 end_version = 5; */ public Builder setEndVersion(long value) { endVersion_ = value; onChanged(); return this; } /** * uint64 end_version = 5; */ public Builder clearEndVersion() { endVersion_ = 0L; onChanged(); return this; } private long rateLimit_ ; /** *
       * The I/O rate limit for backup request.
       * 
* * uint64 rate_limit = 7; */ public long getRateLimit() { return rateLimit_; } /** *
       * The I/O rate limit for backup request.
       * 
* * uint64 rate_limit = 7; */ public Builder setRateLimit(long value) { rateLimit_ = value; onChanged(); return this; } /** *
       * The I/O rate limit for backup request.
       * 
* * uint64 rate_limit = 7; */ public Builder clearRateLimit() { rateLimit_ = 0L; onChanged(); return this; } private int concurrency_ ; /** *
       * The concurrency for executing the backup request in every tikv node.
       * 
* * uint32 concurrency = 8; */ public int getConcurrency() { return concurrency_; } /** *
       * The concurrency for executing the backup request in every tikv node.
       * 
* * uint32 concurrency = 8; */ public Builder setConcurrency(int value) { concurrency_ = value; onChanged(); return this; } /** *
       * The concurrency for executing the backup request in every tikv node.
       * 
* * uint32 concurrency = 8; */ public Builder clearConcurrency() { concurrency_ = 0; onChanged(); return this; } private org.tikv.kvproto.BackupOuterClass.StorageBackend storageBackend_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.StorageBackend, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder, org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder> storageBackendBuilder_; /** * .backup.StorageBackend storage_backend = 9; */ public boolean hasStorageBackend() { return storageBackendBuilder_ != null || storageBackend_ != null; } /** * .backup.StorageBackend storage_backend = 9; */ public org.tikv.kvproto.BackupOuterClass.StorageBackend getStorageBackend() { if (storageBackendBuilder_ == null) { return storageBackend_ == null ? org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance() : storageBackend_; } else { return storageBackendBuilder_.getMessage(); } } /** * .backup.StorageBackend storage_backend = 9; */ public Builder setStorageBackend(org.tikv.kvproto.BackupOuterClass.StorageBackend value) { if (storageBackendBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storageBackend_ = value; onChanged(); } else { storageBackendBuilder_.setMessage(value); } return this; } /** * .backup.StorageBackend storage_backend = 9; */ public Builder setStorageBackend( org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder builderForValue) { if (storageBackendBuilder_ == null) { storageBackend_ = builderForValue.build(); onChanged(); } else { storageBackendBuilder_.setMessage(builderForValue.build()); } return this; } /** * .backup.StorageBackend storage_backend = 9; */ public Builder mergeStorageBackend(org.tikv.kvproto.BackupOuterClass.StorageBackend value) { if (storageBackendBuilder_ == null) { if (storageBackend_ != null) { storageBackend_ = org.tikv.kvproto.BackupOuterClass.StorageBackend.newBuilder(storageBackend_).mergeFrom(value).buildPartial(); } else { storageBackend_ = value; } onChanged(); } else { storageBackendBuilder_.mergeFrom(value); } return this; } /** * .backup.StorageBackend storage_backend = 9; */ public Builder clearStorageBackend() { if (storageBackendBuilder_ == null) { storageBackend_ = null; onChanged(); } else { storageBackend_ = null; storageBackendBuilder_ = null; } return this; } /** * .backup.StorageBackend storage_backend = 9; */ public org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder getStorageBackendBuilder() { onChanged(); return getStorageBackendFieldBuilder().getBuilder(); } /** * .backup.StorageBackend storage_backend = 9; */ public org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder getStorageBackendOrBuilder() { if (storageBackendBuilder_ != null) { return storageBackendBuilder_.getMessageOrBuilder(); } else { return storageBackend_ == null ? org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance() : storageBackend_; } } /** * .backup.StorageBackend storage_backend = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.StorageBackend, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder, org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder> getStorageBackendFieldBuilder() { if (storageBackendBuilder_ == null) { storageBackendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.StorageBackend, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder, org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder>( getStorageBackend(), getParentForChildren(), isClean()); storageBackend_ = null; } return storageBackendBuilder_; } private boolean isRawKv_ ; /** *
       * If raw kv mode is enabled, `start_version` and `end_version` will be ignored, and `cf`
       * specifies which cf to backup.
       * 
* * bool is_raw_kv = 10; */ public boolean getIsRawKv() { return isRawKv_; } /** *
       * If raw kv mode is enabled, `start_version` and `end_version` will be ignored, and `cf`
       * specifies which cf to backup.
       * 
* * bool is_raw_kv = 10; */ public Builder setIsRawKv(boolean value) { isRawKv_ = value; onChanged(); return this; } /** *
       * If raw kv mode is enabled, `start_version` and `end_version` will be ignored, and `cf`
       * specifies which cf to backup.
       * 
* * bool is_raw_kv = 10; */ public Builder clearIsRawKv() { isRawKv_ = false; onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 11; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 11; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 11; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 11; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 11; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private int compressionType_ = 0; /** *
       * algorithm used for compress sst files
       * 
* * .backup.CompressionType compression_type = 12; */ public int getCompressionTypeValue() { return compressionType_; } /** *
       * algorithm used for compress sst files
       * 
* * .backup.CompressionType compression_type = 12; */ public Builder setCompressionTypeValue(int value) { compressionType_ = value; onChanged(); return this; } /** *
       * algorithm used for compress sst files
       * 
* * .backup.CompressionType compression_type = 12; */ public org.tikv.kvproto.BackupOuterClass.CompressionType getCompressionType() { org.tikv.kvproto.BackupOuterClass.CompressionType result = org.tikv.kvproto.BackupOuterClass.CompressionType.valueOf(compressionType_); return result == null ? org.tikv.kvproto.BackupOuterClass.CompressionType.UNRECOGNIZED : result; } /** *
       * algorithm used for compress sst files
       * 
* * .backup.CompressionType compression_type = 12; */ public Builder setCompressionType(org.tikv.kvproto.BackupOuterClass.CompressionType value) { if (value == null) { throw new NullPointerException(); } compressionType_ = value.getNumber(); onChanged(); return this; } /** *
       * algorithm used for compress sst files
       * 
* * .backup.CompressionType compression_type = 12; */ public Builder clearCompressionType() { compressionType_ = 0; onChanged(); return this; } private int compressionLevel_ ; /** *
       * sst compression level, some algorithms support negative compression levels
       * 
* * int32 compression_level = 13; */ public int getCompressionLevel() { return compressionLevel_; } /** *
       * sst compression level, some algorithms support negative compression levels
       * 
* * int32 compression_level = 13; */ public Builder setCompressionLevel(int value) { compressionLevel_ = value; onChanged(); return this; } /** *
       * sst compression level, some algorithms support negative compression levels
       * 
* * int32 compression_level = 13; */ public Builder clearCompressionLevel() { compressionLevel_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.BackupRequest) } // @@protoc_insertion_point(class_scope:backup.BackupRequest) private static final org.tikv.kvproto.BackupOuterClass.BackupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.BackupRequest(); } public static org.tikv.kvproto.BackupOuterClass.BackupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BackupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BackupRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.BackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StorageBackendOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.StorageBackend) com.google.protobuf.MessageOrBuilder { /** * .backup.Noop noop = 1; */ boolean hasNoop(); /** * .backup.Noop noop = 1; */ org.tikv.kvproto.BackupOuterClass.Noop getNoop(); /** * .backup.Noop noop = 1; */ org.tikv.kvproto.BackupOuterClass.NoopOrBuilder getNoopOrBuilder(); /** * .backup.Local local = 2; */ boolean hasLocal(); /** * .backup.Local local = 2; */ org.tikv.kvproto.BackupOuterClass.Local getLocal(); /** * .backup.Local local = 2; */ org.tikv.kvproto.BackupOuterClass.LocalOrBuilder getLocalOrBuilder(); /** * .backup.S3 s3 = 3; */ boolean hasS3(); /** * .backup.S3 s3 = 3; */ org.tikv.kvproto.BackupOuterClass.S3 getS3(); /** * .backup.S3 s3 = 3; */ org.tikv.kvproto.BackupOuterClass.S3OrBuilder getS3OrBuilder(); /** * .backup.GCS gcs = 4; */ boolean hasGcs(); /** * .backup.GCS gcs = 4; */ org.tikv.kvproto.BackupOuterClass.GCS getGcs(); /** * .backup.GCS gcs = 4; */ org.tikv.kvproto.BackupOuterClass.GCSOrBuilder getGcsOrBuilder(); public org.tikv.kvproto.BackupOuterClass.StorageBackend.BackendCase getBackendCase(); } /** * Protobuf type {@code backup.StorageBackend} */ public static final class StorageBackend extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.StorageBackend) StorageBackendOrBuilder { private static final long serialVersionUID = 0L; // Use StorageBackend.newBuilder() to construct. private StorageBackend(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StorageBackend() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StorageBackend( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.BackupOuterClass.Noop.Builder subBuilder = null; if (backendCase_ == 1) { subBuilder = ((org.tikv.kvproto.BackupOuterClass.Noop) backend_).toBuilder(); } backend_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.Noop.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.BackupOuterClass.Noop) backend_); backend_ = subBuilder.buildPartial(); } backendCase_ = 1; break; } case 18: { org.tikv.kvproto.BackupOuterClass.Local.Builder subBuilder = null; if (backendCase_ == 2) { subBuilder = ((org.tikv.kvproto.BackupOuterClass.Local) backend_).toBuilder(); } backend_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.Local.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.BackupOuterClass.Local) backend_); backend_ = subBuilder.buildPartial(); } backendCase_ = 2; break; } case 26: { org.tikv.kvproto.BackupOuterClass.S3.Builder subBuilder = null; if (backendCase_ == 3) { subBuilder = ((org.tikv.kvproto.BackupOuterClass.S3) backend_).toBuilder(); } backend_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.S3.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.BackupOuterClass.S3) backend_); backend_ = subBuilder.buildPartial(); } backendCase_ = 3; break; } case 34: { org.tikv.kvproto.BackupOuterClass.GCS.Builder subBuilder = null; if (backendCase_ == 4) { subBuilder = ((org.tikv.kvproto.BackupOuterClass.GCS) backend_).toBuilder(); } backend_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.GCS.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.BackupOuterClass.GCS) backend_); backend_ = subBuilder.buildPartial(); } backendCase_ = 4; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_StorageBackend_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_StorageBackend_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.StorageBackend.class, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder.class); } private int backendCase_ = 0; private java.lang.Object backend_; public enum BackendCase implements com.google.protobuf.Internal.EnumLite { NOOP(1), LOCAL(2), S3(3), GCS(4), BACKEND_NOT_SET(0); private final int value; private BackendCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BackendCase valueOf(int value) { return forNumber(value); } public static BackendCase forNumber(int value) { switch (value) { case 1: return NOOP; case 2: return LOCAL; case 3: return S3; case 4: return GCS; case 0: return BACKEND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public BackendCase getBackendCase() { return BackendCase.forNumber( backendCase_); } public static final int NOOP_FIELD_NUMBER = 1; /** * .backup.Noop noop = 1; */ public boolean hasNoop() { return backendCase_ == 1; } /** * .backup.Noop noop = 1; */ public org.tikv.kvproto.BackupOuterClass.Noop getNoop() { if (backendCase_ == 1) { return (org.tikv.kvproto.BackupOuterClass.Noop) backend_; } return org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance(); } /** * .backup.Noop noop = 1; */ public org.tikv.kvproto.BackupOuterClass.NoopOrBuilder getNoopOrBuilder() { if (backendCase_ == 1) { return (org.tikv.kvproto.BackupOuterClass.Noop) backend_; } return org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance(); } public static final int LOCAL_FIELD_NUMBER = 2; /** * .backup.Local local = 2; */ public boolean hasLocal() { return backendCase_ == 2; } /** * .backup.Local local = 2; */ public org.tikv.kvproto.BackupOuterClass.Local getLocal() { if (backendCase_ == 2) { return (org.tikv.kvproto.BackupOuterClass.Local) backend_; } return org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance(); } /** * .backup.Local local = 2; */ public org.tikv.kvproto.BackupOuterClass.LocalOrBuilder getLocalOrBuilder() { if (backendCase_ == 2) { return (org.tikv.kvproto.BackupOuterClass.Local) backend_; } return org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance(); } public static final int S3_FIELD_NUMBER = 3; /** * .backup.S3 s3 = 3; */ public boolean hasS3() { return backendCase_ == 3; } /** * .backup.S3 s3 = 3; */ public org.tikv.kvproto.BackupOuterClass.S3 getS3() { if (backendCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.S3) backend_; } return org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance(); } /** * .backup.S3 s3 = 3; */ public org.tikv.kvproto.BackupOuterClass.S3OrBuilder getS3OrBuilder() { if (backendCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.S3) backend_; } return org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance(); } public static final int GCS_FIELD_NUMBER = 4; /** * .backup.GCS gcs = 4; */ public boolean hasGcs() { return backendCase_ == 4; } /** * .backup.GCS gcs = 4; */ public org.tikv.kvproto.BackupOuterClass.GCS getGcs() { if (backendCase_ == 4) { return (org.tikv.kvproto.BackupOuterClass.GCS) backend_; } return org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance(); } /** * .backup.GCS gcs = 4; */ public org.tikv.kvproto.BackupOuterClass.GCSOrBuilder getGcsOrBuilder() { if (backendCase_ == 4) { return (org.tikv.kvproto.BackupOuterClass.GCS) backend_; } return org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (backendCase_ == 1) { output.writeMessage(1, (org.tikv.kvproto.BackupOuterClass.Noop) backend_); } if (backendCase_ == 2) { output.writeMessage(2, (org.tikv.kvproto.BackupOuterClass.Local) backend_); } if (backendCase_ == 3) { output.writeMessage(3, (org.tikv.kvproto.BackupOuterClass.S3) backend_); } if (backendCase_ == 4) { output.writeMessage(4, (org.tikv.kvproto.BackupOuterClass.GCS) backend_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (backendCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.tikv.kvproto.BackupOuterClass.Noop) backend_); } if (backendCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.tikv.kvproto.BackupOuterClass.Local) backend_); } if (backendCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.tikv.kvproto.BackupOuterClass.S3) backend_); } if (backendCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.tikv.kvproto.BackupOuterClass.GCS) backend_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.StorageBackend)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.StorageBackend other = (org.tikv.kvproto.BackupOuterClass.StorageBackend) obj; boolean result = true; result = result && getBackendCase().equals( other.getBackendCase()); if (!result) return false; switch (backendCase_) { case 1: result = result && getNoop() .equals(other.getNoop()); break; case 2: result = result && getLocal() .equals(other.getLocal()); break; case 3: result = result && getS3() .equals(other.getS3()); break; case 4: result = result && getGcs() .equals(other.getGcs()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (backendCase_) { case 1: hash = (37 * hash) + NOOP_FIELD_NUMBER; hash = (53 * hash) + getNoop().hashCode(); break; case 2: hash = (37 * hash) + LOCAL_FIELD_NUMBER; hash = (53 * hash) + getLocal().hashCode(); break; case 3: hash = (37 * hash) + S3_FIELD_NUMBER; hash = (53 * hash) + getS3().hashCode(); break; case 4: hash = (37 * hash) + GCS_FIELD_NUMBER; hash = (53 * hash) + getGcs().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.StorageBackend prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.StorageBackend} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.StorageBackend) org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_StorageBackend_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_StorageBackend_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.StorageBackend.class, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.StorageBackend.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); backendCase_ = 0; backend_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_StorageBackend_descriptor; } public org.tikv.kvproto.BackupOuterClass.StorageBackend getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.StorageBackend build() { org.tikv.kvproto.BackupOuterClass.StorageBackend result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.StorageBackend buildPartial() { org.tikv.kvproto.BackupOuterClass.StorageBackend result = new org.tikv.kvproto.BackupOuterClass.StorageBackend(this); if (backendCase_ == 1) { if (noopBuilder_ == null) { result.backend_ = backend_; } else { result.backend_ = noopBuilder_.build(); } } if (backendCase_ == 2) { if (localBuilder_ == null) { result.backend_ = backend_; } else { result.backend_ = localBuilder_.build(); } } if (backendCase_ == 3) { if (s3Builder_ == null) { result.backend_ = backend_; } else { result.backend_ = s3Builder_.build(); } } if (backendCase_ == 4) { if (gcsBuilder_ == null) { result.backend_ = backend_; } else { result.backend_ = gcsBuilder_.build(); } } result.backendCase_ = backendCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.StorageBackend) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.StorageBackend)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.StorageBackend other) { if (other == org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance()) return this; switch (other.getBackendCase()) { case NOOP: { mergeNoop(other.getNoop()); break; } case LOCAL: { mergeLocal(other.getLocal()); break; } case S3: { mergeS3(other.getS3()); break; } case GCS: { mergeGcs(other.getGcs()); break; } case BACKEND_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.StorageBackend parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.StorageBackend) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int backendCase_ = 0; private java.lang.Object backend_; public BackendCase getBackendCase() { return BackendCase.forNumber( backendCase_); } public Builder clearBackend() { backendCase_ = 0; backend_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Noop, org.tikv.kvproto.BackupOuterClass.Noop.Builder, org.tikv.kvproto.BackupOuterClass.NoopOrBuilder> noopBuilder_; /** * .backup.Noop noop = 1; */ public boolean hasNoop() { return backendCase_ == 1; } /** * .backup.Noop noop = 1; */ public org.tikv.kvproto.BackupOuterClass.Noop getNoop() { if (noopBuilder_ == null) { if (backendCase_ == 1) { return (org.tikv.kvproto.BackupOuterClass.Noop) backend_; } return org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance(); } else { if (backendCase_ == 1) { return noopBuilder_.getMessage(); } return org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance(); } } /** * .backup.Noop noop = 1; */ public Builder setNoop(org.tikv.kvproto.BackupOuterClass.Noop value) { if (noopBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backend_ = value; onChanged(); } else { noopBuilder_.setMessage(value); } backendCase_ = 1; return this; } /** * .backup.Noop noop = 1; */ public Builder setNoop( org.tikv.kvproto.BackupOuterClass.Noop.Builder builderForValue) { if (noopBuilder_ == null) { backend_ = builderForValue.build(); onChanged(); } else { noopBuilder_.setMessage(builderForValue.build()); } backendCase_ = 1; return this; } /** * .backup.Noop noop = 1; */ public Builder mergeNoop(org.tikv.kvproto.BackupOuterClass.Noop value) { if (noopBuilder_ == null) { if (backendCase_ == 1 && backend_ != org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance()) { backend_ = org.tikv.kvproto.BackupOuterClass.Noop.newBuilder((org.tikv.kvproto.BackupOuterClass.Noop) backend_) .mergeFrom(value).buildPartial(); } else { backend_ = value; } onChanged(); } else { if (backendCase_ == 1) { noopBuilder_.mergeFrom(value); } noopBuilder_.setMessage(value); } backendCase_ = 1; return this; } /** * .backup.Noop noop = 1; */ public Builder clearNoop() { if (noopBuilder_ == null) { if (backendCase_ == 1) { backendCase_ = 0; backend_ = null; onChanged(); } } else { if (backendCase_ == 1) { backendCase_ = 0; backend_ = null; } noopBuilder_.clear(); } return this; } /** * .backup.Noop noop = 1; */ public org.tikv.kvproto.BackupOuterClass.Noop.Builder getNoopBuilder() { return getNoopFieldBuilder().getBuilder(); } /** * .backup.Noop noop = 1; */ public org.tikv.kvproto.BackupOuterClass.NoopOrBuilder getNoopOrBuilder() { if ((backendCase_ == 1) && (noopBuilder_ != null)) { return noopBuilder_.getMessageOrBuilder(); } else { if (backendCase_ == 1) { return (org.tikv.kvproto.BackupOuterClass.Noop) backend_; } return org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance(); } } /** * .backup.Noop noop = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Noop, org.tikv.kvproto.BackupOuterClass.Noop.Builder, org.tikv.kvproto.BackupOuterClass.NoopOrBuilder> getNoopFieldBuilder() { if (noopBuilder_ == null) { if (!(backendCase_ == 1)) { backend_ = org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance(); } noopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Noop, org.tikv.kvproto.BackupOuterClass.Noop.Builder, org.tikv.kvproto.BackupOuterClass.NoopOrBuilder>( (org.tikv.kvproto.BackupOuterClass.Noop) backend_, getParentForChildren(), isClean()); backend_ = null; } backendCase_ = 1; onChanged();; return noopBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Local, org.tikv.kvproto.BackupOuterClass.Local.Builder, org.tikv.kvproto.BackupOuterClass.LocalOrBuilder> localBuilder_; /** * .backup.Local local = 2; */ public boolean hasLocal() { return backendCase_ == 2; } /** * .backup.Local local = 2; */ public org.tikv.kvproto.BackupOuterClass.Local getLocal() { if (localBuilder_ == null) { if (backendCase_ == 2) { return (org.tikv.kvproto.BackupOuterClass.Local) backend_; } return org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance(); } else { if (backendCase_ == 2) { return localBuilder_.getMessage(); } return org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance(); } } /** * .backup.Local local = 2; */ public Builder setLocal(org.tikv.kvproto.BackupOuterClass.Local value) { if (localBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backend_ = value; onChanged(); } else { localBuilder_.setMessage(value); } backendCase_ = 2; return this; } /** * .backup.Local local = 2; */ public Builder setLocal( org.tikv.kvproto.BackupOuterClass.Local.Builder builderForValue) { if (localBuilder_ == null) { backend_ = builderForValue.build(); onChanged(); } else { localBuilder_.setMessage(builderForValue.build()); } backendCase_ = 2; return this; } /** * .backup.Local local = 2; */ public Builder mergeLocal(org.tikv.kvproto.BackupOuterClass.Local value) { if (localBuilder_ == null) { if (backendCase_ == 2 && backend_ != org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance()) { backend_ = org.tikv.kvproto.BackupOuterClass.Local.newBuilder((org.tikv.kvproto.BackupOuterClass.Local) backend_) .mergeFrom(value).buildPartial(); } else { backend_ = value; } onChanged(); } else { if (backendCase_ == 2) { localBuilder_.mergeFrom(value); } localBuilder_.setMessage(value); } backendCase_ = 2; return this; } /** * .backup.Local local = 2; */ public Builder clearLocal() { if (localBuilder_ == null) { if (backendCase_ == 2) { backendCase_ = 0; backend_ = null; onChanged(); } } else { if (backendCase_ == 2) { backendCase_ = 0; backend_ = null; } localBuilder_.clear(); } return this; } /** * .backup.Local local = 2; */ public org.tikv.kvproto.BackupOuterClass.Local.Builder getLocalBuilder() { return getLocalFieldBuilder().getBuilder(); } /** * .backup.Local local = 2; */ public org.tikv.kvproto.BackupOuterClass.LocalOrBuilder getLocalOrBuilder() { if ((backendCase_ == 2) && (localBuilder_ != null)) { return localBuilder_.getMessageOrBuilder(); } else { if (backendCase_ == 2) { return (org.tikv.kvproto.BackupOuterClass.Local) backend_; } return org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance(); } } /** * .backup.Local local = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Local, org.tikv.kvproto.BackupOuterClass.Local.Builder, org.tikv.kvproto.BackupOuterClass.LocalOrBuilder> getLocalFieldBuilder() { if (localBuilder_ == null) { if (!(backendCase_ == 2)) { backend_ = org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance(); } localBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Local, org.tikv.kvproto.BackupOuterClass.Local.Builder, org.tikv.kvproto.BackupOuterClass.LocalOrBuilder>( (org.tikv.kvproto.BackupOuterClass.Local) backend_, getParentForChildren(), isClean()); backend_ = null; } backendCase_ = 2; onChanged();; return localBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.S3, org.tikv.kvproto.BackupOuterClass.S3.Builder, org.tikv.kvproto.BackupOuterClass.S3OrBuilder> s3Builder_; /** * .backup.S3 s3 = 3; */ public boolean hasS3() { return backendCase_ == 3; } /** * .backup.S3 s3 = 3; */ public org.tikv.kvproto.BackupOuterClass.S3 getS3() { if (s3Builder_ == null) { if (backendCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.S3) backend_; } return org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance(); } else { if (backendCase_ == 3) { return s3Builder_.getMessage(); } return org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance(); } } /** * .backup.S3 s3 = 3; */ public Builder setS3(org.tikv.kvproto.BackupOuterClass.S3 value) { if (s3Builder_ == null) { if (value == null) { throw new NullPointerException(); } backend_ = value; onChanged(); } else { s3Builder_.setMessage(value); } backendCase_ = 3; return this; } /** * .backup.S3 s3 = 3; */ public Builder setS3( org.tikv.kvproto.BackupOuterClass.S3.Builder builderForValue) { if (s3Builder_ == null) { backend_ = builderForValue.build(); onChanged(); } else { s3Builder_.setMessage(builderForValue.build()); } backendCase_ = 3; return this; } /** * .backup.S3 s3 = 3; */ public Builder mergeS3(org.tikv.kvproto.BackupOuterClass.S3 value) { if (s3Builder_ == null) { if (backendCase_ == 3 && backend_ != org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance()) { backend_ = org.tikv.kvproto.BackupOuterClass.S3.newBuilder((org.tikv.kvproto.BackupOuterClass.S3) backend_) .mergeFrom(value).buildPartial(); } else { backend_ = value; } onChanged(); } else { if (backendCase_ == 3) { s3Builder_.mergeFrom(value); } s3Builder_.setMessage(value); } backendCase_ = 3; return this; } /** * .backup.S3 s3 = 3; */ public Builder clearS3() { if (s3Builder_ == null) { if (backendCase_ == 3) { backendCase_ = 0; backend_ = null; onChanged(); } } else { if (backendCase_ == 3) { backendCase_ = 0; backend_ = null; } s3Builder_.clear(); } return this; } /** * .backup.S3 s3 = 3; */ public org.tikv.kvproto.BackupOuterClass.S3.Builder getS3Builder() { return getS3FieldBuilder().getBuilder(); } /** * .backup.S3 s3 = 3; */ public org.tikv.kvproto.BackupOuterClass.S3OrBuilder getS3OrBuilder() { if ((backendCase_ == 3) && (s3Builder_ != null)) { return s3Builder_.getMessageOrBuilder(); } else { if (backendCase_ == 3) { return (org.tikv.kvproto.BackupOuterClass.S3) backend_; } return org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance(); } } /** * .backup.S3 s3 = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.S3, org.tikv.kvproto.BackupOuterClass.S3.Builder, org.tikv.kvproto.BackupOuterClass.S3OrBuilder> getS3FieldBuilder() { if (s3Builder_ == null) { if (!(backendCase_ == 3)) { backend_ = org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance(); } s3Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.S3, org.tikv.kvproto.BackupOuterClass.S3.Builder, org.tikv.kvproto.BackupOuterClass.S3OrBuilder>( (org.tikv.kvproto.BackupOuterClass.S3) backend_, getParentForChildren(), isClean()); backend_ = null; } backendCase_ = 3; onChanged();; return s3Builder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.GCS, org.tikv.kvproto.BackupOuterClass.GCS.Builder, org.tikv.kvproto.BackupOuterClass.GCSOrBuilder> gcsBuilder_; /** * .backup.GCS gcs = 4; */ public boolean hasGcs() { return backendCase_ == 4; } /** * .backup.GCS gcs = 4; */ public org.tikv.kvproto.BackupOuterClass.GCS getGcs() { if (gcsBuilder_ == null) { if (backendCase_ == 4) { return (org.tikv.kvproto.BackupOuterClass.GCS) backend_; } return org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance(); } else { if (backendCase_ == 4) { return gcsBuilder_.getMessage(); } return org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance(); } } /** * .backup.GCS gcs = 4; */ public Builder setGcs(org.tikv.kvproto.BackupOuterClass.GCS value) { if (gcsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backend_ = value; onChanged(); } else { gcsBuilder_.setMessage(value); } backendCase_ = 4; return this; } /** * .backup.GCS gcs = 4; */ public Builder setGcs( org.tikv.kvproto.BackupOuterClass.GCS.Builder builderForValue) { if (gcsBuilder_ == null) { backend_ = builderForValue.build(); onChanged(); } else { gcsBuilder_.setMessage(builderForValue.build()); } backendCase_ = 4; return this; } /** * .backup.GCS gcs = 4; */ public Builder mergeGcs(org.tikv.kvproto.BackupOuterClass.GCS value) { if (gcsBuilder_ == null) { if (backendCase_ == 4 && backend_ != org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance()) { backend_ = org.tikv.kvproto.BackupOuterClass.GCS.newBuilder((org.tikv.kvproto.BackupOuterClass.GCS) backend_) .mergeFrom(value).buildPartial(); } else { backend_ = value; } onChanged(); } else { if (backendCase_ == 4) { gcsBuilder_.mergeFrom(value); } gcsBuilder_.setMessage(value); } backendCase_ = 4; return this; } /** * .backup.GCS gcs = 4; */ public Builder clearGcs() { if (gcsBuilder_ == null) { if (backendCase_ == 4) { backendCase_ = 0; backend_ = null; onChanged(); } } else { if (backendCase_ == 4) { backendCase_ = 0; backend_ = null; } gcsBuilder_.clear(); } return this; } /** * .backup.GCS gcs = 4; */ public org.tikv.kvproto.BackupOuterClass.GCS.Builder getGcsBuilder() { return getGcsFieldBuilder().getBuilder(); } /** * .backup.GCS gcs = 4; */ public org.tikv.kvproto.BackupOuterClass.GCSOrBuilder getGcsOrBuilder() { if ((backendCase_ == 4) && (gcsBuilder_ != null)) { return gcsBuilder_.getMessageOrBuilder(); } else { if (backendCase_ == 4) { return (org.tikv.kvproto.BackupOuterClass.GCS) backend_; } return org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance(); } } /** * .backup.GCS gcs = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.GCS, org.tikv.kvproto.BackupOuterClass.GCS.Builder, org.tikv.kvproto.BackupOuterClass.GCSOrBuilder> getGcsFieldBuilder() { if (gcsBuilder_ == null) { if (!(backendCase_ == 4)) { backend_ = org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance(); } gcsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.GCS, org.tikv.kvproto.BackupOuterClass.GCS.Builder, org.tikv.kvproto.BackupOuterClass.GCSOrBuilder>( (org.tikv.kvproto.BackupOuterClass.GCS) backend_, getParentForChildren(), isClean()); backend_ = null; } backendCase_ = 4; onChanged();; return gcsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.StorageBackend) } // @@protoc_insertion_point(class_scope:backup.StorageBackend) private static final org.tikv.kvproto.BackupOuterClass.StorageBackend DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.StorageBackend(); } public static org.tikv.kvproto.BackupOuterClass.StorageBackend getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StorageBackend parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StorageBackend(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.StorageBackend getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NoopOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.Noop) com.google.protobuf.MessageOrBuilder { } /** *
   * Noop storage backend saves files into void.
   * 
* * Protobuf type {@code backup.Noop} */ public static final class Noop extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.Noop) NoopOrBuilder { private static final long serialVersionUID = 0L; // Use Noop.newBuilder() to construct. private Noop(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Noop() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Noop( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Noop_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Noop_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Noop.class, org.tikv.kvproto.BackupOuterClass.Noop.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.Noop)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.Noop other = (org.tikv.kvproto.BackupOuterClass.Noop) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Noop parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Noop parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Noop parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.Noop prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * Noop storage backend saves files into void.
     * 
* * Protobuf type {@code backup.Noop} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.Noop) org.tikv.kvproto.BackupOuterClass.NoopOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Noop_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Noop_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Noop.class, org.tikv.kvproto.BackupOuterClass.Noop.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.Noop.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Noop_descriptor; } public org.tikv.kvproto.BackupOuterClass.Noop getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.Noop build() { org.tikv.kvproto.BackupOuterClass.Noop result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.Noop buildPartial() { org.tikv.kvproto.BackupOuterClass.Noop result = new org.tikv.kvproto.BackupOuterClass.Noop(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.Noop) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.Noop)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.Noop other) { if (other == org.tikv.kvproto.BackupOuterClass.Noop.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.Noop parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.Noop) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.Noop) } // @@protoc_insertion_point(class_scope:backup.Noop) private static final org.tikv.kvproto.BackupOuterClass.Noop DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.Noop(); } public static org.tikv.kvproto.BackupOuterClass.Noop getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Noop parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Noop(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.Noop getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.Local) com.google.protobuf.MessageOrBuilder { /** * string path = 1; */ java.lang.String getPath(); /** * string path = 1; */ com.google.protobuf.ByteString getPathBytes(); } /** *
   * Local storage backend saves files into local disk
   * 
* * Protobuf type {@code backup.Local} */ public static final class Local extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.Local) LocalOrBuilder { private static final long serialVersionUID = 0L; // Use Local.newBuilder() to construct. private Local(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Local() { path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Local( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); path_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Local_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Local_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Local.class, org.tikv.kvproto.BackupOuterClass.Local.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** * string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.Local)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.Local other = (org.tikv.kvproto.BackupOuterClass.Local) obj; boolean result = true; result = result && getPath() .equals(other.getPath()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Local parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Local parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.Local parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.Local prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * Local storage backend saves files into local disk
     * 
* * Protobuf type {@code backup.Local} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.Local) org.tikv.kvproto.BackupOuterClass.LocalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Local_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Local_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.Local.class, org.tikv.kvproto.BackupOuterClass.Local.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.Local.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); path_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_Local_descriptor; } public org.tikv.kvproto.BackupOuterClass.Local getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.Local build() { org.tikv.kvproto.BackupOuterClass.Local result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.Local buildPartial() { org.tikv.kvproto.BackupOuterClass.Local result = new org.tikv.kvproto.BackupOuterClass.Local(this); result.path_ = path_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.Local) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.Local)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.Local other) { if (other == org.tikv.kvproto.BackupOuterClass.Local.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.Local parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.Local) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object path_ = ""; /** * string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** * string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string path = 1; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; onChanged(); return this; } /** * string path = 1; */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * string path = 1; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.Local) } // @@protoc_insertion_point(class_scope:backup.Local) private static final org.tikv.kvproto.BackupOuterClass.Local DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.Local(); } public static org.tikv.kvproto.BackupOuterClass.Local getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Local parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Local(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.Local getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface S3OrBuilder extends // @@protoc_insertion_point(interface_extends:backup.S3) com.google.protobuf.MessageOrBuilder { /** * string endpoint = 1; */ java.lang.String getEndpoint(); /** * string endpoint = 1; */ com.google.protobuf.ByteString getEndpointBytes(); /** * string region = 2; */ java.lang.String getRegion(); /** * string region = 2; */ com.google.protobuf.ByteString getRegionBytes(); /** * string bucket = 3; */ java.lang.String getBucket(); /** * string bucket = 3; */ com.google.protobuf.ByteString getBucketBytes(); /** * string prefix = 4; */ java.lang.String getPrefix(); /** * string prefix = 4; */ com.google.protobuf.ByteString getPrefixBytes(); /** * string storage_class = 5; */ java.lang.String getStorageClass(); /** * string storage_class = 5; */ com.google.protobuf.ByteString getStorageClassBytes(); /** *
     * server side encryption
     * 
* * string sse = 6; */ java.lang.String getSse(); /** *
     * server side encryption
     * 
* * string sse = 6; */ com.google.protobuf.ByteString getSseBytes(); /** * string acl = 7; */ java.lang.String getAcl(); /** * string acl = 7; */ com.google.protobuf.ByteString getAclBytes(); /** * string access_key = 8; */ java.lang.String getAccessKey(); /** * string access_key = 8; */ com.google.protobuf.ByteString getAccessKeyBytes(); /** * string secret_access_key = 9; */ java.lang.String getSecretAccessKey(); /** * string secret_access_key = 9; */ com.google.protobuf.ByteString getSecretAccessKeyBytes(); /** * bool force_path_style = 10; */ boolean getForcePathStyle(); /** * string sse_kms_key_id = 11; */ java.lang.String getSseKmsKeyId(); /** * string sse_kms_key_id = 11; */ com.google.protobuf.ByteString getSseKmsKeyIdBytes(); } /** *
   * S3 storage backend saves files into S3 compatible storages
   * For non-aws providers, endpoint must be provided
   * 
* * Protobuf type {@code backup.S3} */ public static final class S3 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.S3) S3OrBuilder { private static final long serialVersionUID = 0L; // Use S3.newBuilder() to construct. private S3(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private S3() { endpoint_ = ""; region_ = ""; bucket_ = ""; prefix_ = ""; storageClass_ = ""; sse_ = ""; acl_ = ""; accessKey_ = ""; secretAccessKey_ = ""; forcePathStyle_ = false; sseKmsKeyId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private S3( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); endpoint_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); region_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); bucket_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); prefix_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); storageClass_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); sse_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); acl_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); accessKey_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); secretAccessKey_ = s; break; } case 80: { forcePathStyle_ = input.readBool(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); sseKmsKeyId_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_S3_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_S3_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.S3.class, org.tikv.kvproto.BackupOuterClass.S3.Builder.class); } public static final int ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object endpoint_; /** * string endpoint = 1; */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; } } /** * string endpoint = 1; */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** * string region = 2; */ public java.lang.String getRegion() { java.lang.Object ref = region_; 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(); region_ = s; return s; } } /** * string region = 2; */ public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUCKET_FIELD_NUMBER = 3; private volatile java.lang.Object bucket_; /** * string bucket = 3; */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; } } /** * string bucket = 3; */ public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREFIX_FIELD_NUMBER = 4; private volatile java.lang.Object prefix_; /** * string prefix = 4; */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; } } /** * string prefix = 4; */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGE_CLASS_FIELD_NUMBER = 5; private volatile java.lang.Object storageClass_; /** * string storage_class = 5; */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; } } /** * string storage_class = 5; */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SSE_FIELD_NUMBER = 6; private volatile java.lang.Object sse_; /** *
     * server side encryption
     * 
* * string sse = 6; */ public java.lang.String getSse() { java.lang.Object ref = sse_; 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(); sse_ = s; return s; } } /** *
     * server side encryption
     * 
* * string sse = 6; */ public com.google.protobuf.ByteString getSseBytes() { java.lang.Object ref = sse_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sse_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACL_FIELD_NUMBER = 7; private volatile java.lang.Object acl_; /** * string acl = 7; */ public java.lang.String getAcl() { java.lang.Object ref = acl_; 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(); acl_ = s; return s; } } /** * string acl = 7; */ public com.google.protobuf.ByteString getAclBytes() { java.lang.Object ref = acl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); acl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCESS_KEY_FIELD_NUMBER = 8; private volatile java.lang.Object accessKey_; /** * string access_key = 8; */ public java.lang.String getAccessKey() { java.lang.Object ref = accessKey_; 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(); accessKey_ = s; return s; } } /** * string access_key = 8; */ public com.google.protobuf.ByteString getAccessKeyBytes() { java.lang.Object ref = accessKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accessKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRET_ACCESS_KEY_FIELD_NUMBER = 9; private volatile java.lang.Object secretAccessKey_; /** * string secret_access_key = 9; */ public java.lang.String getSecretAccessKey() { java.lang.Object ref = secretAccessKey_; 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(); secretAccessKey_ = s; return s; } } /** * string secret_access_key = 9; */ public com.google.protobuf.ByteString getSecretAccessKeyBytes() { java.lang.Object ref = secretAccessKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretAccessKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FORCE_PATH_STYLE_FIELD_NUMBER = 10; private boolean forcePathStyle_; /** * bool force_path_style = 10; */ public boolean getForcePathStyle() { return forcePathStyle_; } public static final int SSE_KMS_KEY_ID_FIELD_NUMBER = 11; private volatile java.lang.Object sseKmsKeyId_; /** * string sse_kms_key_id = 11; */ public java.lang.String getSseKmsKeyId() { java.lang.Object ref = sseKmsKeyId_; 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(); sseKmsKeyId_ = s; return s; } } /** * string sse_kms_key_id = 11; */ public com.google.protobuf.ByteString getSseKmsKeyIdBytes() { java.lang.Object ref = sseKmsKeyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sseKmsKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } if (!getRegionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); } if (!getBucketBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bucket_); } if (!getPrefixBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, prefix_); } if (!getStorageClassBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, storageClass_); } if (!getSseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sse_); } if (!getAclBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, acl_); } if (!getAccessKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, accessKey_); } if (!getSecretAccessKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, secretAccessKey_); } if (forcePathStyle_ != false) { output.writeBool(10, forcePathStyle_); } if (!getSseKmsKeyIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, sseKmsKeyId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getEndpointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (!getRegionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); } if (!getBucketBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bucket_); } if (!getPrefixBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, prefix_); } if (!getStorageClassBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageClass_); } if (!getSseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sse_); } if (!getAclBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, acl_); } if (!getAccessKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, accessKey_); } if (!getSecretAccessKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, secretAccessKey_); } if (forcePathStyle_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, forcePathStyle_); } if (!getSseKmsKeyIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, sseKmsKeyId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.S3)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.S3 other = (org.tikv.kvproto.BackupOuterClass.S3) obj; boolean result = true; result = result && getEndpoint() .equals(other.getEndpoint()); result = result && getRegion() .equals(other.getRegion()); result = result && getBucket() .equals(other.getBucket()); result = result && getPrefix() .equals(other.getPrefix()); result = result && getStorageClass() .equals(other.getStorageClass()); result = result && getSse() .equals(other.getSse()); result = result && getAcl() .equals(other.getAcl()); result = result && getAccessKey() .equals(other.getAccessKey()); result = result && getSecretAccessKey() .equals(other.getSecretAccessKey()); result = result && (getForcePathStyle() == other.getForcePathStyle()); result = result && getSseKmsKeyId() .equals(other.getSseKmsKeyId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); hash = (37 * hash) + PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPrefix().hashCode(); hash = (37 * hash) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); hash = (37 * hash) + SSE_FIELD_NUMBER; hash = (53 * hash) + getSse().hashCode(); hash = (37 * hash) + ACL_FIELD_NUMBER; hash = (53 * hash) + getAcl().hashCode(); hash = (37 * hash) + ACCESS_KEY_FIELD_NUMBER; hash = (53 * hash) + getAccessKey().hashCode(); hash = (37 * hash) + SECRET_ACCESS_KEY_FIELD_NUMBER; hash = (53 * hash) + getSecretAccessKey().hashCode(); hash = (37 * hash) + FORCE_PATH_STYLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForcePathStyle()); hash = (37 * hash) + SSE_KMS_KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getSseKmsKeyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.S3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.S3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.S3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.S3 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * S3 storage backend saves files into S3 compatible storages
     * For non-aws providers, endpoint must be provided
     * 
* * Protobuf type {@code backup.S3} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.S3) org.tikv.kvproto.BackupOuterClass.S3OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_S3_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_S3_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.S3.class, org.tikv.kvproto.BackupOuterClass.S3.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.S3.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); endpoint_ = ""; region_ = ""; bucket_ = ""; prefix_ = ""; storageClass_ = ""; sse_ = ""; acl_ = ""; accessKey_ = ""; secretAccessKey_ = ""; forcePathStyle_ = false; sseKmsKeyId_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_S3_descriptor; } public org.tikv.kvproto.BackupOuterClass.S3 getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.S3 build() { org.tikv.kvproto.BackupOuterClass.S3 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.S3 buildPartial() { org.tikv.kvproto.BackupOuterClass.S3 result = new org.tikv.kvproto.BackupOuterClass.S3(this); result.endpoint_ = endpoint_; result.region_ = region_; result.bucket_ = bucket_; result.prefix_ = prefix_; result.storageClass_ = storageClass_; result.sse_ = sse_; result.acl_ = acl_; result.accessKey_ = accessKey_; result.secretAccessKey_ = secretAccessKey_; result.forcePathStyle_ = forcePathStyle_; result.sseKmsKeyId_ = sseKmsKeyId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.S3) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.S3)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.S3 other) { if (other == org.tikv.kvproto.BackupOuterClass.S3.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; onChanged(); } if (!other.getRegion().isEmpty()) { region_ = other.region_; onChanged(); } if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); } if (!other.getPrefix().isEmpty()) { prefix_ = other.prefix_; onChanged(); } if (!other.getStorageClass().isEmpty()) { storageClass_ = other.storageClass_; onChanged(); } if (!other.getSse().isEmpty()) { sse_ = other.sse_; onChanged(); } if (!other.getAcl().isEmpty()) { acl_ = other.acl_; onChanged(); } if (!other.getAccessKey().isEmpty()) { accessKey_ = other.accessKey_; onChanged(); } if (!other.getSecretAccessKey().isEmpty()) { secretAccessKey_ = other.secretAccessKey_; onChanged(); } if (other.getForcePathStyle() != false) { setForcePathStyle(other.getForcePathStyle()); } if (!other.getSseKmsKeyId().isEmpty()) { sseKmsKeyId_ = other.sseKmsKeyId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.S3 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.S3) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object endpoint_ = ""; /** * string endpoint = 1; */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpoint_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endpoint = 1; */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endpoint = 1; */ public Builder setEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endpoint_ = value; onChanged(); return this; } /** * string endpoint = 1; */ public Builder clearEndpoint() { endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** * string endpoint = 1; */ public Builder setEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpoint_ = value; onChanged(); return this; } private java.lang.Object region_ = ""; /** * string region = 2; */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } else { return (java.lang.String) ref; } } /** * string region = 2; */ public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string region = 2; */ public Builder setRegion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); return this; } /** * string region = 2; */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** * string region = 2; */ public Builder setRegionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); region_ = value; onChanged(); return this; } private java.lang.Object bucket_ = ""; /** * string bucket = 3; */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } else { return (java.lang.String) ref; } } /** * string bucket = 3; */ public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string bucket = 3; */ public Builder setBucket( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bucket_ = value; onChanged(); return this; } /** * string bucket = 3; */ public Builder clearBucket() { bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** * string bucket = 3; */ public Builder setBucketBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; onChanged(); return this; } private java.lang.Object prefix_ = ""; /** * string prefix = 4; */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } else { return (java.lang.String) ref; } } /** * string prefix = 4; */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string prefix = 4; */ public Builder setPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } prefix_ = value; onChanged(); return this; } /** * string prefix = 4; */ public Builder clearPrefix() { prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** * string prefix = 4; */ public Builder setPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; onChanged(); return this; } private java.lang.Object storageClass_ = ""; /** * string storage_class = 5; */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** * string storage_class = 5; */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string storage_class = 5; */ public Builder setStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value; onChanged(); return this; } /** * string storage_class = 5; */ public Builder clearStorageClass() { storageClass_ = getDefaultInstance().getStorageClass(); onChanged(); return this; } /** * string storage_class = 5; */ public Builder setStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; onChanged(); return this; } private java.lang.Object sse_ = ""; /** *
       * server side encryption
       * 
* * string sse = 6; */ public java.lang.String getSse() { java.lang.Object ref = sse_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sse_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * server side encryption
       * 
* * string sse = 6; */ public com.google.protobuf.ByteString getSseBytes() { java.lang.Object ref = sse_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sse_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * server side encryption
       * 
* * string sse = 6; */ public Builder setSse( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sse_ = value; onChanged(); return this; } /** *
       * server side encryption
       * 
* * string sse = 6; */ public Builder clearSse() { sse_ = getDefaultInstance().getSse(); onChanged(); return this; } /** *
       * server side encryption
       * 
* * string sse = 6; */ public Builder setSseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sse_ = value; onChanged(); return this; } private java.lang.Object acl_ = ""; /** * string acl = 7; */ public java.lang.String getAcl() { java.lang.Object ref = acl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acl_ = s; return s; } else { return (java.lang.String) ref; } } /** * string acl = 7; */ public com.google.protobuf.ByteString getAclBytes() { java.lang.Object ref = acl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); acl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string acl = 7; */ public Builder setAcl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } acl_ = value; onChanged(); return this; } /** * string acl = 7; */ public Builder clearAcl() { acl_ = getDefaultInstance().getAcl(); onChanged(); return this; } /** * string acl = 7; */ public Builder setAclBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); acl_ = value; onChanged(); return this; } private java.lang.Object accessKey_ = ""; /** * string access_key = 8; */ public java.lang.String getAccessKey() { java.lang.Object ref = accessKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * string access_key = 8; */ public com.google.protobuf.ByteString getAccessKeyBytes() { java.lang.Object ref = accessKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accessKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string access_key = 8; */ public Builder setAccessKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accessKey_ = value; onChanged(); return this; } /** * string access_key = 8; */ public Builder clearAccessKey() { accessKey_ = getDefaultInstance().getAccessKey(); onChanged(); return this; } /** * string access_key = 8; */ public Builder setAccessKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessKey_ = value; onChanged(); return this; } private java.lang.Object secretAccessKey_ = ""; /** * string secret_access_key = 9; */ public java.lang.String getSecretAccessKey() { java.lang.Object ref = secretAccessKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretAccessKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * string secret_access_key = 9; */ public com.google.protobuf.ByteString getSecretAccessKeyBytes() { java.lang.Object ref = secretAccessKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretAccessKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string secret_access_key = 9; */ public Builder setSecretAccessKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } secretAccessKey_ = value; onChanged(); return this; } /** * string secret_access_key = 9; */ public Builder clearSecretAccessKey() { secretAccessKey_ = getDefaultInstance().getSecretAccessKey(); onChanged(); return this; } /** * string secret_access_key = 9; */ public Builder setSecretAccessKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); secretAccessKey_ = value; onChanged(); return this; } private boolean forcePathStyle_ ; /** * bool force_path_style = 10; */ public boolean getForcePathStyle() { return forcePathStyle_; } /** * bool force_path_style = 10; */ public Builder setForcePathStyle(boolean value) { forcePathStyle_ = value; onChanged(); return this; } /** * bool force_path_style = 10; */ public Builder clearForcePathStyle() { forcePathStyle_ = false; onChanged(); return this; } private java.lang.Object sseKmsKeyId_ = ""; /** * string sse_kms_key_id = 11; */ public java.lang.String getSseKmsKeyId() { java.lang.Object ref = sseKmsKeyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sseKmsKeyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string sse_kms_key_id = 11; */ public com.google.protobuf.ByteString getSseKmsKeyIdBytes() { java.lang.Object ref = sseKmsKeyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sseKmsKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string sse_kms_key_id = 11; */ public Builder setSseKmsKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sseKmsKeyId_ = value; onChanged(); return this; } /** * string sse_kms_key_id = 11; */ public Builder clearSseKmsKeyId() { sseKmsKeyId_ = getDefaultInstance().getSseKmsKeyId(); onChanged(); return this; } /** * string sse_kms_key_id = 11; */ public Builder setSseKmsKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sseKmsKeyId_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.S3) } // @@protoc_insertion_point(class_scope:backup.S3) private static final org.tikv.kvproto.BackupOuterClass.S3 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.S3(); } public static org.tikv.kvproto.BackupOuterClass.S3 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public S3 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new S3(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.S3 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GCSOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.GCS) com.google.protobuf.MessageOrBuilder { /** * string endpoint = 1; */ java.lang.String getEndpoint(); /** * string endpoint = 1; */ com.google.protobuf.ByteString getEndpointBytes(); /** * string bucket = 2; */ java.lang.String getBucket(); /** * string bucket = 2; */ com.google.protobuf.ByteString getBucketBytes(); /** * string prefix = 3; */ java.lang.String getPrefix(); /** * string prefix = 3; */ com.google.protobuf.ByteString getPrefixBytes(); /** * string storage_class = 4; */ java.lang.String getStorageClass(); /** * string storage_class = 4; */ com.google.protobuf.ByteString getStorageClassBytes(); /** *
     * If not empty, applies a predefined set of access controls.
     * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
     * for valid values.
     * 
* * string predefined_acl = 5; */ java.lang.String getPredefinedAcl(); /** *
     * If not empty, applies a predefined set of access controls.
     * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
     * for valid values.
     * 
* * string predefined_acl = 5; */ com.google.protobuf.ByteString getPredefinedAclBytes(); /** *
     * Service Account Credentials JSON blob
     * You can get one from https://console.cloud.google.com/apis/credentials, and
     * copy the content, set it as string here.
     * 
* * string credentials_blob = 6; */ java.lang.String getCredentialsBlob(); /** *
     * Service Account Credentials JSON blob
     * You can get one from https://console.cloud.google.com/apis/credentials, and
     * copy the content, set it as string here.
     * 
* * string credentials_blob = 6; */ com.google.protobuf.ByteString getCredentialsBlobBytes(); } /** *
   * GCS storage backend saves files into google cloud storage.
   * 
* * Protobuf type {@code backup.GCS} */ public static final class GCS extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.GCS) GCSOrBuilder { private static final long serialVersionUID = 0L; // Use GCS.newBuilder() to construct. private GCS(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GCS() { endpoint_ = ""; bucket_ = ""; prefix_ = ""; storageClass_ = ""; predefinedAcl_ = ""; credentialsBlob_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GCS( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); endpoint_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); bucket_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); prefix_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); storageClass_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); predefinedAcl_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); credentialsBlob_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_GCS_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_GCS_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.GCS.class, org.tikv.kvproto.BackupOuterClass.GCS.Builder.class); } public static final int ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object endpoint_; /** * string endpoint = 1; */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; } } /** * string endpoint = 1; */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUCKET_FIELD_NUMBER = 2; private volatile java.lang.Object bucket_; /** * string bucket = 2; */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; } } /** * string bucket = 2; */ public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREFIX_FIELD_NUMBER = 3; private volatile java.lang.Object prefix_; /** * string prefix = 3; */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; } } /** * string prefix = 3; */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGE_CLASS_FIELD_NUMBER = 4; private volatile java.lang.Object storageClass_; /** * string storage_class = 4; */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; } } /** * string storage_class = 4; */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREDEFINED_ACL_FIELD_NUMBER = 5; private volatile java.lang.Object predefinedAcl_; /** *
     * If not empty, applies a predefined set of access controls.
     * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
     * for valid values.
     * 
* * string predefined_acl = 5; */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; 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(); predefinedAcl_ = s; return s; } } /** *
     * If not empty, applies a predefined set of access controls.
     * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
     * for valid values.
     * 
* * string predefined_acl = 5; */ public com.google.protobuf.ByteString getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); predefinedAcl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREDENTIALS_BLOB_FIELD_NUMBER = 6; private volatile java.lang.Object credentialsBlob_; /** *
     * Service Account Credentials JSON blob
     * You can get one from https://console.cloud.google.com/apis/credentials, and
     * copy the content, set it as string here.
     * 
* * string credentials_blob = 6; */ public java.lang.String getCredentialsBlob() { java.lang.Object ref = credentialsBlob_; 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(); credentialsBlob_ = s; return s; } } /** *
     * Service Account Credentials JSON blob
     * You can get one from https://console.cloud.google.com/apis/credentials, and
     * copy the content, set it as string here.
     * 
* * string credentials_blob = 6; */ public com.google.protobuf.ByteString getCredentialsBlobBytes() { java.lang.Object ref = credentialsBlob_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); credentialsBlob_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } if (!getBucketBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucket_); } if (!getPrefixBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, prefix_); } if (!getStorageClassBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storageClass_); } if (!getPredefinedAclBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, predefinedAcl_); } if (!getCredentialsBlobBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, credentialsBlob_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getEndpointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (!getBucketBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucket_); } if (!getPrefixBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, prefix_); } if (!getStorageClassBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageClass_); } if (!getPredefinedAclBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, predefinedAcl_); } if (!getCredentialsBlobBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, credentialsBlob_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.GCS)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.GCS other = (org.tikv.kvproto.BackupOuterClass.GCS) obj; boolean result = true; result = result && getEndpoint() .equals(other.getEndpoint()); result = result && getBucket() .equals(other.getBucket()); result = result && getPrefix() .equals(other.getPrefix()); result = result && getStorageClass() .equals(other.getStorageClass()); result = result && getPredefinedAcl() .equals(other.getPredefinedAcl()); result = result && getCredentialsBlob() .equals(other.getCredentialsBlob()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); hash = (37 * hash) + PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPrefix().hashCode(); hash = (37 * hash) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); hash = (37 * hash) + PREDEFINED_ACL_FIELD_NUMBER; hash = (53 * hash) + getPredefinedAcl().hashCode(); hash = (37 * hash) + CREDENTIALS_BLOB_FIELD_NUMBER; hash = (53 * hash) + getCredentialsBlob().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.GCS parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.GCS parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.GCS parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.GCS prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * GCS storage backend saves files into google cloud storage.
     * 
* * Protobuf type {@code backup.GCS} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.GCS) org.tikv.kvproto.BackupOuterClass.GCSOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_GCS_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_GCS_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.GCS.class, org.tikv.kvproto.BackupOuterClass.GCS.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.GCS.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); endpoint_ = ""; bucket_ = ""; prefix_ = ""; storageClass_ = ""; predefinedAcl_ = ""; credentialsBlob_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_GCS_descriptor; } public org.tikv.kvproto.BackupOuterClass.GCS getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.GCS build() { org.tikv.kvproto.BackupOuterClass.GCS result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.GCS buildPartial() { org.tikv.kvproto.BackupOuterClass.GCS result = new org.tikv.kvproto.BackupOuterClass.GCS(this); result.endpoint_ = endpoint_; result.bucket_ = bucket_; result.prefix_ = prefix_; result.storageClass_ = storageClass_; result.predefinedAcl_ = predefinedAcl_; result.credentialsBlob_ = credentialsBlob_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.GCS) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.GCS)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.GCS other) { if (other == org.tikv.kvproto.BackupOuterClass.GCS.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; onChanged(); } if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); } if (!other.getPrefix().isEmpty()) { prefix_ = other.prefix_; onChanged(); } if (!other.getStorageClass().isEmpty()) { storageClass_ = other.storageClass_; onChanged(); } if (!other.getPredefinedAcl().isEmpty()) { predefinedAcl_ = other.predefinedAcl_; onChanged(); } if (!other.getCredentialsBlob().isEmpty()) { credentialsBlob_ = other.credentialsBlob_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.GCS parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.GCS) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object endpoint_ = ""; /** * string endpoint = 1; */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpoint_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endpoint = 1; */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endpoint = 1; */ public Builder setEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endpoint_ = value; onChanged(); return this; } /** * string endpoint = 1; */ public Builder clearEndpoint() { endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** * string endpoint = 1; */ public Builder setEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpoint_ = value; onChanged(); return this; } private java.lang.Object bucket_ = ""; /** * string bucket = 2; */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } else { return (java.lang.String) ref; } } /** * string bucket = 2; */ public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string bucket = 2; */ public Builder setBucket( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bucket_ = value; onChanged(); return this; } /** * string bucket = 2; */ public Builder clearBucket() { bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** * string bucket = 2; */ public Builder setBucketBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; onChanged(); return this; } private java.lang.Object prefix_ = ""; /** * string prefix = 3; */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } else { return (java.lang.String) ref; } } /** * string prefix = 3; */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string prefix = 3; */ public Builder setPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } prefix_ = value; onChanged(); return this; } /** * string prefix = 3; */ public Builder clearPrefix() { prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** * string prefix = 3; */ public Builder setPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; onChanged(); return this; } private java.lang.Object storageClass_ = ""; /** * string storage_class = 4; */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } else { return (java.lang.String) ref; } } /** * string storage_class = 4; */ public com.google.protobuf.ByteString getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); storageClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string storage_class = 4; */ public Builder setStorageClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value; onChanged(); return this; } /** * string storage_class = 4; */ public Builder clearStorageClass() { storageClass_ = getDefaultInstance().getStorageClass(); onChanged(); return this; } /** * string storage_class = 4; */ public Builder setStorageClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; onChanged(); return this; } private java.lang.Object predefinedAcl_ = ""; /** *
       * If not empty, applies a predefined set of access controls.
       * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
       * for valid values.
       * 
* * string predefined_acl = 5; */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If not empty, applies a predefined set of access controls.
       * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
       * for valid values.
       * 
* * string predefined_acl = 5; */ public com.google.protobuf.ByteString getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); predefinedAcl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If not empty, applies a predefined set of access controls.
       * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
       * for valid values.
       * 
* * string predefined_acl = 5; */ public Builder setPredefinedAcl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; onChanged(); return this; } /** *
       * If not empty, applies a predefined set of access controls.
       * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
       * for valid values.
       * 
* * string predefined_acl = 5; */ public Builder clearPredefinedAcl() { predefinedAcl_ = getDefaultInstance().getPredefinedAcl(); onChanged(); return this; } /** *
       * If not empty, applies a predefined set of access controls.
       * See https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
       * for valid values.
       * 
* * string predefined_acl = 5; */ public Builder setPredefinedAclBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; onChanged(); return this; } private java.lang.Object credentialsBlob_ = ""; /** *
       * Service Account Credentials JSON blob
       * You can get one from https://console.cloud.google.com/apis/credentials, and
       * copy the content, set it as string here.
       * 
* * string credentials_blob = 6; */ public java.lang.String getCredentialsBlob() { java.lang.Object ref = credentialsBlob_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); credentialsBlob_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Service Account Credentials JSON blob
       * You can get one from https://console.cloud.google.com/apis/credentials, and
       * copy the content, set it as string here.
       * 
* * string credentials_blob = 6; */ public com.google.protobuf.ByteString getCredentialsBlobBytes() { java.lang.Object ref = credentialsBlob_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); credentialsBlob_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Service Account Credentials JSON blob
       * You can get one from https://console.cloud.google.com/apis/credentials, and
       * copy the content, set it as string here.
       * 
* * string credentials_blob = 6; */ public Builder setCredentialsBlob( java.lang.String value) { if (value == null) { throw new NullPointerException(); } credentialsBlob_ = value; onChanged(); return this; } /** *
       * Service Account Credentials JSON blob
       * You can get one from https://console.cloud.google.com/apis/credentials, and
       * copy the content, set it as string here.
       * 
* * string credentials_blob = 6; */ public Builder clearCredentialsBlob() { credentialsBlob_ = getDefaultInstance().getCredentialsBlob(); onChanged(); return this; } /** *
       * Service Account Credentials JSON blob
       * You can get one from https://console.cloud.google.com/apis/credentials, and
       * copy the content, set it as string here.
       * 
* * string credentials_blob = 6; */ public Builder setCredentialsBlobBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); credentialsBlob_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.GCS) } // @@protoc_insertion_point(class_scope:backup.GCS) private static final org.tikv.kvproto.BackupOuterClass.GCS DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.GCS(); } public static org.tikv.kvproto.BackupOuterClass.GCS getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GCS parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GCS(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.GCS getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BackupResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:backup.BackupResponse) com.google.protobuf.MessageOrBuilder { /** * .backup.Error error = 1; */ boolean hasError(); /** * .backup.Error error = 1; */ org.tikv.kvproto.BackupOuterClass.Error getError(); /** * .backup.Error error = 1; */ org.tikv.kvproto.BackupOuterClass.ErrorOrBuilder getErrorOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); /** * repeated .backup.File files = 4; */ java.util.List getFilesList(); /** * repeated .backup.File files = 4; */ org.tikv.kvproto.BackupOuterClass.File getFiles(int index); /** * repeated .backup.File files = 4; */ int getFilesCount(); /** * repeated .backup.File files = 4; */ java.util.List getFilesOrBuilderList(); /** * repeated .backup.File files = 4; */ org.tikv.kvproto.BackupOuterClass.FileOrBuilder getFilesOrBuilder( int index); } /** * Protobuf type {@code backup.BackupResponse} */ public static final class BackupResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:backup.BackupResponse) BackupResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BackupResponse.newBuilder() to construct. private BackupResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BackupResponse() { startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; files_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BackupResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.BackupOuterClass.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 26: { endKey_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { files_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } files_.add( input.readMessage(org.tikv.kvproto.BackupOuterClass.File.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { files_ = java.util.Collections.unmodifiableList(files_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.BackupResponse.class, org.tikv.kvproto.BackupOuterClass.BackupResponse.Builder.class); } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.BackupOuterClass.Error error_; /** * .backup.Error error = 1; */ public boolean hasError() { return error_ != null; } /** * .backup.Error error = 1; */ public org.tikv.kvproto.BackupOuterClass.Error getError() { return error_ == null ? org.tikv.kvproto.BackupOuterClass.Error.getDefaultInstance() : error_; } /** * .backup.Error error = 1; */ public org.tikv.kvproto.BackupOuterClass.ErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int FILES_FIELD_NUMBER = 4; private java.util.List files_; /** * repeated .backup.File files = 4; */ public java.util.List getFilesList() { return files_; } /** * repeated .backup.File files = 4; */ public java.util.List getFilesOrBuilderList() { return files_; } /** * repeated .backup.File files = 4; */ public int getFilesCount() { return files_.size(); } /** * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File getFiles(int index) { return files_.get(index); } /** * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.FileOrBuilder getFilesOrBuilder( int index) { return files_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (error_ != null) { output.writeMessage(1, getError()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } for (int i = 0; i < files_.size(); i++) { output.writeMessage(4, files_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, endKey_); } for (int i = 0; i < files_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, files_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.BackupOuterClass.BackupResponse)) { return super.equals(obj); } org.tikv.kvproto.BackupOuterClass.BackupResponse other = (org.tikv.kvproto.BackupOuterClass.BackupResponse) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && getFilesList() .equals(other.getFilesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); if (getFilesCount() > 0) { hash = (37 * hash) + FILES_FIELD_NUMBER; hash = (53 * hash) + getFilesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.BackupOuterClass.BackupResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 backup.BackupResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:backup.BackupResponse) org.tikv.kvproto.BackupOuterClass.BackupResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.BackupOuterClass.BackupResponse.class, org.tikv.kvproto.BackupOuterClass.BackupResponse.Builder.class); } // Construct using org.tikv.kvproto.BackupOuterClass.BackupResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFilesFieldBuilder(); } } public Builder clear() { super.clear(); if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { filesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.BackupOuterClass.internal_static_backup_BackupResponse_descriptor; } public org.tikv.kvproto.BackupOuterClass.BackupResponse getDefaultInstanceForType() { return org.tikv.kvproto.BackupOuterClass.BackupResponse.getDefaultInstance(); } public org.tikv.kvproto.BackupOuterClass.BackupResponse build() { org.tikv.kvproto.BackupOuterClass.BackupResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.BackupOuterClass.BackupResponse buildPartial() { org.tikv.kvproto.BackupOuterClass.BackupResponse result = new org.tikv.kvproto.BackupOuterClass.BackupResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.startKey_ = startKey_; result.endKey_ = endKey_; if (filesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { files_ = java.util.Collections.unmodifiableList(files_); bitField0_ = (bitField0_ & ~0x00000008); } result.files_ = files_; } else { result.files_ = filesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.BackupOuterClass.BackupResponse) { return mergeFrom((org.tikv.kvproto.BackupOuterClass.BackupResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.BackupOuterClass.BackupResponse other) { if (other == org.tikv.kvproto.BackupOuterClass.BackupResponse.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (filesBuilder_ == null) { if (!other.files_.isEmpty()) { if (files_.isEmpty()) { files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFilesIsMutable(); files_.addAll(other.files_); } onChanged(); } } else { if (!other.files_.isEmpty()) { if (filesBuilder_.isEmpty()) { filesBuilder_.dispose(); filesBuilder_ = null; files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000008); filesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFilesFieldBuilder() : null; } else { filesBuilder_.addAllMessages(other.files_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.BackupOuterClass.BackupResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.BackupOuterClass.BackupResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.BackupOuterClass.Error error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Error, org.tikv.kvproto.BackupOuterClass.Error.Builder, org.tikv.kvproto.BackupOuterClass.ErrorOrBuilder> errorBuilder_; /** * .backup.Error error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .backup.Error error = 1; */ public org.tikv.kvproto.BackupOuterClass.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.BackupOuterClass.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .backup.Error error = 1; */ public Builder setError(org.tikv.kvproto.BackupOuterClass.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .backup.Error error = 1; */ public Builder setError( org.tikv.kvproto.BackupOuterClass.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .backup.Error error = 1; */ public Builder mergeError(org.tikv.kvproto.BackupOuterClass.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.BackupOuterClass.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .backup.Error error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .backup.Error error = 1; */ public org.tikv.kvproto.BackupOuterClass.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .backup.Error error = 1; */ public org.tikv.kvproto.BackupOuterClass.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.BackupOuterClass.Error.getDefaultInstance() : error_; } } /** * .backup.Error error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Error, org.tikv.kvproto.BackupOuterClass.Error.Builder, org.tikv.kvproto.BackupOuterClass.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.Error, org.tikv.kvproto.BackupOuterClass.Error.Builder, org.tikv.kvproto.BackupOuterClass.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private java.util.List files_ = java.util.Collections.emptyList(); private void ensureFilesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { files_ = new java.util.ArrayList(files_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.File, org.tikv.kvproto.BackupOuterClass.File.Builder, org.tikv.kvproto.BackupOuterClass.FileOrBuilder> filesBuilder_; /** * repeated .backup.File files = 4; */ public java.util.List getFilesList() { if (filesBuilder_ == null) { return java.util.Collections.unmodifiableList(files_); } else { return filesBuilder_.getMessageList(); } } /** * repeated .backup.File files = 4; */ public int getFilesCount() { if (filesBuilder_ == null) { return files_.size(); } else { return filesBuilder_.getCount(); } } /** * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File getFiles(int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessage(index); } } /** * repeated .backup.File files = 4; */ public Builder setFiles( int index, org.tikv.kvproto.BackupOuterClass.File value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.set(index, value); onChanged(); } else { filesBuilder_.setMessage(index, value); } return this; } /** * repeated .backup.File files = 4; */ public Builder setFiles( int index, org.tikv.kvproto.BackupOuterClass.File.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.set(index, builderForValue.build()); onChanged(); } else { filesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .backup.File files = 4; */ public Builder addFiles(org.tikv.kvproto.BackupOuterClass.File value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(value); onChanged(); } else { filesBuilder_.addMessage(value); } return this; } /** * repeated .backup.File files = 4; */ public Builder addFiles( int index, org.tikv.kvproto.BackupOuterClass.File value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(index, value); onChanged(); } else { filesBuilder_.addMessage(index, value); } return this; } /** * repeated .backup.File files = 4; */ public Builder addFiles( org.tikv.kvproto.BackupOuterClass.File.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .backup.File files = 4; */ public Builder addFiles( int index, org.tikv.kvproto.BackupOuterClass.File.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(index, builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .backup.File files = 4; */ public Builder addAllFiles( java.lang.Iterable values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); } return this; } /** * repeated .backup.File files = 4; */ public Builder clearFiles() { if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { filesBuilder_.clear(); } return this; } /** * repeated .backup.File files = 4; */ public Builder removeFiles(int index) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.remove(index); onChanged(); } else { filesBuilder_.remove(index); } return this; } /** * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File.Builder getFilesBuilder( int index) { return getFilesFieldBuilder().getBuilder(index); } /** * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.FileOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessageOrBuilder(index); } } /** * repeated .backup.File files = 4; */ public java.util.List getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(files_); } } /** * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File.Builder addFilesBuilder() { return getFilesFieldBuilder().addBuilder( org.tikv.kvproto.BackupOuterClass.File.getDefaultInstance()); } /** * repeated .backup.File files = 4; */ public org.tikv.kvproto.BackupOuterClass.File.Builder addFilesBuilder( int index) { return getFilesFieldBuilder().addBuilder( index, org.tikv.kvproto.BackupOuterClass.File.getDefaultInstance()); } /** * repeated .backup.File files = 4; */ public java.util.List getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.File, org.tikv.kvproto.BackupOuterClass.File.Builder, org.tikv.kvproto.BackupOuterClass.FileOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.BackupOuterClass.File, org.tikv.kvproto.BackupOuterClass.File.Builder, org.tikv.kvproto.BackupOuterClass.FileOrBuilder>( files_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:backup.BackupResponse) } // @@protoc_insertion_point(class_scope:backup.BackupResponse) private static final org.tikv.kvproto.BackupOuterClass.BackupResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.BackupOuterClass.BackupResponse(); } public static org.tikv.kvproto.BackupOuterClass.BackupResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BackupResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BackupResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.BackupOuterClass.BackupResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_BackupMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_BackupMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_File_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_File_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_Schema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_Schema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_RawRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_RawRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_ClusterIDError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_ClusterIDError_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_Error_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_BackupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_BackupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_StorageBackend_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_StorageBackend_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_Noop_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_Noop_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_Local_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_Local_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_S3_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_S3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_GCS_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_GCS_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_backup_BackupResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_backup_BackupResponse_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\014backup.proto\022\006backup\032\rkvrpcpb.proto\032\re" + "rrorpb.proto\032\024gogoproto/gogo.proto\032\017rust" + "proto.proto\"\212\002\n\nBackupMeta\022\022\n\ncluster_id" + "\030\001 \001(\004\022\027\n\017cluster_version\030\002 \001(\t\022\033\n\005files" + "\030\004 \003(\0132\014.backup.File\022\025\n\rstart_version\030\005 " + "\001(\004\022\023\n\013end_version\030\006 \001(\004\022\037\n\007schemas\030\007 \003(" + "\0132\016.backup.Schema\022\021\n\tis_raw_kv\030\010 \001(\010\022$\n\n" + "raw_ranges\030\t \003(\0132\020.backup.RawRange\022\014\n\004dd" + "ls\030\n \001(\014\022\022\n\nbr_version\030\013 \001(\tJ\004\010\003\020\004R\004path" + "\"\310\001\n\004File\022\014\n\004name\030\001 \001(\t\022\016\n\006sha256\030\002 \001(\014\022" + "\021\n\tstart_key\030\003 \001(\014\022\017\n\007end_key\030\004 \001(\014\022\025\n\rs" + "tart_version\030\005 \001(\004\022\023\n\013end_version\030\006 \001(\004\022" + "\020\n\010crc64xor\030\007 \001(\004\022\021\n\ttotal_kvs\030\010 \001(\004\022\023\n\013" + "total_bytes\030\t \001(\004\022\n\n\002cf\030\n \001(\t\022\014\n\004size\030\013 " + "\001(\004\"\206\001\n\006Schema\022\n\n\002db\030\001 \001(\014\022\r\n\005table\030\002 \001(" + "\014\022\020\n\010crc64xor\030\003 \001(\004\022\021\n\ttotal_kvs\030\004 \001(\004\022\023" + "\n\013total_bytes\030\005 \001(\004\022\030\n\020tiflash_replicas\030" + "\006 \001(\r\022\r\n\005stats\030\007 \001(\014\":\n\010RawRange\022\021\n\tstar" + "t_key\030\001 \001(\014\022\017\n\007end_key\030\002 \001(\014\022\n\n\002cf\030\003 \001(\t" + "\"2\n\016ClusterIDError\022\017\n\007current\030\001 \001(\004\022\017\n\007r" + "equest\030\002 \001(\004\"\241\001\n\005Error\022\013\n\003msg\030\001 \001(\t\0222\n\020c" + "luster_id_error\030\003 \001(\0132\026.backup.ClusterID" + "ErrorH\000\022%\n\010kv_error\030\004 \001(\0132\021.kvrpcpb.KeyE" + "rrorH\000\022&\n\014region_error\030\005 \001(\0132\016.errorpb.E" + "rrorH\000B\010\n\006detail\"\306\002\n\rBackupRequest\022\022\n\ncl" + "uster_id\030\001 \001(\004\022\021\n\tstart_key\030\002 \001(\014\022\017\n\007end" + "_key\030\003 \001(\014\022\025\n\rstart_version\030\004 \001(\004\022\023\n\013end" + "_version\030\005 \001(\004\022\022\n\nrate_limit\030\007 \001(\004\022\023\n\013co" + "ncurrency\030\010 \001(\r\022/\n\017storage_backend\030\t \001(\013" + "2\026.backup.StorageBackend\022\021\n\tis_raw_kv\030\n " + "\001(\010\022\n\n\002cf\030\013 \001(\t\0221\n\020compression_type\030\014 \001(" + "\0162\027.backup.CompressionType\022\031\n\021compressio" + "n_level\030\r \001(\005J\004\010\006\020\007R\004path\"\217\001\n\016StorageBac" + "kend\022\034\n\004noop\030\001 \001(\0132\014.backup.NoopH\000\022\036\n\005lo" + "cal\030\002 \001(\0132\r.backup.LocalH\000\022\030\n\002s3\030\003 \001(\0132\n" + ".backup.S3H\000\022\032\n\003gcs\030\004 \001(\0132\013.backup.GCSH\000" + "B\t\n\007backend\"\006\n\004Noop\"\025\n\005Local\022\014\n\004path\030\001 \001" + "(\t\"\330\001\n\002S3\022\020\n\010endpoint\030\001 \001(\t\022\016\n\006region\030\002 " + "\001(\t\022\016\n\006bucket\030\003 \001(\t\022\016\n\006prefix\030\004 \001(\t\022\025\n\rs" + "torage_class\030\005 \001(\t\022\013\n\003sse\030\006 \001(\t\022\013\n\003acl\030\007" + " \001(\t\022\022\n\naccess_key\030\010 \001(\t\022\031\n\021secret_acces" + "s_key\030\t \001(\t\022\030\n\020force_path_style\030\n \001(\010\022\026\n" + "\016sse_kms_key_id\030\013 \001(\t\"\200\001\n\003GCS\022\020\n\010endpoin" + "t\030\001 \001(\t\022\016\n\006bucket\030\002 \001(\t\022\016\n\006prefix\030\003 \001(\t\022" + "\025\n\rstorage_class\030\004 \001(\t\022\026\n\016predefined_acl" + "\030\005 \001(\t\022\030\n\020credentials_blob\030\006 \001(\t\"o\n\016Back" + "upResponse\022\034\n\005error\030\001 \001(\0132\r.backup.Error" + "\022\021\n\tstart_key\030\002 \001(\014\022\017\n\007end_key\030\003 \001(\014\022\033\n\005" + "files\030\004 \003(\0132\014.backup.File*=\n\017Compression" + "Type\022\013\n\007UNKNOWN\020\000\022\007\n\003LZ4\020\001\022\n\n\006SNAPPY\020\002\022\010" + "\n\004ZSTD\020\0032E\n\006Backup\022;\n\006backup\022\025.backup.Ba" + "ckupRequest\032\026.backup.BackupResponse\"\0000\001B" + "\"\n\020org.tikv.kvproto\340\342\036\001\310\342\036\001\320\342\036\001\330\250\010\001b\006pro" + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tikv.kvproto.Kvrpcpb.getDescriptor(), org.tikv.kvproto.Errorpb.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_backup_BackupMeta_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_backup_BackupMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_BackupMeta_descriptor, new java.lang.String[] { "ClusterId", "ClusterVersion", "Files", "StartVersion", "EndVersion", "Schemas", "IsRawKv", "RawRanges", "Ddls", "BrVersion", }); internal_static_backup_File_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_backup_File_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_File_descriptor, new java.lang.String[] { "Name", "Sha256", "StartKey", "EndKey", "StartVersion", "EndVersion", "Crc64Xor", "TotalKvs", "TotalBytes", "Cf", "Size", }); internal_static_backup_Schema_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_backup_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_Schema_descriptor, new java.lang.String[] { "Db", "Table", "Crc64Xor", "TotalKvs", "TotalBytes", "TiflashReplicas", "Stats", }); internal_static_backup_RawRange_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_backup_RawRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_RawRange_descriptor, new java.lang.String[] { "StartKey", "EndKey", "Cf", }); internal_static_backup_ClusterIDError_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_backup_ClusterIDError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_ClusterIDError_descriptor, new java.lang.String[] { "Current", "Request", }); internal_static_backup_Error_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_backup_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_Error_descriptor, new java.lang.String[] { "Msg", "ClusterIdError", "KvError", "RegionError", "Detail", }); internal_static_backup_BackupRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_backup_BackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_BackupRequest_descriptor, new java.lang.String[] { "ClusterId", "StartKey", "EndKey", "StartVersion", "EndVersion", "RateLimit", "Concurrency", "StorageBackend", "IsRawKv", "Cf", "CompressionType", "CompressionLevel", }); internal_static_backup_StorageBackend_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_backup_StorageBackend_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_StorageBackend_descriptor, new java.lang.String[] { "Noop", "Local", "S3", "Gcs", "Backend", }); internal_static_backup_Noop_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_backup_Noop_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_Noop_descriptor, new java.lang.String[] { }); internal_static_backup_Local_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_backup_Local_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_Local_descriptor, new java.lang.String[] { "Path", }); internal_static_backup_S3_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_backup_S3_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_S3_descriptor, new java.lang.String[] { "Endpoint", "Region", "Bucket", "Prefix", "StorageClass", "Sse", "Acl", "AccessKey", "SecretAccessKey", "ForcePathStyle", "SseKmsKeyId", }); internal_static_backup_GCS_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_backup_GCS_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_GCS_descriptor, new java.lang.String[] { "Endpoint", "Bucket", "Prefix", "StorageClass", "PredefinedAcl", "CredentialsBlob", }); internal_static_backup_BackupResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_backup_BackupResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_backup_BackupResponse_descriptor, new java.lang.String[] { "Error", "StartKey", "EndKey", "Files", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.marshalerAll); registry.add(com.google.protobuf.GoGoProtos.sizerAll); registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll); registry.add(rustproto.Rustproto.liteRuntimeAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); org.tikv.kvproto.Kvrpcpb.getDescriptor(); org.tikv.kvproto.Errorpb.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy