Package com.google.container.v1
Class DatabaseEncryption.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
com.google.container.v1.DatabaseEncryption.Builder
- All Implemented Interfaces:
DatabaseEncryptionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DatabaseEncryption
public static final class DatabaseEncryption.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
implements DatabaseEncryptionOrBuilder
Configuration of etcd encryption.Protobuf type
google.container.v1.DatabaseEncryption-
Method Summary
Modifier and TypeMethodDescriptionaddAllDecryptionKeys(Iterable<String> values) Output only.addAllLastOperationErrors(Iterable<? extends DatabaseEncryption.OperationError> values) Output only.addDecryptionKeys(String value) Output only.addDecryptionKeysBytes(com.google.protobuf.ByteString value) Output only.addLastOperationErrors(int index, DatabaseEncryption.OperationError value) Output only.addLastOperationErrors(int index, DatabaseEncryption.OperationError.Builder builderForValue) Output only.Output only.addLastOperationErrors(DatabaseEncryption.OperationError.Builder builderForValue) Output only.Output only.addLastOperationErrorsBuilder(int index) Output only.build()clear()Output only.Output only.Name of CloudKMS key to use for the encryption of secrets in etcd.Output only.The desired state of etcd encryption.Output only.intOutput only.getDecryptionKeys(int index) Output only.com.google.protobuf.ByteStringgetDecryptionKeysBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorName of CloudKMS key to use for the encryption of secrets in etcd.com.google.protobuf.ByteStringName of CloudKMS key to use for the encryption of secrets in etcd.getLastOperationErrors(int index) Output only.getLastOperationErrorsBuilder(int index) Output only.Output only.intOutput only.Output only.getLastOperationErrorsOrBuilder(int index) Output only.List<? extends DatabaseEncryption.OperationErrorOrBuilder>Output only.getState()The desired state of etcd encryption.intThe desired state of etcd encryption.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DatabaseEncryption other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeLastOperationErrors(int index) Output only.Output only.setCurrentStateValue(int value) Output only.setDecryptionKeys(int index, String value) Output only.setKeyName(String value) Name of CloudKMS key to use for the encryption of secrets in etcd.setKeyNameBytes(com.google.protobuf.ByteString value) Name of CloudKMS key to use for the encryption of secrets in etcd.setLastOperationErrors(int index, DatabaseEncryption.OperationError value) Output only.setLastOperationErrors(int index, DatabaseEncryption.OperationError.Builder builderForValue) Output only.setState(DatabaseEncryption.State value) The desired state of etcd encryption.setStateValue(int value) The desired state of etcd encryption.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DatabaseEncryption.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
-
mergeFrom
public DatabaseEncryption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DatabaseEncryption.Builder>- Throws:
IOException
-
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;- Specified by:
getKeyNamein interfaceDatabaseEncryptionOrBuilder- Returns:
- The keyName.
-
getKeyNameBytes
public com.google.protobuf.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;- Specified by:
getKeyNameBytesin interfaceDatabaseEncryptionOrBuilder- Returns:
- The bytes for keyName.
-
setKeyName
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;- Parameters:
value- The keyName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setKeyNameBytes
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;- Parameters:
value- The bytes for keyName to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()The desired state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;- Specified by:
getStateValuein interfaceDatabaseEncryptionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The desired state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The desired state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;- Specified by:
getStatein interfaceDatabaseEncryptionOrBuilder- Returns:
- The state.
-
setState
The desired state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The desired state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;- Returns:
- This builder for chaining.
-
hasCurrentState
public boolean hasCurrentState()Output only. The current state of etcd encryption.
optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCurrentStatein interfaceDatabaseEncryptionOrBuilder- Returns:
- Whether the currentState field is set.
-
getCurrentStateValue
public int getCurrentStateValue()Output only. The current state of etcd encryption.
optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrentStateValuein interfaceDatabaseEncryptionOrBuilder- Returns:
- The enum numeric value on the wire for currentState.
-
setCurrentStateValue
Output only. The current state of etcd encryption.
optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for currentState to set.- Returns:
- This builder for chaining.
-
getCurrentState
Output only. The current state of etcd encryption.
optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrentStatein interfaceDatabaseEncryptionOrBuilder- Returns:
- The currentState.
-
setCurrentState
Output only. The current state of etcd encryption.
optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The currentState to set.- Returns:
- This builder for chaining.
-
clearCurrentState
Output only. The current state of etcd encryption.
optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDecryptionKeysList
public com.google.protobuf.ProtocolStringList getDecryptionKeysList()Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDecryptionKeysListin interfaceDatabaseEncryptionOrBuilder- Returns:
- A list containing the decryptionKeys.
-
getDecryptionKeysCount
public int getDecryptionKeysCount()Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDecryptionKeysCountin interfaceDatabaseEncryptionOrBuilder- Returns:
- The count of decryptionKeys.
-
getDecryptionKeys
Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDecryptionKeysin interfaceDatabaseEncryptionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The decryptionKeys at the given index.
-
getDecryptionKeysBytes
public com.google.protobuf.ByteString getDecryptionKeysBytes(int index) Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDecryptionKeysBytesin interfaceDatabaseEncryptionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the decryptionKeys at the given index.
-
setDecryptionKeys
Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The decryptionKeys to set.- Returns:
- This builder for chaining.
-
addDecryptionKeys
Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The decryptionKeys to add.- Returns:
- This builder for chaining.
-
addAllDecryptionKeys
Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The decryptionKeys to add.- Returns:
- This builder for chaining.
-
clearDecryptionKeys
Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addDecryptionKeysBytes
Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in `key_name`. Each item is a CloudKMS key resource.
repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the decryptionKeys to add.- Returns:
- This builder for chaining.
-
getLastOperationErrorsList
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastOperationErrorsListin interfaceDatabaseEncryptionOrBuilder
-
getLastOperationErrorsCount
public int getLastOperationErrorsCount()Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastOperationErrorsCountin interfaceDatabaseEncryptionOrBuilder
-
getLastOperationErrors
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastOperationErrorsin interfaceDatabaseEncryptionOrBuilder
-
setLastOperationErrors
public DatabaseEncryption.Builder setLastOperationErrors(int index, DatabaseEncryption.OperationError value) Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setLastOperationErrors
public DatabaseEncryption.Builder setLastOperationErrors(int index, DatabaseEncryption.OperationError.Builder builderForValue) Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLastOperationErrors
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLastOperationErrors
public DatabaseEncryption.Builder addLastOperationErrors(int index, DatabaseEncryption.OperationError value) Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLastOperationErrors
public DatabaseEncryption.Builder addLastOperationErrors(DatabaseEncryption.OperationError.Builder builderForValue) Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLastOperationErrors
public DatabaseEncryption.Builder addLastOperationErrors(int index, DatabaseEncryption.OperationError.Builder builderForValue) Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllLastOperationErrors
public DatabaseEncryption.Builder addAllLastOperationErrors(Iterable<? extends DatabaseEncryption.OperationError> values) Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearLastOperationErrors
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeLastOperationErrors
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastOperationErrorsBuilder
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastOperationErrorsOrBuilder
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastOperationErrorsOrBuilderin interfaceDatabaseEncryptionOrBuilder
-
getLastOperationErrorsOrBuilderList
public List<? extends DatabaseEncryption.OperationErrorOrBuilder> getLastOperationErrorsOrBuilderList()Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastOperationErrorsOrBuilderListin interfaceDatabaseEncryptionOrBuilder
-
addLastOperationErrorsBuilder
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addLastOperationErrorsBuilder
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastOperationErrorsBuilderList
Output only. Records errors seen during DatabaseEncryption update operations.
repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-