yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/opensearch/v1/backup.proto
package yandex.cloud.api.mdb.opensearch.v1;
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);
}
public interface BackupOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Backup)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @return The sourceClusterId.
*/
java.lang.String getSourceClusterId();
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @return The bytes for sourceClusterId.
*/
com.google.protobuf.ByteString
getSourceClusterIdBytes();
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
* @return Whether the startedAt field is set.
*/
boolean hasStartedAt();
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
* @return The startedAt.
*/
com.google.protobuf.Timestamp getStartedAt();
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder();
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @return A list containing the indices.
*/
java.util.List
getIndicesList();
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @return The count of indices.
*/
int getIndicesCount();
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param index The index of the element to return.
* @return The indices at the given index.
*/
java.lang.String getIndices(int index);
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param index The index of the value to return.
* @return The bytes of the indices at the given index.
*/
com.google.protobuf.ByteString
getIndicesBytes(int index);
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @return The opensearchVersion.
*/
java.lang.String getOpensearchVersion();
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @return The bytes for opensearchVersion.
*/
com.google.protobuf.ByteString
getOpensearchVersionBytes();
/**
*
* Size of the backup in bytes.
*
*
* int64 size_bytes = 8;
* @return The sizeBytes.
*/
long getSizeBytes();
/**
*
* The number of indices in the backup.
*
*
* int64 indices_total = 9;
* @return The indicesTotal.
*/
long getIndicesTotal();
}
/**
* Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Backup}
*/
public static final class Backup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Backup)
BackupOrBuilder {
private static final long serialVersionUID = 0L;
// Use Backup.newBuilder() to construct.
private Backup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Backup() {
id_ = "";
folderId_ = "";
sourceClusterId_ = "";
indices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
opensearchVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Backup();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Backup(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
sourceClusterId_ = s;
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (startedAt_ != null) {
subBuilder = startedAt_.toBuilder();
}
startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startedAt_);
startedAt_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
indices_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
indices_.add(s);
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
opensearchVersion_ = s;
break;
}
case 64: {
sizeBytes_ = input.readInt64();
break;
}
case 72: {
indicesTotal_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
indices_ = indices_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Backup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Backup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup.class, yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOLDER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
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();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_CLUSTER_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object sourceClusterId_;
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @return The sourceClusterId.
*/
@java.lang.Override
public java.lang.String getSourceClusterId() {
java.lang.Object ref = sourceClusterId_;
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();
sourceClusterId_ = s;
return s;
}
}
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @return The bytes for sourceClusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceClusterIdBytes() {
java.lang.Object ref = sourceClusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceClusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STARTED_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp startedAt_;
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
* @return Whether the startedAt field is set.
*/
@java.lang.Override
public boolean hasStartedAt() {
return startedAt_ != null;
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
* @return The startedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartedAt() {
return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_;
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() {
return getStartedAt();
}
public static final int CREATED_AT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int INDICES_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList indices_;
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @return A list containing the indices.
*/
public com.google.protobuf.ProtocolStringList
getIndicesList() {
return indices_;
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @return The count of indices.
*/
public int getIndicesCount() {
return indices_.size();
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param index The index of the element to return.
* @return The indices at the given index.
*/
public java.lang.String getIndices(int index) {
return indices_.get(index);
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param index The index of the value to return.
* @return The bytes of the indices at the given index.
*/
public com.google.protobuf.ByteString
getIndicesBytes(int index) {
return indices_.getByteString(index);
}
public static final int OPENSEARCH_VERSION_FIELD_NUMBER = 7;
private volatile java.lang.Object opensearchVersion_;
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @return The opensearchVersion.
*/
@java.lang.Override
public java.lang.String getOpensearchVersion() {
java.lang.Object ref = opensearchVersion_;
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();
opensearchVersion_ = s;
return s;
}
}
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @return The bytes for opensearchVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOpensearchVersionBytes() {
java.lang.Object ref = opensearchVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opensearchVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SIZE_BYTES_FIELD_NUMBER = 8;
private long sizeBytes_;
/**
*
* Size of the backup in bytes.
*
*
* int64 size_bytes = 8;
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
public static final int INDICES_TOTAL_FIELD_NUMBER = 9;
private long indicesTotal_;
/**
*
* The number of indices in the backup.
*
*
* int64 indices_total = 9;
* @return The indicesTotal.
*/
@java.lang.Override
public long getIndicesTotal() {
return indicesTotal_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceClusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceClusterId_);
}
if (startedAt_ != null) {
output.writeMessage(4, getStartedAt());
}
if (createdAt_ != null) {
output.writeMessage(5, getCreatedAt());
}
for (int i = 0; i < indices_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, indices_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opensearchVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, opensearchVersion_);
}
if (sizeBytes_ != 0L) {
output.writeInt64(8, sizeBytes_);
}
if (indicesTotal_ != 0L) {
output.writeInt64(9, indicesTotal_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceClusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceClusterId_);
}
if (startedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getStartedAt());
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreatedAt());
}
{
int dataSize = 0;
for (int i = 0; i < indices_.size(); i++) {
dataSize += computeStringSizeNoTag(indices_.getRaw(i));
}
size += dataSize;
size += 1 * getIndicesList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opensearchVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, opensearchVersion_);
}
if (sizeBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, sizeBytes_);
}
if (indicesTotal_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, indicesTotal_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup other = (yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getSourceClusterId()
.equals(other.getSourceClusterId())) return false;
if (hasStartedAt() != other.hasStartedAt()) return false;
if (hasStartedAt()) {
if (!getStartedAt()
.equals(other.getStartedAt())) return false;
}
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getIndicesList()
.equals(other.getIndicesList())) return false;
if (!getOpensearchVersion()
.equals(other.getOpensearchVersion())) return false;
if (getSizeBytes()
!= other.getSizeBytes()) return false;
if (getIndicesTotal()
!= other.getIndicesTotal()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + SOURCE_CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSourceClusterId().hashCode();
if (hasStartedAt()) {
hash = (37 * hash) + STARTED_AT_FIELD_NUMBER;
hash = (53 * hash) + getStartedAt().hashCode();
}
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (getIndicesCount() > 0) {
hash = (37 * hash) + INDICES_FIELD_NUMBER;
hash = (53 * hash) + getIndicesList().hashCode();
}
hash = (37 * hash) + OPENSEARCH_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getOpensearchVersion().hashCode();
hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSizeBytes());
hash = (37 * hash) + INDICES_TOTAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndicesTotal());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Backup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Backup)
yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.BackupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Backup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Backup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup.class, yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
folderId_ = "";
sourceClusterId_ = "";
if (startedAtBuilder_ == null) {
startedAt_ = null;
} else {
startedAt_ = null;
startedAtBuilder_ = null;
}
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
indices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
opensearchVersion_ = "";
sizeBytes_ = 0L;
indicesTotal_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Backup_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup build() {
yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup result = new yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.folderId_ = folderId_;
result.sourceClusterId_ = sourceClusterId_;
if (startedAtBuilder_ == null) {
result.startedAt_ = startedAt_;
} else {
result.startedAt_ = startedAtBuilder_.build();
}
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
indices_ = indices_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.indices_ = indices_;
result.opensearchVersion_ = opensearchVersion_;
result.sizeBytes_ = sizeBytes_;
result.indicesTotal_ = indicesTotal_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup other) {
if (other == yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getSourceClusterId().isEmpty()) {
sourceClusterId_ = other.sourceClusterId_;
onChanged();
}
if (other.hasStartedAt()) {
mergeStartedAt(other.getStartedAt());
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (!other.indices_.isEmpty()) {
if (indices_.isEmpty()) {
indices_ = other.indices_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIndicesIsMutable();
indices_.addAll(other.indices_);
}
onChanged();
}
if (!other.getOpensearchVersion().isEmpty()) {
opensearchVersion_ = other.opensearchVersion_;
onChanged();
}
if (other.getSizeBytes() != 0L) {
setSizeBytes(other.getSizeBytes());
}
if (other.getIndicesTotal() != 0L) {
setIndicesTotal(other.getIndicesTotal());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Required. ID of the backup.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder that the backup belongs to.
*
*
* string folder_id = 2;
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private java.lang.Object sourceClusterId_ = "";
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @return The sourceClusterId.
*/
public java.lang.String getSourceClusterId() {
java.lang.Object ref = sourceClusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceClusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @return The bytes for sourceClusterId.
*/
public com.google.protobuf.ByteString
getSourceClusterIdBytes() {
java.lang.Object ref = sourceClusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceClusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @param value The sourceClusterId to set.
* @return This builder for chaining.
*/
public Builder setSourceClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceClusterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @return This builder for chaining.
*/
public Builder clearSourceClusterId() {
sourceClusterId_ = getDefaultInstance().getSourceClusterId();
onChanged();
return this;
}
/**
*
* ID of the OpenSearch cluster that the backup was created for.
*
*
* string source_cluster_id = 3;
* @param value The bytes for sourceClusterId to set.
* @return This builder for chaining.
*/
public Builder setSourceClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceClusterId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp startedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_;
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
* @return Whether the startedAt field is set.
*/
public boolean hasStartedAt() {
return startedAtBuilder_ != null || startedAt_ != null;
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
* @return The startedAt.
*/
public com.google.protobuf.Timestamp getStartedAt() {
if (startedAtBuilder_ == null) {
return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_;
} else {
return startedAtBuilder_.getMessage();
}
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
public Builder setStartedAt(com.google.protobuf.Timestamp value) {
if (startedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startedAt_ = value;
onChanged();
} else {
startedAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
public Builder setStartedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startedAtBuilder_ == null) {
startedAt_ = builderForValue.build();
onChanged();
} else {
startedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
public Builder mergeStartedAt(com.google.protobuf.Timestamp value) {
if (startedAtBuilder_ == null) {
if (startedAt_ != null) {
startedAt_ =
com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial();
} else {
startedAt_ = value;
}
onChanged();
} else {
startedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
public Builder clearStartedAt() {
if (startedAtBuilder_ == null) {
startedAt_ = null;
onChanged();
} else {
startedAt_ = null;
startedAtBuilder_ = null;
}
return this;
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() {
onChanged();
return getStartedAtFieldBuilder().getBuilder();
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() {
if (startedAtBuilder_ != null) {
return startedAtBuilder_.getMessageOrBuilder();
} else {
return startedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_;
}
}
/**
*
* Time when the backup operation was started.
*
*
* .google.protobuf.Timestamp started_at = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartedAtFieldBuilder() {
if (startedAtBuilder_ == null) {
startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStartedAt(),
getParentForChildren(),
isClean());
startedAt_ = null;
}
return startedAtBuilder_;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Time when the backup operation was completed.
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.LazyStringList indices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIndicesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
indices_ = new com.google.protobuf.LazyStringArrayList(indices_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @return A list containing the indices.
*/
public com.google.protobuf.ProtocolStringList
getIndicesList() {
return indices_.getUnmodifiableView();
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @return The count of indices.
*/
public int getIndicesCount() {
return indices_.size();
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param index The index of the element to return.
* @return The indices at the given index.
*/
public java.lang.String getIndices(int index) {
return indices_.get(index);
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param index The index of the value to return.
* @return The bytes of the indices at the given index.
*/
public com.google.protobuf.ByteString
getIndicesBytes(int index) {
return indices_.getByteString(index);
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param index The index to set the value at.
* @param value The indices to set.
* @return This builder for chaining.
*/
public Builder setIndices(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIndicesIsMutable();
indices_.set(index, value);
onChanged();
return this;
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param value The indices to add.
* @return This builder for chaining.
*/
public Builder addIndices(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIndicesIsMutable();
indices_.add(value);
onChanged();
return this;
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param values The indices to add.
* @return This builder for chaining.
*/
public Builder addAllIndices(
java.lang.Iterable values) {
ensureIndicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indices_);
onChanged();
return this;
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearIndices() {
indices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Names of indices in the backup.
*
*
* repeated string indices = 6 [(.yandex.cloud.size) = "<=100"];
* @param value The bytes of the indices to add.
* @return This builder for chaining.
*/
public Builder addIndicesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIndicesIsMutable();
indices_.add(value);
onChanged();
return this;
}
private java.lang.Object opensearchVersion_ = "";
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @return The opensearchVersion.
*/
public java.lang.String getOpensearchVersion() {
java.lang.Object ref = opensearchVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
opensearchVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @return The bytes for opensearchVersion.
*/
public com.google.protobuf.ByteString
getOpensearchVersionBytes() {
java.lang.Object ref = opensearchVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opensearchVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @param value The opensearchVersion to set.
* @return This builder for chaining.
*/
public Builder setOpensearchVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
opensearchVersion_ = value;
onChanged();
return this;
}
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @return This builder for chaining.
*/
public Builder clearOpensearchVersion() {
opensearchVersion_ = getDefaultInstance().getOpensearchVersion();
onChanged();
return this;
}
/**
*
* OpenSearch version used to create the backup.
*
*
* string opensearch_version = 7;
* @param value The bytes for opensearchVersion to set.
* @return This builder for chaining.
*/
public Builder setOpensearchVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
opensearchVersion_ = value;
onChanged();
return this;
}
private long sizeBytes_ ;
/**
*
* Size of the backup in bytes.
*
*
* int64 size_bytes = 8;
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
/**
*
* Size of the backup in bytes.
*
*
* int64 size_bytes = 8;
* @param value The sizeBytes to set.
* @return This builder for chaining.
*/
public Builder setSizeBytes(long value) {
sizeBytes_ = value;
onChanged();
return this;
}
/**
*
* Size of the backup in bytes.
*
*
* int64 size_bytes = 8;
* @return This builder for chaining.
*/
public Builder clearSizeBytes() {
sizeBytes_ = 0L;
onChanged();
return this;
}
private long indicesTotal_ ;
/**
*
* The number of indices in the backup.
*
*
* int64 indices_total = 9;
* @return The indicesTotal.
*/
@java.lang.Override
public long getIndicesTotal() {
return indicesTotal_;
}
/**
*
* The number of indices in the backup.
*
*
* int64 indices_total = 9;
* @param value The indicesTotal to set.
* @return This builder for chaining.
*/
public Builder setIndicesTotal(long value) {
indicesTotal_ = value;
onChanged();
return this;
}
/**
*
* The number of indices in the backup.
*
*
* int64 indices_total = 9;
* @return This builder for chaining.
*/
public Builder clearIndicesTotal() {
indicesTotal_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.opensearch.v1.Backup)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Backup)
private static final yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup();
}
public static yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Backup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Backup(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.BackupOuterClass.Backup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_opensearch_v1_Backup_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_opensearch_v1_Backup_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n+yandex/cloud/mdb/opensearch/v1/backup." +
"proto\022\036yandex.cloud.mdb.opensearch.v1\032\037g" +
"oogle/protobuf/timestamp.proto\032\035yandex/c" +
"loud/validation.proto\"\205\002\n\006Backup\022\n\n\002id\030\001" +
" \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022\031\n\021source_cluste" +
"r_id\030\003 \001(\t\022.\n\nstarted_at\030\004 \001(\0132\032.google." +
"protobuf.Timestamp\022.\n\ncreated_at\030\005 \001(\0132\032" +
".google.protobuf.Timestamp\022\032\n\007indices\030\006 " +
"\003(\tB\t\202\3101\005<=100\022\032\n\022opensearch_version\030\007 \001" +
"(\t\022\022\n\nsize_bytes\030\010 \001(\003\022\025\n\rindices_total\030" +
"\t \001(\003Bs\n\"yandex.cloud.api.mdb.opensearch" +
".v1ZMgithub.com/yandex-cloud/go-genproto" +
"/yandex/cloud/mdb/opensearch/v1;opensear" +
"chb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_mdb_opensearch_v1_Backup_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_opensearch_v1_Backup_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_opensearch_v1_Backup_descriptor,
new java.lang.String[] { "Id", "FolderId", "SourceClusterId", "StartedAt", "CreatedAt", "Indices", "OpensearchVersion", "SizeBytes", "IndicesTotal", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.size);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.TimestampProto.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy