Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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/netapp/v1/backup_vault.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.netapp.v1;
/**
*
*
*
* CreateBackupVaultRequest creates a backup vault.
*
*
* Protobuf type {@code google.cloud.netapp.v1.CreateBackupVaultRequest}
*/
public final class CreateBackupVaultRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.CreateBackupVaultRequest)
CreateBackupVaultRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateBackupVaultRequest.newBuilder() to construct.
private CreateBackupVaultRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateBackupVaultRequest() {
parent_ = "";
backupVaultId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CreateBackupVaultRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.netapp.v1.BackupVaultProto
.internal_static_google_cloud_netapp_v1_CreateBackupVaultRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.netapp.v1.BackupVaultProto
.internal_static_google_cloud_netapp_v1_CreateBackupVaultRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.netapp.v1.CreateBackupVaultRequest.class,
com.google.cloud.netapp.v1.CreateBackupVaultRequest.Builder.class);
}
private int bitField0_;
public static final int PARENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object parent_ = "";
/**
*
*
*
* Required. The location to create the backup vaults, in the format
* `projects/{project_id}/locations/{location}`
*
* Required. The location to create the backup vaults, in the format
* `projects/{project_id}/locations/{location}`
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for parent.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKUP_VAULT_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object backupVaultId_ = "";
/**
*
*
*
* Required. The ID to use for the backupVault.
* The ID must be unique within the specified location.
* Must contain only letters, numbers, underscore and hyphen, with the first
* character a letter or underscore, the last a letter or underscore or a
* number, and a 63 character maximum.
*
* Required. The ID to use for the backupVault.
* The ID must be unique within the specified location.
* Must contain only letters, numbers, underscore and hyphen, with the first
* character a letter or underscore, the last a letter or underscore or a
* number, and a 63 character maximum.
*
*
* string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for backupVaultId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBackupVaultIdBytes() {
java.lang.Object ref = backupVaultId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
backupVaultId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKUP_VAULT_FIELD_NUMBER = 3;
private com.google.cloud.netapp.v1.BackupVault backupVault_;
/**
*
*
*
* Required. A backupVault resource
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the backupVault field is set.
*/
@java.lang.Override
public boolean hasBackupVault() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The location to create the backup vaults, in the format
* `projects/{project_id}/locations/{location}`
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for parent to set.
* @return This builder for chaining.
*/
public Builder setParentBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parent_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object backupVaultId_ = "";
/**
*
*
*
* Required. The ID to use for the backupVault.
* The ID must be unique within the specified location.
* Must contain only letters, numbers, underscore and hyphen, with the first
* character a letter or underscore, the last a letter or underscore or a
* number, and a 63 character maximum.
*
* Required. The ID to use for the backupVault.
* The ID must be unique within the specified location.
* Must contain only letters, numbers, underscore and hyphen, with the first
* character a letter or underscore, the last a letter or underscore or a
* number, and a 63 character maximum.
*
* Required. The ID to use for the backupVault.
* The ID must be unique within the specified location.
* Must contain only letters, numbers, underscore and hyphen, with the first
* character a letter or underscore, the last a letter or underscore or a
* number, and a 63 character maximum.
*
*
* string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The backupVaultId to set.
* @return This builder for chaining.
*/
public Builder setBackupVaultId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
backupVaultId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. The ID to use for the backupVault.
* The ID must be unique within the specified location.
* Must contain only letters, numbers, underscore and hyphen, with the first
* character a letter or underscore, the last a letter or underscore or a
* number, and a 63 character maximum.
*
* Required. The ID to use for the backupVault.
* The ID must be unique within the specified location.
* Must contain only letters, numbers, underscore and hyphen, with the first
* character a letter or underscore, the last a letter or underscore or a
* number, and a 63 character maximum.
*
*
* string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for backupVaultId to set.
* @return This builder for chaining.
*/
public Builder setBackupVaultIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
backupVaultId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.cloud.netapp.v1.BackupVault backupVault_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.BackupVault,
com.google.cloud.netapp.v1.BackupVault.Builder,
com.google.cloud.netapp.v1.BackupVaultOrBuilder>
backupVaultBuilder_;
/**
*
*
*
* Required. A backupVault resource
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the backupVault field is set.
*/
public boolean hasBackupVault() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*