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 classKmsConfig.BuilderKmsConfig is the customer managed encryption key(CMEK) configuration.static classKmsConfig.StateThe 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 intCREATE_TIME_FIELD_NUMBERstatic intCRYPTO_KEY_NAME_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intINSTRUCTIONS_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSERVICE_ACCOUNT_FIELD_NUMBERstatic intSTATE_DETAILS_FIELD_NUMBERstatic intSTATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Labels as key value pairsbooleanequals(Object obj)com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.StringgetCryptoKeyName()Required.com.google.protobuf.ByteStringgetCryptoKeyNameBytes()Required.static KmsConfiggetDefaultInstance()KmsConfiggetDefaultInstanceForType()StringgetDescription()Description of the KmsConfig.com.google.protobuf.ByteStringgetDescriptionBytes()Description of the KmsConfig.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetInstructions()Output only.com.google.protobuf.ByteStringgetInstructionsBytes()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels as key value pairsMap<String,String>getLabelsMap()Labels as key value pairsStringgetLabelsOrDefault(String key, String defaultValue)Labels as key value pairsStringgetLabelsOrThrow(String key)Labels as key value pairsStringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<KmsConfig>getParserForType()intgetSerializedSize()StringgetServiceAccount()Output only.com.google.protobuf.ByteStringgetServiceAccountBytes()Output only.KmsConfig.StategetState()Output only.StringgetStateDetails()Output only.com.google.protobuf.ByteStringgetStateDetailsBytes()Output only.intgetStateValue()Output only.booleanhasCreateTime()Output only.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static KmsConfig.BuildernewBuilder()static KmsConfig.BuildernewBuilder(KmsConfig prototype)KmsConfig.BuildernewBuilderForType()protected KmsConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static KmsConfigparseDelimitedFrom(InputStream input)static KmsConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static KmsConfigparseFrom(byte[] data)static KmsConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static KmsConfigparseFrom(com.google.protobuf.ByteString data)static KmsConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static KmsConfigparseFrom(com.google.protobuf.CodedInputStream input)static KmsConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static KmsConfigparseFrom(InputStream input)static KmsConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static KmsConfigparseFrom(ByteBuffer data)static KmsConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<KmsConfig>parser()KmsConfig.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getNamein 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:
getNameBytesin 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:
getCryptoKeyNamein 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:
getCryptoKeyNameBytesin 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:
getStateValuein 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:
getStatein 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:
getStateDetailsin 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:
getStateDetailsBytesin 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:
hasCreateTimein 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:
getCreateTimein 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:
getCreateTimeOrBuilderin interfaceKmsConfigOrBuilder
-
getDescription
public String getDescription()
Description of the KmsConfig.
string description = 6;- Specified by:
getDescriptionin interfaceKmsConfigOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the KmsConfig.
string description = 6;- Specified by:
getDescriptionBytesin interfaceKmsConfigOrBuilder- Returns:
- The bytes for description.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:KmsConfigOrBuilderLabels as key value pairs
map<string, string> labels = 7;- Specified by:
getLabelsCountin interfaceKmsConfigOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs
map<string, string> labels = 7;- Specified by:
containsLabelsin interfaceKmsConfigOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceKmsConfigOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs
map<string, string> labels = 7;- Specified by:
getLabelsMapin interfaceKmsConfigOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs
map<string, string> labels = 7;- Specified by:
getLabelsOrDefaultin interfaceKmsConfigOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs
map<string, string> labels = 7;- Specified by:
getLabelsOrThrowin 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:
getInstructionsin 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:
getInstructionsBytesin 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:
getServiceAccountin 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:
getServiceAccountBytesin interfaceKmsConfigOrBuilder- Returns:
- The bytes for serviceAccount.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected KmsConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public KmsConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-