Package com.google.cloud.netapp.v1
Class KmsConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.netapp.v1.KmsConfig
-
- All Implemented Interfaces:
KmsConfigOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class KmsConfig extends com.google.protobuf.GeneratedMessageV3 implements KmsConfigOrBuilder
KmsConfig is the customer managed encryption key(CMEK) configuration.
Protobuf typegoogle.cloud.netapp.v1.KmsConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KmsConfig.Builder
KmsConfig is the customer managed encryption key(CMEK) configuration.static class
KmsConfig.State
The KmsConfig States-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CREATE_TIME_FIELD_NUMBER
static int
CRYPTO_KEY_NAME_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
INSTRUCTIONS_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
static int
STATE_DETAILS_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels as key value pairsboolean
equals(Object obj)
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getCryptoKeyName()
Required.com.google.protobuf.ByteString
getCryptoKeyNameBytes()
Required.static KmsConfig
getDefaultInstance()
KmsConfig
getDefaultInstanceForType()
String
getDescription()
Description of the KmsConfig.com.google.protobuf.ByteString
getDescriptionBytes()
Description of the KmsConfig.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getInstructions()
Output only.com.google.protobuf.ByteString
getInstructionsBytes()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels as key value pairsMap<String,String>
getLabelsMap()
Labels as key value pairsString
getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairsString
getLabelsOrThrow(String key)
Labels as key value pairsString
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<KmsConfig>
getParserForType()
int
getSerializedSize()
String
getServiceAccount()
Output only.com.google.protobuf.ByteString
getServiceAccountBytes()
Output only.KmsConfig.State
getState()
Output only.String
getStateDetails()
Output only.com.google.protobuf.ByteString
getStateDetailsBytes()
Output only.int
getStateValue()
Output only.boolean
hasCreateTime()
Output only.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static KmsConfig.Builder
newBuilder()
static KmsConfig.Builder
newBuilder(KmsConfig prototype)
KmsConfig.Builder
newBuilderForType()
protected KmsConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static KmsConfig
parseDelimitedFrom(InputStream input)
static KmsConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KmsConfig
parseFrom(byte[] data)
static KmsConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KmsConfig
parseFrom(com.google.protobuf.ByteString data)
static KmsConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KmsConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static KmsConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KmsConfig
parseFrom(InputStream input)
static KmsConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KmsConfig
parseFrom(ByteBuffer data)
static KmsConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<KmsConfig>
parser()
KmsConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CRYPTO_KEY_NAME_FIELD_NUMBER
public static final int CRYPTO_KEY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_DETAILS_FIELD_NUMBER
public static final int STATE_DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTRUCTIONS_FIELD_NUMBER
public static final int INSTRUCTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. Name of the KmsConfig.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceKmsConfigOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Name of the KmsConfig.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceKmsConfigOrBuilder
- Returns:
- The bytes for name.
-
getCryptoKeyName
public String getCryptoKeyName()
Required. Customer managed crypto key resource full name. Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getCryptoKeyName
in interfaceKmsConfigOrBuilder
- Returns:
- The cryptoKeyName.
-
getCryptoKeyNameBytes
public com.google.protobuf.ByteString getCryptoKeyNameBytes()
Required. Customer managed crypto key resource full name. Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getCryptoKeyNameBytes
in interfaceKmsConfigOrBuilder
- Returns:
- The bytes for cryptoKeyName.
-
getStateValue
public int getStateValue()
Output only. State of the KmsConfig.
.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceKmsConfigOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public KmsConfig.State getState()
Output only. State of the KmsConfig.
.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceKmsConfigOrBuilder
- Returns:
- The state.
-
getStateDetails
public String getStateDetails()
Output only. State details of the KmsConfig.
string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateDetails
in interfaceKmsConfigOrBuilder
- Returns:
- The stateDetails.
-
getStateDetailsBytes
public com.google.protobuf.ByteString getStateDetailsBytes()
Output only. State details of the KmsConfig.
string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateDetailsBytes
in interfaceKmsConfigOrBuilder
- Returns:
- The bytes for stateDetails.
-
hasCreateTime
public boolean hasCreateTime()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceKmsConfigOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceKmsConfigOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceKmsConfigOrBuilder
-
getDescription
public String getDescription()
Description of the KmsConfig.
string description = 6;
- Specified by:
getDescription
in interfaceKmsConfigOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the KmsConfig.
string description = 6;
- Specified by:
getDescriptionBytes
in interfaceKmsConfigOrBuilder
- Returns:
- The bytes for description.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:KmsConfigOrBuilder
Labels as key value pairs
map<string, string> labels = 7;
- Specified by:
getLabelsCount
in interfaceKmsConfigOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs
map<string, string> labels = 7;
- Specified by:
containsLabels
in interfaceKmsConfigOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceKmsConfigOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs
map<string, string> labels = 7;
- Specified by:
getLabelsMap
in interfaceKmsConfigOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs
map<string, string> labels = 7;
- Specified by:
getLabelsOrDefault
in interfaceKmsConfigOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs
map<string, string> labels = 7;
- Specified by:
getLabelsOrThrow
in interfaceKmsConfigOrBuilder
-
getInstructions
public String getInstructions()
Output only. Instructions to provide the access to the customer provided encryption key.
string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getInstructions
in interfaceKmsConfigOrBuilder
- Returns:
- The instructions.
-
getInstructionsBytes
public com.google.protobuf.ByteString getInstructionsBytes()
Output only. Instructions to provide the access to the customer provided encryption key.
string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getInstructionsBytes
in interfaceKmsConfigOrBuilder
- Returns:
- The bytes for instructions.
-
getServiceAccount
public String getServiceAccount()
Output only. The Service account which will have access to the customer provided encryption key.
string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServiceAccount
in interfaceKmsConfigOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Output only. The Service account which will have access to the customer provided encryption key.
string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServiceAccountBytes
in interfaceKmsConfigOrBuilder
- Returns:
- The bytes for serviceAccount.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static KmsConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KmsConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KmsConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KmsConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KmsConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KmsConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KmsConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static KmsConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static KmsConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static KmsConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static KmsConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static KmsConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public KmsConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static KmsConfig.Builder newBuilder()
-
newBuilder
public static KmsConfig.Builder newBuilder(KmsConfig prototype)
-
toBuilder
public KmsConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected KmsConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static KmsConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<KmsConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<KmsConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public KmsConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-