yandex.cloud.api.backup.v1.ResourceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/backup/v1/resource.proto
package yandex.cloud.api.backup.v1;
public final class ResourceOuterClass {
private ResourceOuterClass() {}
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 ResourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.Resource)
com.google.protobuf.MessageOrBuilder {
/**
* string compute_instance_id = 1;
* @return The computeInstanceId.
*/
java.lang.String getComputeInstanceId();
/**
* string compute_instance_id = 1;
* @return The bytes for computeInstanceId.
*/
com.google.protobuf.ByteString
getComputeInstanceIdBytes();
/**
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 2;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 2;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
* .google.protobuf.Timestamp updated_at = 3;
* @return Whether the updatedAt field is set.
*/
boolean hasUpdatedAt();
/**
* .google.protobuf.Timestamp updated_at = 3;
* @return The updatedAt.
*/
com.google.protobuf.Timestamp getUpdatedAt();
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
/**
* bool online = 4;
* @return The online.
*/
boolean getOnline();
/**
* bool enabled = 5;
* @return The enabled.
*/
boolean getEnabled();
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @return The status.
*/
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status getStatus();
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @return The statusDetails.
*/
java.lang.String getStatusDetails();
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @return The bytes for statusDetails.
*/
com.google.protobuf.ByteString
getStatusDetailsBytes();
/**
*
* In case status is one of `BACKUPING` or `RECOVERING`,
* progress value might be found here.
*
*
* int64 status_progress = 8;
* @return The statusProgress.
*/
long getStatusProgress();
/**
* .google.protobuf.Timestamp last_backup_time = 9;
* @return Whether the lastBackupTime field is set.
*/
boolean hasLastBackupTime();
/**
* .google.protobuf.Timestamp last_backup_time = 9;
* @return The lastBackupTime.
*/
com.google.protobuf.Timestamp getLastBackupTime();
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
com.google.protobuf.TimestampOrBuilder getLastBackupTimeOrBuilder();
/**
* .google.protobuf.Timestamp next_backup_time = 10;
* @return Whether the nextBackupTime field is set.
*/
boolean hasNextBackupTime();
/**
* .google.protobuf.Timestamp next_backup_time = 10;
* @return The nextBackupTime.
*/
com.google.protobuf.Timestamp getNextBackupTime();
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
com.google.protobuf.TimestampOrBuilder getNextBackupTimeOrBuilder();
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @return The resourceId.
*/
java.lang.String getResourceId();
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @return The bytes for resourceId.
*/
com.google.protobuf.ByteString
getResourceIdBytes();
/**
*
* Status `is_active` shows whether current Compute Cloud instance controls Cloud Backup resource.
* If status `is_active` is false it means Compute Cloud instance is not able to manipulate
* Cloud Backup resource.
*
*
* bool is_active = 12;
* @return The isActive.
*/
boolean getIsActive();
}
/**
* Protobuf type {@code yandex.cloud.backup.v1.Resource}
*/
public static final class Resource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.Resource)
ResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Resource.newBuilder() to construct.
private Resource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Resource() {
computeInstanceId_ = "";
status_ = 0;
statusDetails_ = "";
resourceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Resource();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Resource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
computeInstanceId_ = s;
break;
}
case 18: {
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 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (updatedAt_ != null) {
subBuilder = updatedAt_.toBuilder();
}
updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updatedAt_);
updatedAt_ = subBuilder.buildPartial();
}
break;
}
case 32: {
online_ = input.readBool();
break;
}
case 40: {
enabled_ = input.readBool();
break;
}
case 48: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
statusDetails_ = s;
break;
}
case 64: {
statusProgress_ = input.readInt64();
break;
}
case 74: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (lastBackupTime_ != null) {
subBuilder = lastBackupTime_.toBuilder();
}
lastBackupTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastBackupTime_);
lastBackupTime_ = subBuilder.buildPartial();
}
break;
}
case 82: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (nextBackupTime_ != null) {
subBuilder = nextBackupTime_.toBuilder();
}
nextBackupTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nextBackupTime_);
nextBackupTime_ = subBuilder.buildPartial();
}
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
resourceId_ = s;
break;
}
case 96: {
isActive_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Resource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Resource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.class, yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.backup.v1.Resource.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSPECIFIED = 0;
*/
STATUS_UNSPECIFIED(0),
/**
*
* Compute Cloud instance is doing nothing right now.
*
*
* IDLE = 1;
*/
IDLE(1),
/**
*
* Compute Cloud instance is currently backing up itself.
*
*
* BACKUPING = 2;
*/
BACKUPING(2),
/**
*
* Compute Cloud instance is currently recovering itself.
*
*
* RECOVERING = 3;
*/
RECOVERING(3),
/**
*
* Compute Cloud instance is in failure state, check content of
* `status_details` field for more information.
*
*
* FAILED = 4;
*/
FAILED(4),
/**
*
* Unspecified state, check `status_details` field
* for more information.
*
*
* OTHER = 5;
*/
OTHER(5),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSPECIFIED = 0;
*/
public static final int STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* Compute Cloud instance is doing nothing right now.
*
*
* IDLE = 1;
*/
public static final int IDLE_VALUE = 1;
/**
*
* Compute Cloud instance is currently backing up itself.
*
*
* BACKUPING = 2;
*/
public static final int BACKUPING_VALUE = 2;
/**
*
* Compute Cloud instance is currently recovering itself.
*
*
* RECOVERING = 3;
*/
public static final int RECOVERING_VALUE = 3;
/**
*
* Compute Cloud instance is in failure state, check content of
* `status_details` field for more information.
*
*
* FAILED = 4;
*/
public static final int FAILED_VALUE = 4;
/**
*
* Unspecified state, check `status_details` field
* for more information.
*
*
* OTHER = 5;
*/
public static final int OTHER_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0: return STATUS_UNSPECIFIED;
case 1: return IDLE;
case 2: return BACKUPING;
case 3: return RECOVERING;
case 4: return FAILED;
case 5: return OTHER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status 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 Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.Resource.Status)
}
public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object computeInstanceId_;
/**
* string compute_instance_id = 1;
* @return The computeInstanceId.
*/
@java.lang.Override
public java.lang.String getComputeInstanceId() {
java.lang.Object ref = computeInstanceId_;
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();
computeInstanceId_ = s;
return s;
}
}
/**
* string compute_instance_id = 1;
* @return The bytes for computeInstanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getComputeInstanceIdBytes() {
java.lang.Object ref = computeInstanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
computeInstanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createdAt_;
/**
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
* .google.protobuf.Timestamp created_at = 2;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int UPDATED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp updatedAt_;
/**
* .google.protobuf.Timestamp updated_at = 3;
* @return Whether the updatedAt field is set.
*/
@java.lang.Override
public boolean hasUpdatedAt() {
return updatedAt_ != null;
}
/**
* .google.protobuf.Timestamp updated_at = 3;
* @return The updatedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdatedAt() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
return getUpdatedAt();
}
public static final int ONLINE_FIELD_NUMBER = 4;
private boolean online_;
/**
* bool online = 4;
* @return The online.
*/
@java.lang.Override
public boolean getOnline() {
return online_;
}
public static final int ENABLED_FIELD_NUMBER = 5;
private boolean enabled_;
/**
* bool enabled = 5;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int STATUS_FIELD_NUMBER = 6;
private int status_;
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status result = yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status.valueOf(status_);
return result == null ? yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status.UNRECOGNIZED : result;
}
public static final int STATUS_DETAILS_FIELD_NUMBER = 7;
private volatile java.lang.Object statusDetails_;
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @return The statusDetails.
*/
@java.lang.Override
public java.lang.String getStatusDetails() {
java.lang.Object ref = statusDetails_;
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();
statusDetails_ = s;
return s;
}
}
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @return The bytes for statusDetails.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusDetailsBytes() {
java.lang.Object ref = statusDetails_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusDetails_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_PROGRESS_FIELD_NUMBER = 8;
private long statusProgress_;
/**
*
* In case status is one of `BACKUPING` or `RECOVERING`,
* progress value might be found here.
*
*
* int64 status_progress = 8;
* @return The statusProgress.
*/
@java.lang.Override
public long getStatusProgress() {
return statusProgress_;
}
public static final int LAST_BACKUP_TIME_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp lastBackupTime_;
/**
* .google.protobuf.Timestamp last_backup_time = 9;
* @return Whether the lastBackupTime field is set.
*/
@java.lang.Override
public boolean hasLastBackupTime() {
return lastBackupTime_ != null;
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
* @return The lastBackupTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastBackupTime() {
return lastBackupTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastBackupTime_;
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastBackupTimeOrBuilder() {
return getLastBackupTime();
}
public static final int NEXT_BACKUP_TIME_FIELD_NUMBER = 10;
private com.google.protobuf.Timestamp nextBackupTime_;
/**
* .google.protobuf.Timestamp next_backup_time = 10;
* @return Whether the nextBackupTime field is set.
*/
@java.lang.Override
public boolean hasNextBackupTime() {
return nextBackupTime_ != null;
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
* @return The nextBackupTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getNextBackupTime() {
return nextBackupTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextBackupTime_;
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getNextBackupTimeOrBuilder() {
return getNextBackupTime();
}
public static final int RESOURCE_ID_FIELD_NUMBER = 11;
private volatile java.lang.Object resourceId_;
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @return The resourceId.
*/
@java.lang.Override
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
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();
resourceId_ = s;
return s;
}
}
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @return The bytes for resourceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IS_ACTIVE_FIELD_NUMBER = 12;
private boolean isActive_;
/**
*
* Status `is_active` shows whether current Compute Cloud instance controls Cloud Backup resource.
* If status `is_active` is false it means Compute Cloud instance is not able to manipulate
* Cloud Backup resource.
*
*
* bool is_active = 12;
* @return The isActive.
*/
@java.lang.Override
public boolean getIsActive() {
return isActive_;
}
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(computeInstanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, computeInstanceId_);
}
if (createdAt_ != null) {
output.writeMessage(2, getCreatedAt());
}
if (updatedAt_ != null) {
output.writeMessage(3, getUpdatedAt());
}
if (online_ != false) {
output.writeBool(4, online_);
}
if (enabled_ != false) {
output.writeBool(5, enabled_);
}
if (status_ != yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(6, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetails_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, statusDetails_);
}
if (statusProgress_ != 0L) {
output.writeInt64(8, statusProgress_);
}
if (lastBackupTime_ != null) {
output.writeMessage(9, getLastBackupTime());
}
if (nextBackupTime_ != null) {
output.writeMessage(10, getNextBackupTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, resourceId_);
}
if (isActive_ != false) {
output.writeBool(12, isActive_);
}
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(computeInstanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, computeInstanceId_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCreatedAt());
}
if (updatedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUpdatedAt());
}
if (online_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, online_);
}
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, enabled_);
}
if (status_ != yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetails_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, statusDetails_);
}
if (statusProgress_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, statusProgress_);
}
if (lastBackupTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getLastBackupTime());
}
if (nextBackupTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getNextBackupTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, resourceId_);
}
if (isActive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, isActive_);
}
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.backup.v1.ResourceOuterClass.Resource)) {
return super.equals(obj);
}
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource other = (yandex.cloud.api.backup.v1.ResourceOuterClass.Resource) obj;
if (!getComputeInstanceId()
.equals(other.getComputeInstanceId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasUpdatedAt() != other.hasUpdatedAt()) return false;
if (hasUpdatedAt()) {
if (!getUpdatedAt()
.equals(other.getUpdatedAt())) return false;
}
if (getOnline()
!= other.getOnline()) return false;
if (getEnabled()
!= other.getEnabled()) return false;
if (status_ != other.status_) return false;
if (!getStatusDetails()
.equals(other.getStatusDetails())) return false;
if (getStatusProgress()
!= other.getStatusProgress()) return false;
if (hasLastBackupTime() != other.hasLastBackupTime()) return false;
if (hasLastBackupTime()) {
if (!getLastBackupTime()
.equals(other.getLastBackupTime())) return false;
}
if (hasNextBackupTime() != other.hasNextBackupTime()) return false;
if (hasNextBackupTime()) {
if (!getNextBackupTime()
.equals(other.getNextBackupTime())) return false;
}
if (!getResourceId()
.equals(other.getResourceId())) return false;
if (getIsActive()
!= other.getIsActive()) 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) + COMPUTE_INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getComputeInstanceId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasUpdatedAt()) {
hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedAt().hashCode();
}
hash = (37 * hash) + ONLINE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOnline());
hash = (37 * hash) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + STATUS_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getStatusDetails().hashCode();
hash = (37 * hash) + STATUS_PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStatusProgress());
if (hasLastBackupTime()) {
hash = (37 * hash) + LAST_BACKUP_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLastBackupTime().hashCode();
}
if (hasNextBackupTime()) {
hash = (37 * hash) + NEXT_BACKUP_TIME_FIELD_NUMBER;
hash = (53 * hash) + getNextBackupTime().hashCode();
}
hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResourceId().hashCode();
hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsActive());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource 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.backup.v1.ResourceOuterClass.Resource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource 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.backup.v1.ResourceOuterClass.Resource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource 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.backup.v1.ResourceOuterClass.Resource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource 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.backup.v1.ResourceOuterClass.Resource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource 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.backup.v1.ResourceOuterClass.Resource 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.backup.v1.Resource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.Resource)
yandex.cloud.api.backup.v1.ResourceOuterClass.ResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Resource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Resource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.class, yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Builder.class);
}
// Construct using yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.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();
computeInstanceId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (updatedAtBuilder_ == null) {
updatedAt_ = null;
} else {
updatedAt_ = null;
updatedAtBuilder_ = null;
}
online_ = false;
enabled_ = false;
status_ = 0;
statusDetails_ = "";
statusProgress_ = 0L;
if (lastBackupTimeBuilder_ == null) {
lastBackupTime_ = null;
} else {
lastBackupTime_ = null;
lastBackupTimeBuilder_ = null;
}
if (nextBackupTimeBuilder_ == null) {
nextBackupTime_ = null;
} else {
nextBackupTime_ = null;
nextBackupTimeBuilder_ = null;
}
resourceId_ = "";
isActive_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Resource_descriptor;
}
@java.lang.Override
public yandex.cloud.api.backup.v1.ResourceOuterClass.Resource getDefaultInstanceForType() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.backup.v1.ResourceOuterClass.Resource build() {
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.backup.v1.ResourceOuterClass.Resource buildPartial() {
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource result = new yandex.cloud.api.backup.v1.ResourceOuterClass.Resource(this);
result.computeInstanceId_ = computeInstanceId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (updatedAtBuilder_ == null) {
result.updatedAt_ = updatedAt_;
} else {
result.updatedAt_ = updatedAtBuilder_.build();
}
result.online_ = online_;
result.enabled_ = enabled_;
result.status_ = status_;
result.statusDetails_ = statusDetails_;
result.statusProgress_ = statusProgress_;
if (lastBackupTimeBuilder_ == null) {
result.lastBackupTime_ = lastBackupTime_;
} else {
result.lastBackupTime_ = lastBackupTimeBuilder_.build();
}
if (nextBackupTimeBuilder_ == null) {
result.nextBackupTime_ = nextBackupTime_;
} else {
result.nextBackupTime_ = nextBackupTimeBuilder_.build();
}
result.resourceId_ = resourceId_;
result.isActive_ = isActive_;
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.backup.v1.ResourceOuterClass.Resource) {
return mergeFrom((yandex.cloud.api.backup.v1.ResourceOuterClass.Resource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.backup.v1.ResourceOuterClass.Resource other) {
if (other == yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.getDefaultInstance()) return this;
if (!other.getComputeInstanceId().isEmpty()) {
computeInstanceId_ = other.computeInstanceId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasUpdatedAt()) {
mergeUpdatedAt(other.getUpdatedAt());
}
if (other.getOnline() != false) {
setOnline(other.getOnline());
}
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getStatusDetails().isEmpty()) {
statusDetails_ = other.statusDetails_;
onChanged();
}
if (other.getStatusProgress() != 0L) {
setStatusProgress(other.getStatusProgress());
}
if (other.hasLastBackupTime()) {
mergeLastBackupTime(other.getLastBackupTime());
}
if (other.hasNextBackupTime()) {
mergeNextBackupTime(other.getNextBackupTime());
}
if (!other.getResourceId().isEmpty()) {
resourceId_ = other.resourceId_;
onChanged();
}
if (other.getIsActive() != false) {
setIsActive(other.getIsActive());
}
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.backup.v1.ResourceOuterClass.Resource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.backup.v1.ResourceOuterClass.Resource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object computeInstanceId_ = "";
/**
* string compute_instance_id = 1;
* @return The computeInstanceId.
*/
public java.lang.String getComputeInstanceId() {
java.lang.Object ref = computeInstanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
computeInstanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string compute_instance_id = 1;
* @return The bytes for computeInstanceId.
*/
public com.google.protobuf.ByteString
getComputeInstanceIdBytes() {
java.lang.Object ref = computeInstanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
computeInstanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string compute_instance_id = 1;
* @param value The computeInstanceId to set.
* @return This builder for chaining.
*/
public Builder setComputeInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
computeInstanceId_ = value;
onChanged();
return this;
}
/**
* string compute_instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearComputeInstanceId() {
computeInstanceId_ = getDefaultInstance().getComputeInstanceId();
onChanged();
return this;
}
/**
* string compute_instance_id = 1;
* @param value The bytes for computeInstanceId to set.
* @return This builder for chaining.
*/
public Builder setComputeInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
computeInstanceId_ = value;
onChanged();
return this;
}
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_;
/**
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
* .google.protobuf.Timestamp created_at = 2;
* @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();
}
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
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;
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
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;
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
* .google.protobuf.Timestamp created_at = 2;
*/
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.Timestamp updatedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_;
/**
* .google.protobuf.Timestamp updated_at = 3;
* @return Whether the updatedAt field is set.
*/
public boolean hasUpdatedAt() {
return updatedAtBuilder_ != null || updatedAt_ != null;
}
/**
* .google.protobuf.Timestamp updated_at = 3;
* @return The updatedAt.
*/
public com.google.protobuf.Timestamp getUpdatedAt() {
if (updatedAtBuilder_ == null) {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
} else {
return updatedAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedAt_ = value;
onChanged();
} else {
updatedAtBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
public Builder setUpdatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedAtBuilder_ == null) {
updatedAt_ = builderForValue.build();
onChanged();
} else {
updatedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (updatedAt_ != null) {
updatedAt_ =
com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial();
} else {
updatedAt_ = value;
}
onChanged();
} else {
updatedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
public Builder clearUpdatedAt() {
if (updatedAtBuilder_ == null) {
updatedAt_ = null;
onChanged();
} else {
updatedAt_ = null;
updatedAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
onChanged();
return getUpdatedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
if (updatedAtBuilder_ != null) {
return updatedAtBuilder_.getMessageOrBuilder();
} else {
return updatedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
}
/**
* .google.protobuf.Timestamp updated_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedAtFieldBuilder() {
if (updatedAtBuilder_ == null) {
updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdatedAt(),
getParentForChildren(),
isClean());
updatedAt_ = null;
}
return updatedAtBuilder_;
}
private boolean online_ ;
/**
* bool online = 4;
* @return The online.
*/
@java.lang.Override
public boolean getOnline() {
return online_;
}
/**
* bool online = 4;
* @param value The online to set.
* @return This builder for chaining.
*/
public Builder setOnline(boolean value) {
online_ = value;
onChanged();
return this;
}
/**
* bool online = 4;
* @return This builder for chaining.
*/
public Builder clearOnline() {
online_ = false;
onChanged();
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 5;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 5;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 5;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private int status_ = 0;
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status result = yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status.valueOf(status_);
return result == null ? yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status.UNRECOGNIZED : result;
}
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.backup.v1.ResourceOuterClass.Resource.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .yandex.cloud.backup.v1.Resource.Status status = 6;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object statusDetails_ = "";
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @return The statusDetails.
*/
public java.lang.String getStatusDetails() {
java.lang.Object ref = statusDetails_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusDetails_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @return The bytes for statusDetails.
*/
public com.google.protobuf.ByteString
getStatusDetailsBytes() {
java.lang.Object ref = statusDetails_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusDetails_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @param value The statusDetails to set.
* @return This builder for chaining.
*/
public Builder setStatusDetails(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
statusDetails_ = value;
onChanged();
return this;
}
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @return This builder for chaining.
*/
public Builder clearStatusDetails() {
statusDetails_ = getDefaultInstance().getStatusDetails();
onChanged();
return this;
}
/**
*
* If status value is one of `OTHER` or `FAILED`,
* detailed info might be stored here.
*
*
* string status_details = 7;
* @param value The bytes for statusDetails to set.
* @return This builder for chaining.
*/
public Builder setStatusDetailsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
statusDetails_ = value;
onChanged();
return this;
}
private long statusProgress_ ;
/**
*
* In case status is one of `BACKUPING` or `RECOVERING`,
* progress value might be found here.
*
*
* int64 status_progress = 8;
* @return The statusProgress.
*/
@java.lang.Override
public long getStatusProgress() {
return statusProgress_;
}
/**
*
* In case status is one of `BACKUPING` or `RECOVERING`,
* progress value might be found here.
*
*
* int64 status_progress = 8;
* @param value The statusProgress to set.
* @return This builder for chaining.
*/
public Builder setStatusProgress(long value) {
statusProgress_ = value;
onChanged();
return this;
}
/**
*
* In case status is one of `BACKUPING` or `RECOVERING`,
* progress value might be found here.
*
*
* int64 status_progress = 8;
* @return This builder for chaining.
*/
public Builder clearStatusProgress() {
statusProgress_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Timestamp lastBackupTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastBackupTimeBuilder_;
/**
* .google.protobuf.Timestamp last_backup_time = 9;
* @return Whether the lastBackupTime field is set.
*/
public boolean hasLastBackupTime() {
return lastBackupTimeBuilder_ != null || lastBackupTime_ != null;
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
* @return The lastBackupTime.
*/
public com.google.protobuf.Timestamp getLastBackupTime() {
if (lastBackupTimeBuilder_ == null) {
return lastBackupTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastBackupTime_;
} else {
return lastBackupTimeBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
public Builder setLastBackupTime(com.google.protobuf.Timestamp value) {
if (lastBackupTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastBackupTime_ = value;
onChanged();
} else {
lastBackupTimeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
public Builder setLastBackupTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastBackupTimeBuilder_ == null) {
lastBackupTime_ = builderForValue.build();
onChanged();
} else {
lastBackupTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
public Builder mergeLastBackupTime(com.google.protobuf.Timestamp value) {
if (lastBackupTimeBuilder_ == null) {
if (lastBackupTime_ != null) {
lastBackupTime_ =
com.google.protobuf.Timestamp.newBuilder(lastBackupTime_).mergeFrom(value).buildPartial();
} else {
lastBackupTime_ = value;
}
onChanged();
} else {
lastBackupTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
public Builder clearLastBackupTime() {
if (lastBackupTimeBuilder_ == null) {
lastBackupTime_ = null;
onChanged();
} else {
lastBackupTime_ = null;
lastBackupTimeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
public com.google.protobuf.Timestamp.Builder getLastBackupTimeBuilder() {
onChanged();
return getLastBackupTimeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
public com.google.protobuf.TimestampOrBuilder getLastBackupTimeOrBuilder() {
if (lastBackupTimeBuilder_ != null) {
return lastBackupTimeBuilder_.getMessageOrBuilder();
} else {
return lastBackupTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastBackupTime_;
}
}
/**
* .google.protobuf.Timestamp last_backup_time = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastBackupTimeFieldBuilder() {
if (lastBackupTimeBuilder_ == null) {
lastBackupTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastBackupTime(),
getParentForChildren(),
isClean());
lastBackupTime_ = null;
}
return lastBackupTimeBuilder_;
}
private com.google.protobuf.Timestamp nextBackupTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextBackupTimeBuilder_;
/**
* .google.protobuf.Timestamp next_backup_time = 10;
* @return Whether the nextBackupTime field is set.
*/
public boolean hasNextBackupTime() {
return nextBackupTimeBuilder_ != null || nextBackupTime_ != null;
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
* @return The nextBackupTime.
*/
public com.google.protobuf.Timestamp getNextBackupTime() {
if (nextBackupTimeBuilder_ == null) {
return nextBackupTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextBackupTime_;
} else {
return nextBackupTimeBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
public Builder setNextBackupTime(com.google.protobuf.Timestamp value) {
if (nextBackupTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nextBackupTime_ = value;
onChanged();
} else {
nextBackupTimeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
public Builder setNextBackupTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (nextBackupTimeBuilder_ == null) {
nextBackupTime_ = builderForValue.build();
onChanged();
} else {
nextBackupTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
public Builder mergeNextBackupTime(com.google.protobuf.Timestamp value) {
if (nextBackupTimeBuilder_ == null) {
if (nextBackupTime_ != null) {
nextBackupTime_ =
com.google.protobuf.Timestamp.newBuilder(nextBackupTime_).mergeFrom(value).buildPartial();
} else {
nextBackupTime_ = value;
}
onChanged();
} else {
nextBackupTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
public Builder clearNextBackupTime() {
if (nextBackupTimeBuilder_ == null) {
nextBackupTime_ = null;
onChanged();
} else {
nextBackupTime_ = null;
nextBackupTimeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
public com.google.protobuf.Timestamp.Builder getNextBackupTimeBuilder() {
onChanged();
return getNextBackupTimeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
public com.google.protobuf.TimestampOrBuilder getNextBackupTimeOrBuilder() {
if (nextBackupTimeBuilder_ != null) {
return nextBackupTimeBuilder_.getMessageOrBuilder();
} else {
return nextBackupTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : nextBackupTime_;
}
}
/**
* .google.protobuf.Timestamp next_backup_time = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getNextBackupTimeFieldBuilder() {
if (nextBackupTimeBuilder_ == null) {
nextBackupTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getNextBackupTime(),
getParentForChildren(),
isClean());
nextBackupTime_ = null;
}
return nextBackupTimeBuilder_;
}
private java.lang.Object resourceId_ = "";
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @return The resourceId.
*/
public java.lang.String getResourceId() {
java.lang.Object ref = resourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @return The bytes for resourceId.
*/
public com.google.protobuf.ByteString
getResourceIdBytes() {
java.lang.Object ref = resourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceId_ = value;
onChanged();
return this;
}
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = getDefaultInstance().getResourceId();
onChanged();
return this;
}
/**
*
* Resource Identifier is used to identify Compute Cloud instance in backup service.
*
*
* string resource_id = 11;
* @param value The bytes for resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceId_ = value;
onChanged();
return this;
}
private boolean isActive_ ;
/**
*
* Status `is_active` shows whether current Compute Cloud instance controls Cloud Backup resource.
* If status `is_active` is false it means Compute Cloud instance is not able to manipulate
* Cloud Backup resource.
*
*
* bool is_active = 12;
* @return The isActive.
*/
@java.lang.Override
public boolean getIsActive() {
return isActive_;
}
/**
*
* Status `is_active` shows whether current Compute Cloud instance controls Cloud Backup resource.
* If status `is_active` is false it means Compute Cloud instance is not able to manipulate
* Cloud Backup resource.
*
*
* bool is_active = 12;
* @param value The isActive to set.
* @return This builder for chaining.
*/
public Builder setIsActive(boolean value) {
isActive_ = value;
onChanged();
return this;
}
/**
*
* Status `is_active` shows whether current Compute Cloud instance controls Cloud Backup resource.
* If status `is_active` is false it means Compute Cloud instance is not able to manipulate
* Cloud Backup resource.
*
*
* bool is_active = 12;
* @return This builder for chaining.
*/
public Builder clearIsActive() {
isActive_ = false;
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.backup.v1.Resource)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.Resource)
private static final yandex.cloud.api.backup.v1.ResourceOuterClass.Resource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.ResourceOuterClass.Resource();
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Resource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Resource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Resource(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.backup.v1.ResourceOuterClass.Resource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProgressOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.Progress)
com.google.protobuf.MessageOrBuilder {
/**
* int64 current = 1;
* @return The current.
*/
long getCurrent();
/**
* int64 total = 2;
* @return The total.
*/
long getTotal();
}
/**
* Protobuf type {@code yandex.cloud.backup.v1.Progress}
*/
public static final class Progress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.Progress)
ProgressOrBuilder {
private static final long serialVersionUID = 0L;
// Use Progress.newBuilder() to construct.
private Progress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Progress() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Progress();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Progress(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
current_ = input.readInt64();
break;
}
case 16: {
total_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Progress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Progress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.backup.v1.ResourceOuterClass.Progress.class, yandex.cloud.api.backup.v1.ResourceOuterClass.Progress.Builder.class);
}
public static final int CURRENT_FIELD_NUMBER = 1;
private long current_;
/**
* int64 current = 1;
* @return The current.
*/
@java.lang.Override
public long getCurrent() {
return current_;
}
public static final int TOTAL_FIELD_NUMBER = 2;
private long total_;
/**
* int64 total = 2;
* @return The total.
*/
@java.lang.Override
public long getTotal() {
return total_;
}
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 (current_ != 0L) {
output.writeInt64(1, current_);
}
if (total_ != 0L) {
output.writeInt64(2, total_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (current_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, current_);
}
if (total_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, total_);
}
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.backup.v1.ResourceOuterClass.Progress)) {
return super.equals(obj);
}
yandex.cloud.api.backup.v1.ResourceOuterClass.Progress other = (yandex.cloud.api.backup.v1.ResourceOuterClass.Progress) obj;
if (getCurrent()
!= other.getCurrent()) return false;
if (getTotal()
!= other.getTotal()) 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) + CURRENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCurrent());
hash = (37 * hash) + TOTAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotal());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress 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.backup.v1.ResourceOuterClass.Progress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress 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.backup.v1.ResourceOuterClass.Progress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress 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.backup.v1.ResourceOuterClass.Progress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress 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.backup.v1.ResourceOuterClass.Progress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress 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.backup.v1.ResourceOuterClass.Progress 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.backup.v1.Progress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.Progress)
yandex.cloud.api.backup.v1.ResourceOuterClass.ProgressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Progress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Progress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.backup.v1.ResourceOuterClass.Progress.class, yandex.cloud.api.backup.v1.ResourceOuterClass.Progress.Builder.class);
}
// Construct using yandex.cloud.api.backup.v1.ResourceOuterClass.Progress.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();
current_ = 0L;
total_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.internal_static_yandex_cloud_backup_v1_Progress_descriptor;
}
@java.lang.Override
public yandex.cloud.api.backup.v1.ResourceOuterClass.Progress getDefaultInstanceForType() {
return yandex.cloud.api.backup.v1.ResourceOuterClass.Progress.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.backup.v1.ResourceOuterClass.Progress build() {
yandex.cloud.api.backup.v1.ResourceOuterClass.Progress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.backup.v1.ResourceOuterClass.Progress buildPartial() {
yandex.cloud.api.backup.v1.ResourceOuterClass.Progress result = new yandex.cloud.api.backup.v1.ResourceOuterClass.Progress(this);
result.current_ = current_;
result.total_ = total_;
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.backup.v1.ResourceOuterClass.Progress) {
return mergeFrom((yandex.cloud.api.backup.v1.ResourceOuterClass.Progress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.backup.v1.ResourceOuterClass.Progress other) {
if (other == yandex.cloud.api.backup.v1.ResourceOuterClass.Progress.getDefaultInstance()) return this;
if (other.getCurrent() != 0L) {
setCurrent(other.getCurrent());
}
if (other.getTotal() != 0L) {
setTotal(other.getTotal());
}
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.backup.v1.ResourceOuterClass.Progress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.backup.v1.ResourceOuterClass.Progress) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long current_ ;
/**
* int64 current = 1;
* @return The current.
*/
@java.lang.Override
public long getCurrent() {
return current_;
}
/**
* int64 current = 1;
* @param value The current to set.
* @return This builder for chaining.
*/
public Builder setCurrent(long value) {
current_ = value;
onChanged();
return this;
}
/**
* int64 current = 1;
* @return This builder for chaining.
*/
public Builder clearCurrent() {
current_ = 0L;
onChanged();
return this;
}
private long total_ ;
/**
* int64 total = 2;
* @return The total.
*/
@java.lang.Override
public long getTotal() {
return total_;
}
/**
* int64 total = 2;
* @param value The total to set.
* @return This builder for chaining.
*/
public Builder setTotal(long value) {
total_ = value;
onChanged();
return this;
}
/**
* int64 total = 2;
* @return This builder for chaining.
*/
public Builder clearTotal() {
total_ = 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.backup.v1.Progress)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.Progress)
private static final yandex.cloud.api.backup.v1.ResourceOuterClass.Progress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.ResourceOuterClass.Progress();
}
public static yandex.cloud.api.backup.v1.ResourceOuterClass.Progress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser © 2015 - 2025 Weber Informatics LLC | Privacy Policy