Class DatabaseEncryption.Builder (2.3.6)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class DatabaseEncryption.Builder extends GeneratedMessageV3.Builder<DatabaseEncryption.Builder> implements DatabaseEncryptionOrBuilder
Configuration of etcd encryption.
Protobuf type google.container.v1.DatabaseEncryption
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DatabaseEncryption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DatabaseEncryption build()
Returns
buildPartial()
public DatabaseEncryption buildPartial()
Returns
clear()
public DatabaseEncryption.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public DatabaseEncryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKeyName()
public DatabaseEncryption.Builder clearKeyName()
Name of CloudKMS key to use for the encryption of secrets in etcd.
Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
string key_name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public DatabaseEncryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearState()
public DatabaseEncryption.Builder clearState()
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Returns
clone()
public DatabaseEncryption.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public DatabaseEncryption getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getKeyName()
public String getKeyName()
Name of CloudKMS key to use for the encryption of secrets in etcd.
Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
string key_name = 1;
Returns
Type | Description |
String | The keyName.
|
getKeyNameBytes()
public ByteString getKeyNameBytes()
Name of CloudKMS key to use for the encryption of secrets in etcd.
Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
string key_name = 1;
Returns
getState()
public DatabaseEncryption.State getState()
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Returns
getStateValue()
public int getStateValue()
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DatabaseEncryption other)
public DatabaseEncryption.Builder mergeFrom(DatabaseEncryption other)
Parameter
Returns
public DatabaseEncryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DatabaseEncryption.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DatabaseEncryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DatabaseEncryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKeyName(String value)
public DatabaseEncryption.Builder setKeyName(String value)
Name of CloudKMS key to use for the encryption of secrets in etcd.
Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
string key_name = 1;
Parameter
Name | Description |
value | String
The keyName to set.
|
Returns
setKeyNameBytes(ByteString value)
public DatabaseEncryption.Builder setKeyNameBytes(ByteString value)
Name of CloudKMS key to use for the encryption of secrets in etcd.
Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
string key_name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for keyName to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DatabaseEncryption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setState(DatabaseEncryption.State value)
public DatabaseEncryption.Builder setState(DatabaseEncryption.State value)
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Parameter
Returns
setStateValue(int value)
public DatabaseEncryption.Builder setStateValue(int value)
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for state to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final DatabaseEncryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-03 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-03 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-03 UTC."]]