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/kms.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.netapp.v1;
/**
*
*
*
* CreateKmsConfigRequest creates a KMS Config.
*
*
* Protobuf type {@code google.cloud.netapp.v1.CreateKmsConfigRequest}
*/
public final class CreateKmsConfigRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.CreateKmsConfigRequest)
CreateKmsConfigRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateKmsConfigRequest.newBuilder() to construct.
private CreateKmsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateKmsConfigRequest() {
parent_ = "";
kmsConfigId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CreateKmsConfigRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.netapp.v1.KmsProto
.internal_static_google_cloud_netapp_v1_CreateKmsConfigRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.netapp.v1.KmsProto
.internal_static_google_cloud_netapp_v1_CreateKmsConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.netapp.v1.CreateKmsConfigRequest.class,
com.google.cloud.netapp.v1.CreateKmsConfigRequest.Builder.class);
}
private int bitField0_;
public static final int PARENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object parent_ = "";
/**
*
*
*
*
*
* 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 KMS_CONFIG_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object kmsConfigId_ = "";
/**
*
*
*
* Required. Id of the requesting KmsConfig. Must be unique within the parent
* resource. 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. Id of the requesting KmsConfig. Must be unique within the parent
* resource. 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 kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for kmsConfigId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKmsConfigIdBytes() {
java.lang.Object ref = kmsConfigId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kmsConfigId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KMS_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.netapp.v1.KmsConfig kmsConfig_;
/**
*
*
*
* Required. The required parameters to create a new KmsConfig.
*
*
*
* .google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the kmsConfig field is set.
*/
@java.lang.Override
public boolean hasKmsConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The required parameters to create a new KmsConfig.
*
*
*
* 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 kmsConfigId_ = "";
/**
*
*
*
* Required. Id of the requesting KmsConfig. Must be unique within the parent
* resource. 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. Id of the requesting KmsConfig. Must be unique within the parent
* resource. 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. Id of the requesting KmsConfig. Must be unique within the parent
* resource. 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 kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The kmsConfigId to set.
* @return This builder for chaining.
*/
public Builder setKmsConfigId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
kmsConfigId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Id of the requesting KmsConfig. Must be unique within the parent
* resource. 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. Id of the requesting KmsConfig. Must be unique within the parent
* resource. 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 kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for kmsConfigId to set.
* @return This builder for chaining.
*/
public Builder setKmsConfigIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
kmsConfigId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.cloud.netapp.v1.KmsConfig kmsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.KmsConfig,
com.google.cloud.netapp.v1.KmsConfig.Builder,
com.google.cloud.netapp.v1.KmsConfigOrBuilder>
kmsConfigBuilder_;
/**
*
*
*
* Required. The required parameters to create a new KmsConfig.
*
*
*
* .google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the kmsConfig field is set.
*/
public boolean hasKmsConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Required. The required parameters to create a new KmsConfig.
*