Package flyteidl.core
Class Security.Secret.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Security.Secret.Builder>
-
- flyteidl.core.Security.Secret.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Security.SecretOrBuilder,Cloneable
- Enclosing class:
- Security.Secret
public static final class Security.Secret.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Security.Secret.Builder> implements Security.SecretOrBuilder
Secret encapsulates information about the secret a task needs to proceed. An environment variable FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if secrets are passed through environment variables. FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets are passed through file mounts.
Protobuf typeflyteidl.core.Secret
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private Objectgroup_private ObjectgroupVersion_private Objectkey_private intmountRequirement_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Security.Secret.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Security.Secretbuild()Security.SecretbuildPartial()private voidbuildPartial0(Security.Secret result)Security.Secret.Builderclear()Security.Secret.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Security.Secret.BuilderclearGroup()The name of the secret group where to find the key referenced below.Security.Secret.BuilderclearGroupVersion()The group version to fetch.Security.Secret.BuilderclearKey()The name of the secret to mount.Security.Secret.BuilderclearMountRequirement()mount_requirement is optional.Security.Secret.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Security.Secret.Builderclone()Security.SecretgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGroup()The name of the secret group where to find the key referenced below.com.google.protobuf.ByteStringgetGroupBytes()The name of the secret group where to find the key referenced below.StringgetGroupVersion()The group version to fetch.com.google.protobuf.ByteStringgetGroupVersionBytes()The group version to fetch.StringgetKey()The name of the secret to mount.com.google.protobuf.ByteStringgetKeyBytes()The name of the secret to mount.Security.Secret.MountTypegetMountRequirement()mount_requirement is optional.intgetMountRequirementValue()mount_requirement is optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Security.Secret.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Security.Secret.BuildermergeFrom(com.google.protobuf.Message other)Security.Secret.BuildermergeFrom(Security.Secret other)Security.Secret.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Security.Secret.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Security.Secret.BuildersetGroup(String value)The name of the secret group where to find the key referenced below.Security.Secret.BuildersetGroupBytes(com.google.protobuf.ByteString value)The name of the secret group where to find the key referenced below.Security.Secret.BuildersetGroupVersion(String value)The group version to fetch.Security.Secret.BuildersetGroupVersionBytes(com.google.protobuf.ByteString value)The group version to fetch.Security.Secret.BuildersetKey(String value)The name of the secret to mount.Security.Secret.BuildersetKeyBytes(com.google.protobuf.ByteString value)The name of the secret to mount.Security.Secret.BuildersetMountRequirement(Security.Secret.MountType value)mount_requirement is optional.Security.Secret.BuildersetMountRequirementValue(int value)mount_requirement is optional.Security.Secret.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Security.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<Security.Secret.Builder>
-
clear
public Security.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<Security.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<Security.Secret.Builder>
-
getDefaultInstanceForType
public Security.Secret getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Security.Secret build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Security.Secret buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Security.Secret result)
-
clone
public Security.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<Security.Secret.Builder>
-
setField
public Security.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<Security.Secret.Builder>
-
clearField
public Security.Secret.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.Secret.Builder>
-
clearOneof
public Security.Secret.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.Secret.Builder>
-
setRepeatedField
public Security.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<Security.Secret.Builder>
-
addRepeatedField
public Security.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<Security.Secret.Builder>
-
mergeFrom
public Security.Secret.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Security.Secret.Builder>
-
mergeFrom
public Security.Secret.Builder mergeFrom(Security.Secret other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.Secret.Builder>
-
mergeFrom
public Security.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<Security.Secret.Builder>- Throws:
IOException
-
getGroup
public String getGroup()
The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required
string group = 1;- Specified by:
getGroupin interfaceSecurity.SecretOrBuilder- Returns:
- The group.
-
getGroupBytes
public com.google.protobuf.ByteString getGroupBytes()
The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required
string group = 1;- Specified by:
getGroupBytesin interfaceSecurity.SecretOrBuilder- Returns:
- The bytes for group.
-
setGroup
public Security.Secret.Builder setGroup(String value)
The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required
string group = 1;- Parameters:
value- The group to set.- Returns:
- This builder for chaining.
-
clearGroup
public Security.Secret.Builder clearGroup()
The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required
string group = 1;- Returns:
- This builder for chaining.
-
setGroupBytes
public Security.Secret.Builder setGroupBytes(com.google.protobuf.ByteString value)
The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required
string group = 1;- Parameters:
value- The bytes for group to set.- Returns:
- This builder for chaining.
-
getGroupVersion
public String getGroupVersion()
The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional
string group_version = 2;- Specified by:
getGroupVersionin interfaceSecurity.SecretOrBuilder- Returns:
- The groupVersion.
-
getGroupVersionBytes
public com.google.protobuf.ByteString getGroupVersionBytes()
The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional
string group_version = 2;- Specified by:
getGroupVersionBytesin interfaceSecurity.SecretOrBuilder- Returns:
- The bytes for groupVersion.
-
setGroupVersion
public Security.Secret.Builder setGroupVersion(String value)
The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional
string group_version = 2;- Parameters:
value- The groupVersion to set.- Returns:
- This builder for chaining.
-
clearGroupVersion
public Security.Secret.Builder clearGroupVersion()
The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional
string group_version = 2;- Returns:
- This builder for chaining.
-
setGroupVersionBytes
public Security.Secret.Builder setGroupVersionBytes(com.google.protobuf.ByteString value)
The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional
string group_version = 2;- Parameters:
value- The bytes for groupVersion to set.- Returns:
- This builder for chaining.
-
getKey
public String getKey()
The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional
string key = 3;- Specified by:
getKeyin interfaceSecurity.SecretOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional
string key = 3;- Specified by:
getKeyBytesin interfaceSecurity.SecretOrBuilder- Returns:
- The bytes for key.
-
setKey
public Security.Secret.Builder setKey(String value)
The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional
string key = 3;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public Security.Secret.Builder clearKey()
The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional
string key = 3;- Returns:
- This builder for chaining.
-
setKeyBytes
public Security.Secret.Builder setKeyBytes(com.google.protobuf.ByteString value)
The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional
string key = 3;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
getMountRequirementValue
public int getMountRequirementValue()
mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional
.flyteidl.core.Secret.MountType mount_requirement = 4;- Specified by:
getMountRequirementValuein interfaceSecurity.SecretOrBuilder- Returns:
- The enum numeric value on the wire for mountRequirement.
-
setMountRequirementValue
public Security.Secret.Builder setMountRequirementValue(int value)
mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional
.flyteidl.core.Secret.MountType mount_requirement = 4;- Parameters:
value- The enum numeric value on the wire for mountRequirement to set.- Returns:
- This builder for chaining.
-
getMountRequirement
public Security.Secret.MountType getMountRequirement()
mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional
.flyteidl.core.Secret.MountType mount_requirement = 4;- Specified by:
getMountRequirementin interfaceSecurity.SecretOrBuilder- Returns:
- The mountRequirement.
-
setMountRequirement
public Security.Secret.Builder setMountRequirement(Security.Secret.MountType value)
mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional
.flyteidl.core.Secret.MountType mount_requirement = 4;- Parameters:
value- The mountRequirement to set.- Returns:
- This builder for chaining.
-
clearMountRequirement
public Security.Secret.Builder clearMountRequirement()
mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional
.flyteidl.core.Secret.MountType mount_requirement = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Security.Secret.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.Secret.Builder>
-
mergeUnknownFields
public final Security.Secret.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.Secret.Builder>
-
-