com.google.cloud.backupdr.v1.Backup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-backupdr-v1 Show documentation
Show all versions of proto-google-cloud-backupdr-v1 Show documentation
Proto library for google-cloud-backupdr
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/backupdr/v1/backupvault.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.backupdr.v1;
/**
*
*
*
* Message describing a Backup object.
*
*
* Protobuf type {@code google.cloud.backupdr.v1.Backup}
*/
public final class Backup extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.backupdr.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() {
name_ = "";
description_ = "";
etag_ = "";
state_ = 0;
serviceLocks_ = java.util.Collections.emptyList();
backupApplianceLocks_ = java.util.Collections.emptyList();
backupType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Backup();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.backupdr.v1.Backup.class,
com.google.cloud.backupdr.v1.Backup.Builder.class);
}
/**
*
*
*
* Holds the state of the backup resource.
*
*
* Protobuf enum {@code google.cloud.backupdr.v1.Backup.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* State not set.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The backup is being created.
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
*
*
* The backup has been created and is fully usable.
*
*
* ACTIVE = 2;
*/
ACTIVE(2),
/**
*
*
*
* The backup is being deleted.
*
*
* DELETING = 3;
*/
DELETING(3),
/**
*
*
*
* The backup is experiencing an issue and might be unusable.
*
*
* ERROR = 4;
*/
ERROR(4),
UNRECOGNIZED(-1),
;
/**
*
*
*
* State not set.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The backup is being created.
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
*
*
* The backup has been created and is fully usable.
*
*
* ACTIVE = 2;
*/
public static final int ACTIVE_VALUE = 2;
/**
*
*
*
* The backup is being deleted.
*
*
* DELETING = 3;
*/
public static final int DELETING_VALUE = 3;
/**
*
*
*
* The backup is experiencing an issue and might be unusable.
*
*
* ERROR = 4;
*/
public static final int ERROR_VALUE = 4;
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 State 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 State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return CREATING;
case 2:
return ACTIVE;
case 3:
return DELETING;
case 4:
return ERROR;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.backupdr.v1.Backup.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State 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 State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.Backup.State)
}
/**
*
*
*
* Type of the backup, scheduled or ondemand.
*
*
* Protobuf enum {@code google.cloud.backupdr.v1.Backup.BackupType}
*/
public enum BackupType implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Backup type is unspecified.
*
*
* BACKUP_TYPE_UNSPECIFIED = 0;
*/
BACKUP_TYPE_UNSPECIFIED(0),
/**
*
*
*
* Scheduled backup.
*
*
* SCHEDULED = 1;
*/
SCHEDULED(1),
/**
*
*
*
* On demand backup.
*
*
* ON_DEMAND = 2;
*/
ON_DEMAND(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Backup type is unspecified.
*
*
* BACKUP_TYPE_UNSPECIFIED = 0;
*/
public static final int BACKUP_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Scheduled backup.
*
*
* SCHEDULED = 1;
*/
public static final int SCHEDULED_VALUE = 1;
/**
*
*
*
* On demand backup.
*
*
* ON_DEMAND = 2;
*/
public static final int ON_DEMAND_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BackupType 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 BackupType forNumber(int value) {
switch (value) {
case 0:
return BACKUP_TYPE_UNSPECIFIED;
case 1:
return SCHEDULED;
case 2:
return ON_DEMAND;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BackupType findValueByNumber(int number) {
return BackupType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.backupdr.v1.Backup.getDescriptor().getEnumTypes().get(1);
}
private static final BackupType[] VALUES = values();
public static BackupType 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 BackupType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.Backup.BackupType)
}
public interface GCPBackupPlanInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @return The backupPlan.
*/
java.lang.String getBackupPlan();
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for backupPlan.
*/
com.google.protobuf.ByteString getBackupPlanBytes();
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @return The backupPlanRuleId.
*/
java.lang.String getBackupPlanRuleId();
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @return The bytes for backupPlanRuleId.
*/
com.google.protobuf.ByteString getBackupPlanRuleIdBytes();
}
/**
*
*
*
* GCPBackupPlanInfo captures the plan configuration details of Google Cloud
* resources at the time of backup.
*
*
* Protobuf type {@code google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo}
*/
public static final class GCPBackupPlanInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo)
GCPBackupPlanInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GCPBackupPlanInfo.newBuilder() to construct.
private GCPBackupPlanInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GCPBackupPlanInfo() {
backupPlan_ = "";
backupPlanRuleId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GCPBackupPlanInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_GCPBackupPlanInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_GCPBackupPlanInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.class,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.Builder.class);
}
public static final int BACKUP_PLAN_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object backupPlan_ = "";
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @return The backupPlan.
*/
@java.lang.Override
public java.lang.String getBackupPlan() {
java.lang.Object ref = backupPlan_;
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();
backupPlan_ = s;
return s;
}
}
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for backupPlan.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBackupPlanBytes() {
java.lang.Object ref = backupPlan_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
backupPlan_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKUP_PLAN_RULE_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object backupPlanRuleId_ = "";
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @return The backupPlanRuleId.
*/
@java.lang.Override
public java.lang.String getBackupPlanRuleId() {
java.lang.Object ref = backupPlanRuleId_;
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();
backupPlanRuleId_ = s;
return s;
}
}
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @return The bytes for backupPlanRuleId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBackupPlanRuleIdBytes() {
java.lang.Object ref = backupPlanRuleId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
backupPlanRuleId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlan_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backupPlan_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlanRuleId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, backupPlanRuleId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlan_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backupPlan_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlanRuleId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, backupPlanRuleId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo)) {
return super.equals(obj);
}
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo other =
(com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) obj;
if (!getBackupPlan().equals(other.getBackupPlan())) return false;
if (!getBackupPlanRuleId().equals(other.getBackupPlanRuleId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BACKUP_PLAN_FIELD_NUMBER;
hash = (53 * hash) + getBackupPlan().hashCode();
hash = (37 * hash) + BACKUP_PLAN_RULE_ID_FIELD_NUMBER;
hash = (53 * hash) + getBackupPlanRuleId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo 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;
}
/**
*
*
*
* GCPBackupPlanInfo captures the plan configuration details of Google Cloud
* resources at the time of backup.
*
*
* Protobuf type {@code google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo)
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_GCPBackupPlanInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_GCPBackupPlanInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.class,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.Builder.class);
}
// Construct using com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
backupPlan_ = "";
backupPlanRuleId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_GCPBackupPlanInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo getDefaultInstanceForType() {
return com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo build() {
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo buildPartial() {
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo result =
new com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.backupPlan_ = backupPlan_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.backupPlanRuleId_ = backupPlanRuleId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) {
return mergeFrom((com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo other) {
if (other == com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance())
return this;
if (!other.getBackupPlan().isEmpty()) {
backupPlan_ = other.backupPlan_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getBackupPlanRuleId().isEmpty()) {
backupPlanRuleId_ = other.backupPlanRuleId_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
backupPlan_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
backupPlanRuleId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object backupPlan_ = "";
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @return The backupPlan.
*/
public java.lang.String getBackupPlan() {
java.lang.Object ref = backupPlan_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
backupPlan_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for backupPlan.
*/
public com.google.protobuf.ByteString getBackupPlanBytes() {
java.lang.Object ref = backupPlan_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
backupPlan_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @param value The backupPlan to set.
* @return This builder for chaining.
*/
public Builder setBackupPlan(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
backupPlan_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @return This builder for chaining.
*/
public Builder clearBackupPlan() {
backupPlan_ = getDefaultInstance().getBackupPlan();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Resource name of backup plan by which workload is protected at the time
* of the backup.
* Format:
* projects/{project}/locations/{location}/backupPlans/{backupPlanId}
*
*
* string backup_plan = 1 [(.google.api.resource_reference) = { ... }
*
* @param value The bytes for backupPlan to set.
* @return This builder for chaining.
*/
public Builder setBackupPlanBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
backupPlan_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object backupPlanRuleId_ = "";
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @return The backupPlanRuleId.
*/
public java.lang.String getBackupPlanRuleId() {
java.lang.Object ref = backupPlanRuleId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
backupPlanRuleId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @return The bytes for backupPlanRuleId.
*/
public com.google.protobuf.ByteString getBackupPlanRuleIdBytes() {
java.lang.Object ref = backupPlanRuleId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
backupPlanRuleId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @param value The backupPlanRuleId to set.
* @return This builder for chaining.
*/
public Builder setBackupPlanRuleId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
backupPlanRuleId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @return This builder for chaining.
*/
public Builder clearBackupPlanRuleId() {
backupPlanRuleId_ = getDefaultInstance().getBackupPlanRuleId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The rule id of the backup plan which triggered this backup in case of
* scheduled backup or used for
*
*
* string backup_plan_rule_id = 2;
*
* @param value The bytes for backupPlanRuleId to set.
* @return This builder for chaining.
*/
public Builder setBackupPlanRuleIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
backupPlanRuleId_ = value;
bitField0_ |= 0x00000002;
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:google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo)
private static final com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo();
}
public static com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GCPBackupPlanInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int backupPropertiesCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object backupProperties_;
public enum BackupPropertiesCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
COMPUTE_INSTANCE_BACKUP_PROPERTIES(19),
BACKUP_APPLIANCE_BACKUP_PROPERTIES(21),
BACKUPPROPERTIES_NOT_SET(0);
private final int value;
private BackupPropertiesCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BackupPropertiesCase valueOf(int value) {
return forNumber(value);
}
public static BackupPropertiesCase forNumber(int value) {
switch (value) {
case 19:
return COMPUTE_INSTANCE_BACKUP_PROPERTIES;
case 21:
return BACKUP_APPLIANCE_BACKUP_PROPERTIES;
case 0:
return BACKUPPROPERTIES_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public BackupPropertiesCase getBackupPropertiesCase() {
return BackupPropertiesCase.forNumber(backupPropertiesCase_);
}
private int planInfoCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object planInfo_;
public enum PlanInfoCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCP_BACKUP_PLAN_INFO(22),
PLANINFO_NOT_SET(0);
private final int value;
private PlanInfoCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PlanInfoCase valueOf(int value) {
return forNumber(value);
}
public static PlanInfoCase forNumber(int value) {
switch (value) {
case 22:
return GCP_BACKUP_PLAN_INFO;
case 0:
return PLANINFO_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public PlanInfoCase getPlanInfoCase() {
return PlanInfoCase.forNumber(planInfoCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. Identifier. Name of the backup to create. It must have the
* format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
* `{backup}` cannot be changed after creation. It must be between 3-63
* characters long and must be unique within the datasource.
*
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* Output only. Identifier. Name of the backup to create. It must have the
* format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
* `{backup}` cannot be changed after creation. It must be between 3-63
* characters long and must be unique within the datasource.
*
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int LABELS_FIELD_NUMBER = 5;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ENFORCED_RETENTION_END_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp enforcedRetentionEndTime_;
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the enforcedRetentionEndTime field is set.
*/
@java.lang.Override
public boolean hasEnforcedRetentionEndTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The enforcedRetentionEndTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEnforcedRetentionEndTime() {
return enforcedRetentionEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: enforcedRetentionEndTime_;
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuilder() {
return enforcedRetentionEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: enforcedRetentionEndTime_;
}
public static final int EXPIRE_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp expireTime_;
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the expireTime field is set.
*/
@java.lang.Override
public boolean hasExpireTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The expireTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getExpireTime() {
return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
}
public static final int CONSISTENCY_TIME_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp consistencyTime_;
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the consistencyTime field is set.
*/
@java.lang.Override
public boolean hasConsistencyTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The consistencyTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getConsistencyTime() {
return consistencyTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: consistencyTime_;
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getConsistencyTimeOrBuilder() {
return consistencyTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: consistencyTime_;
}
public static final int ETAG_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object etag_ = "";
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the etag field is set.
*/
@java.lang.Override
public boolean hasEtag() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The etag.
*/
@java.lang.Override
public java.lang.String getEtag() {
java.lang.Object ref = etag_;
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();
etag_ = s;
return s;
}
}
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for etag.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEtagBytes() {
java.lang.Object ref = etag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
etag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 15;
private int state_ = 0;
/**
*
*
*
* Output only. The Backup resource instance state.
*
*
*
* .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. The Backup resource instance state.
*
*
*
* .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.State getState() {
com.google.cloud.backupdr.v1.Backup.State result =
com.google.cloud.backupdr.v1.Backup.State.forNumber(state_);
return result == null ? com.google.cloud.backupdr.v1.Backup.State.UNRECOGNIZED : result;
}
public static final int SERVICE_LOCKS_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private java.util.List serviceLocks_;
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List getServiceLocksList() {
return serviceLocks_;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.backupdr.v1.BackupLockOrBuilder>
getServiceLocksOrBuilderList() {
return serviceLocks_;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public int getServiceLocksCount() {
return serviceLocks_.size();
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupLock getServiceLocks(int index) {
return serviceLocks_.get(index);
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupLockOrBuilder getServiceLocksOrBuilder(int index) {
return serviceLocks_.get(index);
}
public static final int BACKUP_APPLIANCE_LOCKS_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private java.util.List backupApplianceLocks_;
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public java.util.List getBackupApplianceLocksList() {
return backupApplianceLocks_;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.backupdr.v1.BackupLockOrBuilder>
getBackupApplianceLocksOrBuilderList() {
return backupApplianceLocks_;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public int getBackupApplianceLocksCount() {
return backupApplianceLocks_.size();
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupLock getBackupApplianceLocks(int index) {
return backupApplianceLocks_.get(index);
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupLockOrBuilder getBackupApplianceLocksOrBuilder(
int index) {
return backupApplianceLocks_.get(index);
}
public static final int COMPUTE_INSTANCE_BACKUP_PROPERTIES_FIELD_NUMBER = 19;
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the computeInstanceBackupProperties field is set.
*/
@java.lang.Override
public boolean hasComputeInstanceBackupProperties() {
return backupPropertiesCase_ == 19;
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The computeInstanceBackupProperties.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties
getComputeInstanceBackupProperties() {
if (backupPropertiesCase_ == 19) {
return (com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.getDefaultInstance();
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesOrBuilder
getComputeInstanceBackupPropertiesOrBuilder() {
if (backupPropertiesCase_ == 19) {
return (com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.getDefaultInstance();
}
public static final int BACKUP_APPLIANCE_BACKUP_PROPERTIES_FIELD_NUMBER = 21;
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the backupApplianceBackupProperties field is set.
*/
@java.lang.Override
public boolean hasBackupApplianceBackupProperties() {
return backupPropertiesCase_ == 21;
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The backupApplianceBackupProperties.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupApplianceBackupProperties
getBackupApplianceBackupProperties() {
if (backupPropertiesCase_ == 21) {
return (com.google.cloud.backupdr.v1.BackupApplianceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.getDefaultInstance();
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupApplianceBackupPropertiesOrBuilder
getBackupApplianceBackupPropertiesOrBuilder() {
if (backupPropertiesCase_ == 21) {
return (com.google.cloud.backupdr.v1.BackupApplianceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.getDefaultInstance();
}
public static final int BACKUP_TYPE_FIELD_NUMBER = 20;
private int backupType_ = 0;
/**
*
*
*
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
*
*
* .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for backupType.
*/
@java.lang.Override
public int getBackupTypeValue() {
return backupType_;
}
/**
*
*
*
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
*
*
* .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The backupType.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.BackupType getBackupType() {
com.google.cloud.backupdr.v1.Backup.BackupType result =
com.google.cloud.backupdr.v1.Backup.BackupType.forNumber(backupType_);
return result == null ? com.google.cloud.backupdr.v1.Backup.BackupType.UNRECOGNIZED : result;
}
public static final int GCP_BACKUP_PLAN_INFO_FIELD_NUMBER = 22;
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the gcpBackupPlanInfo field is set.
*/
@java.lang.Override
public boolean hasGcpBackupPlanInfo() {
return planInfoCase_ == 22;
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The gcpBackupPlanInfo.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo getGcpBackupPlanInfo() {
if (planInfoCase_ == 22) {
return (com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_;
}
return com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance();
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoOrBuilder
getGcpBackupPlanInfoOrBuilder() {
if (planInfoCase_ == 22) {
return (com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_;
}
return com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance();
}
public static final int RESOURCE_SIZE_BYTES_FIELD_NUMBER = 23;
private long resourceSizeBytes_ = 0L;
/**
*
*
*
* Output only. source resource size in bytes at the time of the backup.
*
*
* int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceSizeBytes.
*/
@java.lang.Override
public long getResourceSizeBytes() {
return resourceSizeBytes_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getCreateTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getUpdateTime());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5);
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getEnforcedRetentionEndTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getExpireTime());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(9, getConsistencyTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_);
}
if (state_ != com.google.cloud.backupdr.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(15, state_);
}
for (int i = 0; i < serviceLocks_.size(); i++) {
output.writeMessage(17, serviceLocks_.get(i));
}
for (int i = 0; i < backupApplianceLocks_.size(); i++) {
output.writeMessage(18, backupApplianceLocks_.get(i));
}
if (backupPropertiesCase_ == 19) {
output.writeMessage(
19, (com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties) backupProperties_);
}
if (backupType_
!= com.google.cloud.backupdr.v1.Backup.BackupType.BACKUP_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(20, backupType_);
}
if (backupPropertiesCase_ == 21) {
output.writeMessage(
21, (com.google.cloud.backupdr.v1.BackupApplianceBackupProperties) backupProperties_);
}
if (planInfoCase_ == 22) {
output.writeMessage(22, (com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_);
}
if (resourceSizeBytes_ != 0L) {
output.writeInt64(23, resourceSizeBytes_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__);
}
if (((bitField0_ & 0x00000008) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, getEnforcedRetentionEndTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExpireTime());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getConsistencyTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_);
}
if (state_ != com.google.cloud.backupdr.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_);
}
for (int i = 0; i < serviceLocks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, serviceLocks_.get(i));
}
for (int i = 0; i < backupApplianceLocks_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
18, backupApplianceLocks_.get(i));
}
if (backupPropertiesCase_ == 19) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
19, (com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties) backupProperties_);
}
if (backupType_
!= com.google.cloud.backupdr.v1.Backup.BackupType.BACKUP_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, backupType_);
}
if (backupPropertiesCase_ == 21) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
21, (com.google.cloud.backupdr.v1.BackupApplianceBackupProperties) backupProperties_);
}
if (planInfoCase_ == 22) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
22, (com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_);
}
if (resourceSizeBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, resourceSizeBytes_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.backupdr.v1.Backup)) {
return super.equals(obj);
}
com.google.cloud.backupdr.v1.Backup other = (com.google.cloud.backupdr.v1.Backup) obj;
if (!getName().equals(other.getName())) return false;
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription().equals(other.getDescription())) return false;
}
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (hasEnforcedRetentionEndTime() != other.hasEnforcedRetentionEndTime()) return false;
if (hasEnforcedRetentionEndTime()) {
if (!getEnforcedRetentionEndTime().equals(other.getEnforcedRetentionEndTime())) return false;
}
if (hasExpireTime() != other.hasExpireTime()) return false;
if (hasExpireTime()) {
if (!getExpireTime().equals(other.getExpireTime())) return false;
}
if (hasConsistencyTime() != other.hasConsistencyTime()) return false;
if (hasConsistencyTime()) {
if (!getConsistencyTime().equals(other.getConsistencyTime())) return false;
}
if (hasEtag() != other.hasEtag()) return false;
if (hasEtag()) {
if (!getEtag().equals(other.getEtag())) return false;
}
if (state_ != other.state_) return false;
if (!getServiceLocksList().equals(other.getServiceLocksList())) return false;
if (!getBackupApplianceLocksList().equals(other.getBackupApplianceLocksList())) return false;
if (backupType_ != other.backupType_) return false;
if (getResourceSizeBytes() != other.getResourceSizeBytes()) return false;
if (!getBackupPropertiesCase().equals(other.getBackupPropertiesCase())) return false;
switch (backupPropertiesCase_) {
case 19:
if (!getComputeInstanceBackupProperties()
.equals(other.getComputeInstanceBackupProperties())) return false;
break;
case 21:
if (!getBackupApplianceBackupProperties()
.equals(other.getBackupApplianceBackupProperties())) return false;
break;
case 0:
default:
}
if (!getPlanInfoCase().equals(other.getPlanInfoCase())) return false;
switch (planInfoCase_) {
case 22:
if (!getGcpBackupPlanInfo().equals(other.getGcpBackupPlanInfo())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (hasEnforcedRetentionEndTime()) {
hash = (37 * hash) + ENFORCED_RETENTION_END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEnforcedRetentionEndTime().hashCode();
}
if (hasExpireTime()) {
hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getExpireTime().hashCode();
}
if (hasConsistencyTime()) {
hash = (37 * hash) + CONSISTENCY_TIME_FIELD_NUMBER;
hash = (53 * hash) + getConsistencyTime().hashCode();
}
if (hasEtag()) {
hash = (37 * hash) + ETAG_FIELD_NUMBER;
hash = (53 * hash) + getEtag().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (getServiceLocksCount() > 0) {
hash = (37 * hash) + SERVICE_LOCKS_FIELD_NUMBER;
hash = (53 * hash) + getServiceLocksList().hashCode();
}
if (getBackupApplianceLocksCount() > 0) {
hash = (37 * hash) + BACKUP_APPLIANCE_LOCKS_FIELD_NUMBER;
hash = (53 * hash) + getBackupApplianceLocksList().hashCode();
}
hash = (37 * hash) + BACKUP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + backupType_;
hash = (37 * hash) + RESOURCE_SIZE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResourceSizeBytes());
switch (backupPropertiesCase_) {
case 19:
hash = (37 * hash) + COMPUTE_INSTANCE_BACKUP_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getComputeInstanceBackupProperties().hashCode();
break;
case 21:
hash = (37 * hash) + BACKUP_APPLIANCE_BACKUP_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getBackupApplianceBackupProperties().hashCode();
break;
case 0:
default:
}
switch (planInfoCase_) {
case 22:
hash = (37 * hash) + GCP_BACKUP_PLAN_INFO_FIELD_NUMBER;
hash = (53 * hash) + getGcpBackupPlanInfo().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.backupdr.v1.Backup parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.backupdr.v1.Backup parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.backupdr.v1.Backup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.backupdr.v1.Backup parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.backupdr.v1.Backup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.backupdr.v1.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 com.google.cloud.backupdr.v1.Backup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.backupdr.v1.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 com.google.cloud.backupdr.v1.Backup parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.backupdr.v1.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(com.google.cloud.backupdr.v1.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;
}
/**
*
*
*
* Message describing a Backup object.
*
*
* Protobuf type {@code google.cloud.backupdr.v1.Backup}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.Backup)
com.google.cloud.backupdr.v1.BackupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetMutableLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.backupdr.v1.Backup.class,
com.google.cloud.backupdr.v1.Backup.Builder.class);
}
// Construct using com.google.cloud.backupdr.v1.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) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getEnforcedRetentionEndTimeFieldBuilder();
getExpireTimeFieldBuilder();
getConsistencyTimeFieldBuilder();
getServiceLocksFieldBuilder();
getBackupApplianceLocksFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
description_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
internalGetMutableLabels().clear();
enforcedRetentionEndTime_ = null;
if (enforcedRetentionEndTimeBuilder_ != null) {
enforcedRetentionEndTimeBuilder_.dispose();
enforcedRetentionEndTimeBuilder_ = null;
}
expireTime_ = null;
if (expireTimeBuilder_ != null) {
expireTimeBuilder_.dispose();
expireTimeBuilder_ = null;
}
consistencyTime_ = null;
if (consistencyTimeBuilder_ != null) {
consistencyTimeBuilder_.dispose();
consistencyTimeBuilder_ = null;
}
etag_ = "";
state_ = 0;
if (serviceLocksBuilder_ == null) {
serviceLocks_ = java.util.Collections.emptyList();
} else {
serviceLocks_ = null;
serviceLocksBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (backupApplianceLocksBuilder_ == null) {
backupApplianceLocks_ = java.util.Collections.emptyList();
} else {
backupApplianceLocks_ = null;
backupApplianceLocksBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (computeInstanceBackupPropertiesBuilder_ != null) {
computeInstanceBackupPropertiesBuilder_.clear();
}
if (backupApplianceBackupPropertiesBuilder_ != null) {
backupApplianceBackupPropertiesBuilder_.clear();
}
backupType_ = 0;
if (gcpBackupPlanInfoBuilder_ != null) {
gcpBackupPlanInfoBuilder_.clear();
}
resourceSizeBytes_ = 0L;
backupPropertiesCase_ = 0;
backupProperties_ = null;
planInfoCase_ = 0;
planInfo_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.backupdr.v1.BackupVaultProto
.internal_static_google_cloud_backupdr_v1_Backup_descriptor;
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup getDefaultInstanceForType() {
return com.google.cloud.backupdr.v1.Backup.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup build() {
com.google.cloud.backupdr.v1.Backup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup buildPartial() {
com.google.cloud.backupdr.v1.Backup result = new com.google.cloud.backupdr.v1.Backup(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.backupdr.v1.Backup result) {
if (serviceLocksBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)) {
serviceLocks_ = java.util.Collections.unmodifiableList(serviceLocks_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.serviceLocks_ = serviceLocks_;
} else {
result.serviceLocks_ = serviceLocksBuilder_.build();
}
if (backupApplianceLocksBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
backupApplianceLocks_ = java.util.Collections.unmodifiableList(backupApplianceLocks_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.backupApplianceLocks_ = backupApplianceLocks_;
} else {
result.backupApplianceLocks_ = backupApplianceLocksBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.backupdr.v1.Backup result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.description_ = description_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.enforcedRetentionEndTime_ =
enforcedRetentionEndTimeBuilder_ == null
? enforcedRetentionEndTime_
: enforcedRetentionEndTimeBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.consistencyTime_ =
consistencyTimeBuilder_ == null ? consistencyTime_ : consistencyTimeBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.etag_ = etag_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.backupType_ = backupType_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.resourceSizeBytes_ = resourceSizeBytes_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.backupdr.v1.Backup result) {
result.backupPropertiesCase_ = backupPropertiesCase_;
result.backupProperties_ = this.backupProperties_;
if (backupPropertiesCase_ == 19 && computeInstanceBackupPropertiesBuilder_ != null) {
result.backupProperties_ = computeInstanceBackupPropertiesBuilder_.build();
}
if (backupPropertiesCase_ == 21 && backupApplianceBackupPropertiesBuilder_ != null) {
result.backupProperties_ = backupApplianceBackupPropertiesBuilder_.build();
}
result.planInfoCase_ = planInfoCase_;
result.planInfo_ = this.planInfo_;
if (planInfoCase_ == 22 && gcpBackupPlanInfoBuilder_ != null) {
result.planInfo_ = gcpBackupPlanInfoBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.backupdr.v1.Backup) {
return mergeFrom((com.google.cloud.backupdr.v1.Backup) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) {
if (other == com.google.cloud.backupdr.v1.Backup.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDescription()) {
description_ = other.description_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000010;
if (other.hasEnforcedRetentionEndTime()) {
mergeEnforcedRetentionEndTime(other.getEnforcedRetentionEndTime());
}
if (other.hasExpireTime()) {
mergeExpireTime(other.getExpireTime());
}
if (other.hasConsistencyTime()) {
mergeConsistencyTime(other.getConsistencyTime());
}
if (other.hasEtag()) {
etag_ = other.etag_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (serviceLocksBuilder_ == null) {
if (!other.serviceLocks_.isEmpty()) {
if (serviceLocks_.isEmpty()) {
serviceLocks_ = other.serviceLocks_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureServiceLocksIsMutable();
serviceLocks_.addAll(other.serviceLocks_);
}
onChanged();
}
} else {
if (!other.serviceLocks_.isEmpty()) {
if (serviceLocksBuilder_.isEmpty()) {
serviceLocksBuilder_.dispose();
serviceLocksBuilder_ = null;
serviceLocks_ = other.serviceLocks_;
bitField0_ = (bitField0_ & ~0x00000400);
serviceLocksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getServiceLocksFieldBuilder()
: null;
} else {
serviceLocksBuilder_.addAllMessages(other.serviceLocks_);
}
}
}
if (backupApplianceLocksBuilder_ == null) {
if (!other.backupApplianceLocks_.isEmpty()) {
if (backupApplianceLocks_.isEmpty()) {
backupApplianceLocks_ = other.backupApplianceLocks_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.addAll(other.backupApplianceLocks_);
}
onChanged();
}
} else {
if (!other.backupApplianceLocks_.isEmpty()) {
if (backupApplianceLocksBuilder_.isEmpty()) {
backupApplianceLocksBuilder_.dispose();
backupApplianceLocksBuilder_ = null;
backupApplianceLocks_ = other.backupApplianceLocks_;
bitField0_ = (bitField0_ & ~0x00000800);
backupApplianceLocksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getBackupApplianceLocksFieldBuilder()
: null;
} else {
backupApplianceLocksBuilder_.addAllMessages(other.backupApplianceLocks_);
}
}
}
if (other.backupType_ != 0) {
setBackupTypeValue(other.getBackupTypeValue());
}
if (other.getResourceSizeBytes() != 0L) {
setResourceSizeBytes(other.getResourceSizeBytes());
}
switch (other.getBackupPropertiesCase()) {
case COMPUTE_INSTANCE_BACKUP_PROPERTIES:
{
mergeComputeInstanceBackupProperties(other.getComputeInstanceBackupProperties());
break;
}
case BACKUP_APPLIANCE_BACKUP_PROPERTIES:
{
mergeBackupApplianceBackupProperties(other.getBackupApplianceBackupProperties());
break;
}
case BACKUPPROPERTIES_NOT_SET:
{
break;
}
}
switch (other.getPlanInfoCase()) {
case GCP_BACKUP_PLAN_INFO:
{
mergeGcpBackupPlanInfo(other.getGcpBackupPlanInfo());
break;
}
case PLANINFO_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(
getEnforcedRetentionEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 74:
{
input.readMessage(getConsistencyTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 74
case 90:
{
etag_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 90
case 120:
{
state_ = input.readEnum();
bitField0_ |= 0x00000200;
break;
} // case 120
case 138:
{
com.google.cloud.backupdr.v1.BackupLock m =
input.readMessage(
com.google.cloud.backupdr.v1.BackupLock.parser(), extensionRegistry);
if (serviceLocksBuilder_ == null) {
ensureServiceLocksIsMutable();
serviceLocks_.add(m);
} else {
serviceLocksBuilder_.addMessage(m);
}
break;
} // case 138
case 146:
{
com.google.cloud.backupdr.v1.BackupLock m =
input.readMessage(
com.google.cloud.backupdr.v1.BackupLock.parser(), extensionRegistry);
if (backupApplianceLocksBuilder_ == null) {
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.add(m);
} else {
backupApplianceLocksBuilder_.addMessage(m);
}
break;
} // case 146
case 154:
{
input.readMessage(
getComputeInstanceBackupPropertiesFieldBuilder().getBuilder(),
extensionRegistry);
backupPropertiesCase_ = 19;
break;
} // case 154
case 160:
{
backupType_ = input.readEnum();
bitField0_ |= 0x00004000;
break;
} // case 160
case 170:
{
input.readMessage(
getBackupApplianceBackupPropertiesFieldBuilder().getBuilder(),
extensionRegistry);
backupPropertiesCase_ = 21;
break;
} // case 170
case 178:
{
input.readMessage(
getGcpBackupPlanInfoFieldBuilder().getBuilder(), extensionRegistry);
planInfoCase_ = 22;
break;
} // case 178
case 184:
{
resourceSizeBytes_ = input.readInt64();
bitField0_ |= 0x00010000;
break;
} // case 184
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int backupPropertiesCase_ = 0;
private java.lang.Object backupProperties_;
public BackupPropertiesCase getBackupPropertiesCase() {
return BackupPropertiesCase.forNumber(backupPropertiesCase_);
}
public Builder clearBackupProperties() {
backupPropertiesCase_ = 0;
backupProperties_ = null;
onChanged();
return this;
}
private int planInfoCase_ = 0;
private java.lang.Object planInfo_;
public PlanInfoCase getPlanInfoCase() {
return PlanInfoCase.forNumber(planInfoCase_);
}
public Builder clearPlanInfo() {
planInfoCase_ = 0;
planInfo_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Output only. Identifier. Name of the backup to create. It must have the
* format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
* `{backup}` cannot be changed after creation. It must be between 3-63
* characters long and must be unique within the datasource.
*
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. Identifier. Name of the backup to create. It must have the
* format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
* `{backup}` cannot be changed after creation. It must be between 3-63
* characters long and must be unique within the datasource.
*
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. Identifier. Name of the backup to create. It must have the
* format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
* `{backup}` cannot be changed after creation. It must be between 3-63
* characters long and must be unique within the datasource.
*
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. Identifier. Name of the backup to create. It must have the
* format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
* `{backup}` cannot be changed after creation. It must be between 3-63
* characters long and must be unique within the datasource.
*
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. Identifier. Name of the backup to create. It must have the
* format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
* `{backup}` cannot be changed after creation. It must be between 3-63
* characters long and must be unique within the datasource.
*
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. The description of the Backup instance (2048 characters or
* less).
*
*
* optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000008);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* Output only. The time when the instance was updated.
*
*
*
* optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000010;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00000010;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
*
*
*
* Optional. Resource labels to represent user provided metadata.
* No labels currently defined.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00000010;
return this;
}
private com.google.protobuf.Timestamp enforcedRetentionEndTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
enforcedRetentionEndTimeBuilder_;
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the enforcedRetentionEndTime field is set.
*/
public boolean hasEnforcedRetentionEndTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The enforcedRetentionEndTime.
*/
public com.google.protobuf.Timestamp getEnforcedRetentionEndTime() {
if (enforcedRetentionEndTimeBuilder_ == null) {
return enforcedRetentionEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: enforcedRetentionEndTime_;
} else {
return enforcedRetentionEndTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setEnforcedRetentionEndTime(com.google.protobuf.Timestamp value) {
if (enforcedRetentionEndTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcedRetentionEndTime_ = value;
} else {
enforcedRetentionEndTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setEnforcedRetentionEndTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (enforcedRetentionEndTimeBuilder_ == null) {
enforcedRetentionEndTime_ = builderForValue.build();
} else {
enforcedRetentionEndTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeEnforcedRetentionEndTime(com.google.protobuf.Timestamp value) {
if (enforcedRetentionEndTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& enforcedRetentionEndTime_ != null
&& enforcedRetentionEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEnforcedRetentionEndTimeBuilder().mergeFrom(value);
} else {
enforcedRetentionEndTime_ = value;
}
} else {
enforcedRetentionEndTimeBuilder_.mergeFrom(value);
}
if (enforcedRetentionEndTime_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearEnforcedRetentionEndTime() {
bitField0_ = (bitField0_ & ~0x00000020);
enforcedRetentionEndTime_ = null;
if (enforcedRetentionEndTimeBuilder_ != null) {
enforcedRetentionEndTimeBuilder_.dispose();
enforcedRetentionEndTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.Timestamp.Builder getEnforcedRetentionEndTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getEnforcedRetentionEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuilder() {
if (enforcedRetentionEndTimeBuilder_ != null) {
return enforcedRetentionEndTimeBuilder_.getMessageOrBuilder();
} else {
return enforcedRetentionEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: enforcedRetentionEndTime_;
}
}
/**
*
*
*
* Optional. The backup can not be deleted before this time.
*
*
*
* optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getEnforcedRetentionEndTimeFieldBuilder() {
if (enforcedRetentionEndTimeBuilder_ == null) {
enforcedRetentionEndTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getEnforcedRetentionEndTime(), getParentForChildren(), isClean());
enforcedRetentionEndTime_ = null;
}
return enforcedRetentionEndTimeBuilder_;
}
private com.google.protobuf.Timestamp expireTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
expireTimeBuilder_;
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the expireTime field is set.
*/
public boolean hasExpireTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The expireTime.
*/
public com.google.protobuf.Timestamp getExpireTime() {
if (expireTimeBuilder_ == null) {
return expireTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: expireTime_;
} else {
return expireTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setExpireTime(com.google.protobuf.Timestamp value) {
if (expireTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expireTime_ = value;
} else {
expireTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (expireTimeBuilder_ == null) {
expireTime_ = builderForValue.build();
} else {
expireTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
if (expireTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& expireTime_ != null
&& expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getExpireTimeBuilder().mergeFrom(value);
} else {
expireTime_ = value;
}
} else {
expireTimeBuilder_.mergeFrom(value);
}
if (expireTime_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearExpireTime() {
bitField0_ = (bitField0_ & ~0x00000040);
expireTime_ = null;
if (expireTimeBuilder_ != null) {
expireTimeBuilder_.dispose();
expireTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getExpireTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
if (expireTimeBuilder_ != null) {
return expireTimeBuilder_.getMessageOrBuilder();
} else {
return expireTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: expireTime_;
}
}
/**
*
*
*
* Optional. When this backup is automatically expired.
*
*
*
* optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getExpireTimeFieldBuilder() {
if (expireTimeBuilder_ == null) {
expireTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getExpireTime(), getParentForChildren(), isClean());
expireTime_ = null;
}
return expireTimeBuilder_;
}
private com.google.protobuf.Timestamp consistencyTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
consistencyTimeBuilder_;
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the consistencyTime field is set.
*/
public boolean hasConsistencyTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The consistencyTime.
*/
public com.google.protobuf.Timestamp getConsistencyTime() {
if (consistencyTimeBuilder_ == null) {
return consistencyTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: consistencyTime_;
} else {
return consistencyTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setConsistencyTime(com.google.protobuf.Timestamp value) {
if (consistencyTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consistencyTime_ = value;
} else {
consistencyTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setConsistencyTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (consistencyTimeBuilder_ == null) {
consistencyTime_ = builderForValue.build();
} else {
consistencyTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeConsistencyTime(com.google.protobuf.Timestamp value) {
if (consistencyTimeBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& consistencyTime_ != null
&& consistencyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getConsistencyTimeBuilder().mergeFrom(value);
} else {
consistencyTime_ = value;
}
} else {
consistencyTimeBuilder_.mergeFrom(value);
}
if (consistencyTime_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearConsistencyTime() {
bitField0_ = (bitField0_ & ~0x00000080);
consistencyTime_ = null;
if (consistencyTimeBuilder_ != null) {
consistencyTimeBuilder_.dispose();
consistencyTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getConsistencyTimeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getConsistencyTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getConsistencyTimeOrBuilder() {
if (consistencyTimeBuilder_ != null) {
return consistencyTimeBuilder_.getMessageOrBuilder();
} else {
return consistencyTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: consistencyTime_;
}
}
/**
*
*
*
* Output only. The point in time when this backup was captured from the
* source.
*
*
*
* optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getConsistencyTimeFieldBuilder() {
if (consistencyTimeBuilder_ == null) {
consistencyTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getConsistencyTime(), getParentForChildren(), isClean());
consistencyTime_ = null;
}
return consistencyTimeBuilder_;
}
private java.lang.Object etag_ = "";
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the etag field is set.
*/
public boolean hasEtag() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The etag.
*/
public java.lang.String getEtag() {
java.lang.Object ref = etag_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
etag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for etag.
*/
public com.google.protobuf.ByteString getEtagBytes() {
java.lang.Object ref = etag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
etag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The etag to set.
* @return This builder for chaining.
*/
public Builder setEtag(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
etag_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*
*
* Optional. Server specified ETag to prevent updates from overwriting each
* other.
*
*
* optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for etag to set.
* @return This builder for chaining.
*/
public Builder setEtagBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
etag_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* Output only. The Backup resource instance state.
*
*
*
* .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. The Backup resource instance state.
*
*
*
* .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Output only. The Backup resource instance state.
*
*
*
* .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.State getState() {
com.google.cloud.backupdr.v1.Backup.State result =
com.google.cloud.backupdr.v1.Backup.State.forNumber(state_);
return result == null ? com.google.cloud.backupdr.v1.Backup.State.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. The Backup resource instance state.
*
*
*
* .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.backupdr.v1.Backup.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. The Backup resource instance state.
*
*
*
* .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000200);
state_ = 0;
onChanged();
return this;
}
private java.util.List serviceLocks_ =
java.util.Collections.emptyList();
private void ensureServiceLocksIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
serviceLocks_ =
new java.util.ArrayList(serviceLocks_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupLock,
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>
serviceLocksBuilder_;
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List getServiceLocksList() {
if (serviceLocksBuilder_ == null) {
return java.util.Collections.unmodifiableList(serviceLocks_);
} else {
return serviceLocksBuilder_.getMessageList();
}
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getServiceLocksCount() {
if (serviceLocksBuilder_ == null) {
return serviceLocks_.size();
} else {
return serviceLocksBuilder_.getCount();
}
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.BackupLock getServiceLocks(int index) {
if (serviceLocksBuilder_ == null) {
return serviceLocks_.get(index);
} else {
return serviceLocksBuilder_.getMessage(index);
}
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setServiceLocks(int index, com.google.cloud.backupdr.v1.BackupLock value) {
if (serviceLocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceLocksIsMutable();
serviceLocks_.set(index, value);
onChanged();
} else {
serviceLocksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setServiceLocks(
int index, com.google.cloud.backupdr.v1.BackupLock.Builder builderForValue) {
if (serviceLocksBuilder_ == null) {
ensureServiceLocksIsMutable();
serviceLocks_.set(index, builderForValue.build());
onChanged();
} else {
serviceLocksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addServiceLocks(com.google.cloud.backupdr.v1.BackupLock value) {
if (serviceLocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceLocksIsMutable();
serviceLocks_.add(value);
onChanged();
} else {
serviceLocksBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addServiceLocks(int index, com.google.cloud.backupdr.v1.BackupLock value) {
if (serviceLocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceLocksIsMutable();
serviceLocks_.add(index, value);
onChanged();
} else {
serviceLocksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addServiceLocks(
com.google.cloud.backupdr.v1.BackupLock.Builder builderForValue) {
if (serviceLocksBuilder_ == null) {
ensureServiceLocksIsMutable();
serviceLocks_.add(builderForValue.build());
onChanged();
} else {
serviceLocksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addServiceLocks(
int index, com.google.cloud.backupdr.v1.BackupLock.Builder builderForValue) {
if (serviceLocksBuilder_ == null) {
ensureServiceLocksIsMutable();
serviceLocks_.add(index, builderForValue.build());
onChanged();
} else {
serviceLocksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllServiceLocks(
java.lang.Iterable extends com.google.cloud.backupdr.v1.BackupLock> values) {
if (serviceLocksBuilder_ == null) {
ensureServiceLocksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceLocks_);
onChanged();
} else {
serviceLocksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearServiceLocks() {
if (serviceLocksBuilder_ == null) {
serviceLocks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
serviceLocksBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeServiceLocks(int index) {
if (serviceLocksBuilder_ == null) {
ensureServiceLocksIsMutable();
serviceLocks_.remove(index);
onChanged();
} else {
serviceLocksBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.BackupLock.Builder getServiceLocksBuilder(int index) {
return getServiceLocksFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.BackupLockOrBuilder getServiceLocksOrBuilder(int index) {
if (serviceLocksBuilder_ == null) {
return serviceLocks_.get(index);
} else {
return serviceLocksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List extends com.google.cloud.backupdr.v1.BackupLockOrBuilder>
getServiceLocksOrBuilderList() {
if (serviceLocksBuilder_ != null) {
return serviceLocksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(serviceLocks_);
}
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.BackupLock.Builder addServiceLocksBuilder() {
return getServiceLocksFieldBuilder()
.addBuilder(com.google.cloud.backupdr.v1.BackupLock.getDefaultInstance());
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.BackupLock.Builder addServiceLocksBuilder(int index) {
return getServiceLocksFieldBuilder()
.addBuilder(index, com.google.cloud.backupdr.v1.BackupLock.getDefaultInstance());
}
/**
*
*
*
* Output only. The list of BackupLocks taken by the service to prevent the
* deletion of the backup.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
getServiceLocksBuilderList() {
return getServiceLocksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupLock,
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>
getServiceLocksFieldBuilder() {
if (serviceLocksBuilder_ == null) {
serviceLocksBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupLock,
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>(
serviceLocks_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean());
serviceLocks_ = null;
}
return serviceLocksBuilder_;
}
private java.util.List backupApplianceLocks_ =
java.util.Collections.emptyList();
private void ensureBackupApplianceLocksIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
backupApplianceLocks_ =
new java.util.ArrayList(backupApplianceLocks_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupLock,
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>
backupApplianceLocksBuilder_;
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List getBackupApplianceLocksList() {
if (backupApplianceLocksBuilder_ == null) {
return java.util.Collections.unmodifiableList(backupApplianceLocks_);
} else {
return backupApplianceLocksBuilder_.getMessageList();
}
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public int getBackupApplianceLocksCount() {
if (backupApplianceLocksBuilder_ == null) {
return backupApplianceLocks_.size();
} else {
return backupApplianceLocksBuilder_.getCount();
}
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.backupdr.v1.BackupLock getBackupApplianceLocks(int index) {
if (backupApplianceLocksBuilder_ == null) {
return backupApplianceLocks_.get(index);
} else {
return backupApplianceLocksBuilder_.getMessage(index);
}
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setBackupApplianceLocks(
int index, com.google.cloud.backupdr.v1.BackupLock value) {
if (backupApplianceLocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.set(index, value);
onChanged();
} else {
backupApplianceLocksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setBackupApplianceLocks(
int index, com.google.cloud.backupdr.v1.BackupLock.Builder builderForValue) {
if (backupApplianceLocksBuilder_ == null) {
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.set(index, builderForValue.build());
onChanged();
} else {
backupApplianceLocksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addBackupApplianceLocks(com.google.cloud.backupdr.v1.BackupLock value) {
if (backupApplianceLocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.add(value);
onChanged();
} else {
backupApplianceLocksBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addBackupApplianceLocks(
int index, com.google.cloud.backupdr.v1.BackupLock value) {
if (backupApplianceLocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.add(index, value);
onChanged();
} else {
backupApplianceLocksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addBackupApplianceLocks(
com.google.cloud.backupdr.v1.BackupLock.Builder builderForValue) {
if (backupApplianceLocksBuilder_ == null) {
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.add(builderForValue.build());
onChanged();
} else {
backupApplianceLocksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addBackupApplianceLocks(
int index, com.google.cloud.backupdr.v1.BackupLock.Builder builderForValue) {
if (backupApplianceLocksBuilder_ == null) {
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.add(index, builderForValue.build());
onChanged();
} else {
backupApplianceLocksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder addAllBackupApplianceLocks(
java.lang.Iterable extends com.google.cloud.backupdr.v1.BackupLock> values) {
if (backupApplianceLocksBuilder_ == null) {
ensureBackupApplianceLocksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupApplianceLocks_);
onChanged();
} else {
backupApplianceLocksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearBackupApplianceLocks() {
if (backupApplianceLocksBuilder_ == null) {
backupApplianceLocks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
backupApplianceLocksBuilder_.clear();
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder removeBackupApplianceLocks(int index) {
if (backupApplianceLocksBuilder_ == null) {
ensureBackupApplianceLocksIsMutable();
backupApplianceLocks_.remove(index);
onChanged();
} else {
backupApplianceLocksBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.backupdr.v1.BackupLock.Builder getBackupApplianceLocksBuilder(
int index) {
return getBackupApplianceLocksFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.backupdr.v1.BackupLockOrBuilder getBackupApplianceLocksOrBuilder(
int index) {
if (backupApplianceLocksBuilder_ == null) {
return backupApplianceLocks_.get(index);
} else {
return backupApplianceLocksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List extends com.google.cloud.backupdr.v1.BackupLockOrBuilder>
getBackupApplianceLocksOrBuilderList() {
if (backupApplianceLocksBuilder_ != null) {
return backupApplianceLocksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(backupApplianceLocks_);
}
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.backupdr.v1.BackupLock.Builder addBackupApplianceLocksBuilder() {
return getBackupApplianceLocksFieldBuilder()
.addBuilder(com.google.cloud.backupdr.v1.BackupLock.getDefaultInstance());
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.backupdr.v1.BackupLock.Builder addBackupApplianceLocksBuilder(
int index) {
return getBackupApplianceLocksFieldBuilder()
.addBuilder(index, com.google.cloud.backupdr.v1.BackupLock.getDefaultInstance());
}
/**
*
*
*
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
*
*
*
* repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public java.util.List
getBackupApplianceLocksBuilderList() {
return getBackupApplianceLocksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupLock,
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>
getBackupApplianceLocksFieldBuilder() {
if (backupApplianceLocksBuilder_ == null) {
backupApplianceLocksBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupLock,
com.google.cloud.backupdr.v1.BackupLock.Builder,
com.google.cloud.backupdr.v1.BackupLockOrBuilder>(
backupApplianceLocks_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
backupApplianceLocks_ = null;
}
return backupApplianceLocksBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties,
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.Builder,
com.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesOrBuilder>
computeInstanceBackupPropertiesBuilder_;
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the computeInstanceBackupProperties field is set.
*/
@java.lang.Override
public boolean hasComputeInstanceBackupProperties() {
return backupPropertiesCase_ == 19;
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The computeInstanceBackupProperties.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties
getComputeInstanceBackupProperties() {
if (computeInstanceBackupPropertiesBuilder_ == null) {
if (backupPropertiesCase_ == 19) {
return (com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.getDefaultInstance();
} else {
if (backupPropertiesCase_ == 19) {
return computeInstanceBackupPropertiesBuilder_.getMessage();
}
return com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.getDefaultInstance();
}
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setComputeInstanceBackupProperties(
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties value) {
if (computeInstanceBackupPropertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backupProperties_ = value;
onChanged();
} else {
computeInstanceBackupPropertiesBuilder_.setMessage(value);
}
backupPropertiesCase_ = 19;
return this;
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setComputeInstanceBackupProperties(
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.Builder builderForValue) {
if (computeInstanceBackupPropertiesBuilder_ == null) {
backupProperties_ = builderForValue.build();
onChanged();
} else {
computeInstanceBackupPropertiesBuilder_.setMessage(builderForValue.build());
}
backupPropertiesCase_ = 19;
return this;
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeComputeInstanceBackupProperties(
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties value) {
if (computeInstanceBackupPropertiesBuilder_ == null) {
if (backupPropertiesCase_ == 19
&& backupProperties_
!= com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties
.getDefaultInstance()) {
backupProperties_ =
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.newBuilder(
(com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties)
backupProperties_)
.mergeFrom(value)
.buildPartial();
} else {
backupProperties_ = value;
}
onChanged();
} else {
if (backupPropertiesCase_ == 19) {
computeInstanceBackupPropertiesBuilder_.mergeFrom(value);
} else {
computeInstanceBackupPropertiesBuilder_.setMessage(value);
}
}
backupPropertiesCase_ = 19;
return this;
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearComputeInstanceBackupProperties() {
if (computeInstanceBackupPropertiesBuilder_ == null) {
if (backupPropertiesCase_ == 19) {
backupPropertiesCase_ = 0;
backupProperties_ = null;
onChanged();
}
} else {
if (backupPropertiesCase_ == 19) {
backupPropertiesCase_ = 0;
backupProperties_ = null;
}
computeInstanceBackupPropertiesBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.Builder
getComputeInstanceBackupPropertiesBuilder() {
return getComputeInstanceBackupPropertiesFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesOrBuilder
getComputeInstanceBackupPropertiesOrBuilder() {
if ((backupPropertiesCase_ == 19) && (computeInstanceBackupPropertiesBuilder_ != null)) {
return computeInstanceBackupPropertiesBuilder_.getMessageOrBuilder();
} else {
if (backupPropertiesCase_ == 19) {
return (com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.getDefaultInstance();
}
}
/**
*
*
*
* Output only. Compute Engine specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties,
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.Builder,
com.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesOrBuilder>
getComputeInstanceBackupPropertiesFieldBuilder() {
if (computeInstanceBackupPropertiesBuilder_ == null) {
if (!(backupPropertiesCase_ == 19)) {
backupProperties_ =
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.getDefaultInstance();
}
computeInstanceBackupPropertiesBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties,
com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties.Builder,
com.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesOrBuilder>(
(com.google.cloud.backupdr.v1.ComputeInstanceBackupProperties) backupProperties_,
getParentForChildren(),
isClean());
backupProperties_ = null;
}
backupPropertiesCase_ = 19;
onChanged();
return computeInstanceBackupPropertiesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties,
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.Builder,
com.google.cloud.backupdr.v1.BackupApplianceBackupPropertiesOrBuilder>
backupApplianceBackupPropertiesBuilder_;
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the backupApplianceBackupProperties field is set.
*/
@java.lang.Override
public boolean hasBackupApplianceBackupProperties() {
return backupPropertiesCase_ == 21;
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The backupApplianceBackupProperties.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupApplianceBackupProperties
getBackupApplianceBackupProperties() {
if (backupApplianceBackupPropertiesBuilder_ == null) {
if (backupPropertiesCase_ == 21) {
return (com.google.cloud.backupdr.v1.BackupApplianceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.getDefaultInstance();
} else {
if (backupPropertiesCase_ == 21) {
return backupApplianceBackupPropertiesBuilder_.getMessage();
}
return com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.getDefaultInstance();
}
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setBackupApplianceBackupProperties(
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties value) {
if (backupApplianceBackupPropertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backupProperties_ = value;
onChanged();
} else {
backupApplianceBackupPropertiesBuilder_.setMessage(value);
}
backupPropertiesCase_ = 21;
return this;
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setBackupApplianceBackupProperties(
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.Builder builderForValue) {
if (backupApplianceBackupPropertiesBuilder_ == null) {
backupProperties_ = builderForValue.build();
onChanged();
} else {
backupApplianceBackupPropertiesBuilder_.setMessage(builderForValue.build());
}
backupPropertiesCase_ = 21;
return this;
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeBackupApplianceBackupProperties(
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties value) {
if (backupApplianceBackupPropertiesBuilder_ == null) {
if (backupPropertiesCase_ == 21
&& backupProperties_
!= com.google.cloud.backupdr.v1.BackupApplianceBackupProperties
.getDefaultInstance()) {
backupProperties_ =
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.newBuilder(
(com.google.cloud.backupdr.v1.BackupApplianceBackupProperties)
backupProperties_)
.mergeFrom(value)
.buildPartial();
} else {
backupProperties_ = value;
}
onChanged();
} else {
if (backupPropertiesCase_ == 21) {
backupApplianceBackupPropertiesBuilder_.mergeFrom(value);
} else {
backupApplianceBackupPropertiesBuilder_.setMessage(value);
}
}
backupPropertiesCase_ = 21;
return this;
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearBackupApplianceBackupProperties() {
if (backupApplianceBackupPropertiesBuilder_ == null) {
if (backupPropertiesCase_ == 21) {
backupPropertiesCase_ = 0;
backupProperties_ = null;
onChanged();
}
} else {
if (backupPropertiesCase_ == 21) {
backupPropertiesCase_ = 0;
backupProperties_ = null;
}
backupApplianceBackupPropertiesBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.Builder
getBackupApplianceBackupPropertiesBuilder() {
return getBackupApplianceBackupPropertiesFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.BackupApplianceBackupPropertiesOrBuilder
getBackupApplianceBackupPropertiesOrBuilder() {
if ((backupPropertiesCase_ == 21) && (backupApplianceBackupPropertiesBuilder_ != null)) {
return backupApplianceBackupPropertiesBuilder_.getMessageOrBuilder();
} else {
if (backupPropertiesCase_ == 21) {
return (com.google.cloud.backupdr.v1.BackupApplianceBackupProperties) backupProperties_;
}
return com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.getDefaultInstance();
}
}
/**
*
*
*
* Output only. Backup Appliance specific backup properties.
*
*
*
* .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties,
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.Builder,
com.google.cloud.backupdr.v1.BackupApplianceBackupPropertiesOrBuilder>
getBackupApplianceBackupPropertiesFieldBuilder() {
if (backupApplianceBackupPropertiesBuilder_ == null) {
if (!(backupPropertiesCase_ == 21)) {
backupProperties_ =
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.getDefaultInstance();
}
backupApplianceBackupPropertiesBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties,
com.google.cloud.backupdr.v1.BackupApplianceBackupProperties.Builder,
com.google.cloud.backupdr.v1.BackupApplianceBackupPropertiesOrBuilder>(
(com.google.cloud.backupdr.v1.BackupApplianceBackupProperties) backupProperties_,
getParentForChildren(),
isClean());
backupProperties_ = null;
}
backupPropertiesCase_ = 21;
onChanged();
return backupApplianceBackupPropertiesBuilder_;
}
private int backupType_ = 0;
/**
*
*
*
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
*
*
* .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for backupType.
*/
@java.lang.Override
public int getBackupTypeValue() {
return backupType_;
}
/**
*
*
*
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
*
*
* .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for backupType to set.
* @return This builder for chaining.
*/
public Builder setBackupTypeValue(int value) {
backupType_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*
*
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
*
*
* .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The backupType.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.BackupType getBackupType() {
com.google.cloud.backupdr.v1.Backup.BackupType result =
com.google.cloud.backupdr.v1.Backup.BackupType.forNumber(backupType_);
return result == null ? com.google.cloud.backupdr.v1.Backup.BackupType.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
*
*
* .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The backupType to set.
* @return This builder for chaining.
*/
public Builder setBackupType(com.google.cloud.backupdr.v1.Backup.BackupType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
backupType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Type of the backup, unspecified, scheduled or ondemand.
*
*
*
* .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearBackupType() {
bitField0_ = (bitField0_ & ~0x00004000);
backupType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.Builder,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoOrBuilder>
gcpBackupPlanInfoBuilder_;
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the gcpBackupPlanInfo field is set.
*/
@java.lang.Override
public boolean hasGcpBackupPlanInfo() {
return planInfoCase_ == 22;
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The gcpBackupPlanInfo.
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo getGcpBackupPlanInfo() {
if (gcpBackupPlanInfoBuilder_ == null) {
if (planInfoCase_ == 22) {
return (com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_;
}
return com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance();
} else {
if (planInfoCase_ == 22) {
return gcpBackupPlanInfoBuilder_.getMessage();
}
return com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance();
}
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setGcpBackupPlanInfo(
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo value) {
if (gcpBackupPlanInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
planInfo_ = value;
onChanged();
} else {
gcpBackupPlanInfoBuilder_.setMessage(value);
}
planInfoCase_ = 22;
return this;
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setGcpBackupPlanInfo(
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.Builder builderForValue) {
if (gcpBackupPlanInfoBuilder_ == null) {
planInfo_ = builderForValue.build();
onChanged();
} else {
gcpBackupPlanInfoBuilder_.setMessage(builderForValue.build());
}
planInfoCase_ = 22;
return this;
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeGcpBackupPlanInfo(
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo value) {
if (gcpBackupPlanInfoBuilder_ == null) {
if (planInfoCase_ == 22
&& planInfo_
!= com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance()) {
planInfo_ =
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.newBuilder(
(com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_)
.mergeFrom(value)
.buildPartial();
} else {
planInfo_ = value;
}
onChanged();
} else {
if (planInfoCase_ == 22) {
gcpBackupPlanInfoBuilder_.mergeFrom(value);
} else {
gcpBackupPlanInfoBuilder_.setMessage(value);
}
}
planInfoCase_ = 22;
return this;
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearGcpBackupPlanInfo() {
if (gcpBackupPlanInfoBuilder_ == null) {
if (planInfoCase_ == 22) {
planInfoCase_ = 0;
planInfo_ = null;
onChanged();
}
} else {
if (planInfoCase_ == 22) {
planInfoCase_ = 0;
planInfo_ = null;
}
gcpBackupPlanInfoBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.Builder
getGcpBackupPlanInfoBuilder() {
return getGcpBackupPlanInfoFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoOrBuilder
getGcpBackupPlanInfoOrBuilder() {
if ((planInfoCase_ == 22) && (gcpBackupPlanInfoBuilder_ != null)) {
return gcpBackupPlanInfoBuilder_.getMessageOrBuilder();
} else {
if (planInfoCase_ == 22) {
return (com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_;
}
return com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance();
}
}
/**
*
*
*
* Output only. Configuration for a Google Cloud resource.
*
*
*
* .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.Builder,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoOrBuilder>
getGcpBackupPlanInfoFieldBuilder() {
if (gcpBackupPlanInfoBuilder_ == null) {
if (!(planInfoCase_ == 22)) {
planInfo_ = com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.getDefaultInstance();
}
gcpBackupPlanInfoBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo.Builder,
com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoOrBuilder>(
(com.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo) planInfo_,
getParentForChildren(),
isClean());
planInfo_ = null;
}
planInfoCase_ = 22;
onChanged();
return gcpBackupPlanInfoBuilder_;
}
private long resourceSizeBytes_;
/**
*
*
*
* Output only. source resource size in bytes at the time of the backup.
*
*
* int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceSizeBytes.
*/
@java.lang.Override
public long getResourceSizeBytes() {
return resourceSizeBytes_;
}
/**
*
*
*
* Output only. source resource size in bytes at the time of the backup.
*
*
* int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The resourceSizeBytes to set.
* @return This builder for chaining.
*/
public Builder setResourceSizeBytes(long value) {
resourceSizeBytes_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*
*
* Output only. source resource size in bytes at the time of the backup.
*
*
* int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearResourceSizeBytes() {
bitField0_ = (bitField0_ & ~0x00010000);
resourceSizeBytes_ = 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:google.cloud.backupdr.v1.Backup)
}
// @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.Backup)
private static final com.google.cloud.backupdr.v1.Backup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.Backup();
}
public static com.google.cloud.backupdr.v1.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.backupdr.v1.Backup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}