Class 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 type google.cloud.lifesciences.v2beta.Secret
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Secret.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Secret build()  
      Secret buildPartial()  
      Secret.Builder clear()  
      Secret.Builder clearCipherText()
      The value of the cipherText response from the `encrypt` method.
      Secret.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Secret.Builder clearKeyName()
      The name of the Cloud KMS key that will be used to decrypt the secret value.
      Secret.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Secret.Builder clone()  
      String getCipherText()
      The value of the cipherText response from the `encrypt` method.
      com.google.protobuf.ByteString getCipherTextBytes()
      The value of the cipherText response from the `encrypt` method.
      Secret getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      String getKeyName()
      The name of the Cloud KMS key that will be used to decrypt the secret value.
      com.google.protobuf.ByteString getKeyNameBytes()
      The name of the Cloud KMS key that will be used to decrypt the secret value.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Secret.Builder mergeFrom​(Secret other)  
      Secret.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Secret.Builder mergeFrom​(com.google.protobuf.Message other)  
      Secret.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      Secret.Builder setCipherText​(String value)
      The value of the cipherText response from the `encrypt` method.
      Secret.Builder setCipherTextBytes​(com.google.protobuf.ByteString value)
      The value of the cipherText response from the `encrypt` method.
      Secret.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Secret.Builder setKeyName​(String value)
      The name of the Cloud KMS key that will be used to decrypt the secret value.
      Secret.Builder setKeyNameBytes​(com.google.protobuf.ByteString value)
      The name of the Cloud KMS key that will be used to decrypt the secret value.
      Secret.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      Secret.Builder setUnknownFields​(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 interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • clear

        public Secret.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • getDefaultInstanceForType

        public Secret getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Secret build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Secret buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Secret.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • setField

        public Secret.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • clearField

        public Secret.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • clearOneof

        public Secret.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • setRepeatedField

        public Secret.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • addRepeatedField

        public Secret.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • mergeFrom

        public Secret.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Secret.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getKeyName in interface SecretOrBuilder
        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:
        getKeyNameBytes in interface SecretOrBuilder
        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:
        getCipherText in interface SecretOrBuilder
        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:
        getCipherTextBytes in interface SecretOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
      • mergeUnknownFields

        public final Secret.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>