Class Secret.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
- com.google.cloud.lifesciences.v2beta.Secret.Builder
-
- All Implemented Interfaces:
SecretOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Secret
public static final class Secret.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder> implements SecretOrBuilder
Holds encrypted information that is only decrypted and stored in RAM by the worker VM when running the pipeline.
Protobuf typegoogle.cloud.lifesciences.v2beta.Secret
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Secret.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Secretbuild()SecretbuildPartial()Secret.Builderclear()Secret.BuilderclearCipherText()The value of the cipherText response from the `encrypt` method.Secret.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Secret.BuilderclearKeyName()The name of the Cloud KMS key that will be used to decrypt the secret value.Secret.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Secret.Builderclone()StringgetCipherText()The value of the cipherText response from the `encrypt` method.com.google.protobuf.ByteStringgetCipherTextBytes()The value of the cipherText response from the `encrypt` method.SecretgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKeyName()The name of the Cloud KMS key that will be used to decrypt the secret value.com.google.protobuf.ByteStringgetKeyNameBytes()The name of the Cloud KMS key that will be used to decrypt the secret value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Secret.BuildermergeFrom(Secret other)Secret.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Secret.BuildermergeFrom(com.google.protobuf.Message other)Secret.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Secret.BuildersetCipherText(String value)The value of the cipherText response from the `encrypt` method.Secret.BuildersetCipherTextBytes(com.google.protobuf.ByteString value)The value of the cipherText response from the `encrypt` method.Secret.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Secret.BuildersetKeyName(String value)The name of the Cloud KMS key that will be used to decrypt the secret value.Secret.BuildersetKeyNameBytes(com.google.protobuf.ByteString value)The name of the Cloud KMS key that will be used to decrypt the secret value.Secret.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Secret.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
clear
public Secret.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.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.GeneratedMessageV3.Builder<Secret.Builder>
-
getDefaultInstanceForType
public Secret getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Secret build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Secret buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Secret.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
setField
public Secret.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
clearField
public Secret.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
clearOneof
public Secret.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
setRepeatedField
public Secret.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
addRepeatedField
public Secret.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
mergeFrom
public Secret.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Secret.Builder>
-
mergeFrom
public Secret.Builder mergeFrom(Secret other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
mergeFrom
public Secret.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<Secret.Builder>- Throws:
IOException
-
getKeyName
public String getKeyName()
The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the `decrypt` method on the specified key.
string key_name = 1;- Specified by:
getKeyNamein interfaceSecretOrBuilder- Returns:
- The keyName.
-
getKeyNameBytes
public com.google.protobuf.ByteString getKeyNameBytes()
The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the `decrypt` method on the specified key.
string key_name = 1;- Specified by:
getKeyNameBytesin interfaceSecretOrBuilder- Returns:
- The bytes for keyName.
-
setKeyName
public Secret.Builder setKeyName(String value)
The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the `decrypt` method on the specified key.
string key_name = 1;- Parameters:
value- The keyName to set.- Returns:
- This builder for chaining.
-
clearKeyName
public Secret.Builder clearKeyName()
The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the `decrypt` method on the specified key.
string key_name = 1;- Returns:
- This builder for chaining.
-
setKeyNameBytes
public Secret.Builder setKeyNameBytes(com.google.protobuf.ByteString value)
The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the `decrypt` method on the specified key.
string key_name = 1;- Parameters:
value- The bytes for keyName to set.- Returns:
- This builder for chaining.
-
getCipherText
public String getCipherText()
The value of the cipherText response from the `encrypt` method. This field is intentionally unaudited.
string cipher_text = 2;- Specified by:
getCipherTextin interfaceSecretOrBuilder- Returns:
- The cipherText.
-
getCipherTextBytes
public com.google.protobuf.ByteString getCipherTextBytes()
The value of the cipherText response from the `encrypt` method. This field is intentionally unaudited.
string cipher_text = 2;- Specified by:
getCipherTextBytesin interfaceSecretOrBuilder- Returns:
- The bytes for cipherText.
-
setCipherText
public Secret.Builder setCipherText(String value)
The value of the cipherText response from the `encrypt` method. This field is intentionally unaudited.
string cipher_text = 2;- Parameters:
value- The cipherText to set.- Returns:
- This builder for chaining.
-
clearCipherText
public Secret.Builder clearCipherText()
The value of the cipherText response from the `encrypt` method. This field is intentionally unaudited.
string cipher_text = 2;- Returns:
- This builder for chaining.
-
setCipherTextBytes
public Secret.Builder setCipherTextBytes(com.google.protobuf.ByteString value)
The value of the cipherText response from the `encrypt` method. This field is intentionally unaudited.
string cipher_text = 2;- Parameters:
value- The bytes for cipherText to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Secret.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
mergeUnknownFields
public final Secret.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
-