Package k8s.io.api.core.v1
Class Generated.SecretVolumeSource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.SecretVolumeSource
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.SecretVolumeSourceOrBuilder
- Enclosing class:
- Generated
public static final class Generated.SecretVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements Generated.SecretVolumeSourceOrBuilder
Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.
Protobuf typek8s.io.api.core.v1.SecretVolumeSource- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.SecretVolumeSource.BuilderAdapts a Secret into a volume.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULTMODE_FIELD_NUMBERstatic intITEMS_FIELD_NUMBERstatic intOPTIONAL_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.SecretVolumeSource>PARSERDeprecated.static intSECRETNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Generated.SecretVolumeSourcegetDefaultInstance()Generated.SecretVolumeSourcegetDefaultInstanceForType()intgetDefaultMode()defaultMode is Optional: mode bits used to set permissions on created files by default.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Generated.KeyToPathgetItems(int index)items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value.intgetItemsCount()items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value.List<Generated.KeyToPath>getItemsList()items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value.Generated.KeyToPathOrBuildergetItemsOrBuilder(int index)items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value.List<? extends Generated.KeyToPathOrBuilder>getItemsOrBuilderList()items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value.booleangetOptional()optional field specify whether the Secret or its keys must be defined +optionalcom.google.protobuf.Parser<Generated.SecretVolumeSource>getParserForType()StringgetSecretName()secretName is the name of the secret in the pod's namespace to use.com.google.protobuf.ByteStringgetSecretNameBytes()secretName is the name of the secret in the pod's namespace to use.intgetSerializedSize()booleanhasDefaultMode()defaultMode is Optional: mode bits used to set permissions on created files by default.inthashCode()booleanhasOptional()optional field specify whether the Secret or its keys must be defined +optionalbooleanhasSecretName()secretName is the name of the secret in the pod's namespace to use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.SecretVolumeSource.BuildernewBuilder()static Generated.SecretVolumeSource.BuildernewBuilder(Generated.SecretVolumeSource prototype)Generated.SecretVolumeSource.BuildernewBuilderForType()protected Generated.SecretVolumeSource.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.SecretVolumeSourceparseDelimitedFrom(InputStream input)static Generated.SecretVolumeSourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretVolumeSourceparseFrom(byte[] data)static Generated.SecretVolumeSourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretVolumeSourceparseFrom(com.google.protobuf.ByteString data)static Generated.SecretVolumeSourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretVolumeSourceparseFrom(com.google.protobuf.CodedInputStream input)static Generated.SecretVolumeSourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretVolumeSourceparseFrom(InputStream input)static Generated.SecretVolumeSourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretVolumeSourceparseFrom(ByteBuffer data)static Generated.SecretVolumeSourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.SecretVolumeSource>parser()Generated.SecretVolumeSource.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SECRETNAME_FIELD_NUMBER
public static final int SECRETNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULTMODE_FIELD_NUMBER
public static final int DEFAULTMODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONAL_FIELD_NUMBER
public static final int OPTIONAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.SecretVolumeSource> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasSecretName
public boolean hasSecretName()
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Specified by:
hasSecretNamein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- Whether the secretName field is set.
-
getSecretName
public String getSecretName()
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Specified by:
getSecretNamein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The secretName.
-
getSecretNameBytes
public com.google.protobuf.ByteString getSecretNameBytes()
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Specified by:
getSecretNameBytesin interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The bytes for secretName.
-
getItemsList
public List<Generated.KeyToPath> getItemsList()
items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsListin interfaceGenerated.SecretVolumeSourceOrBuilder
-
getItemsOrBuilderList
public List<? extends Generated.KeyToPathOrBuilder> getItemsOrBuilderList()
items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsOrBuilderListin interfaceGenerated.SecretVolumeSourceOrBuilder
-
getItemsCount
public int getItemsCount()
items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsCountin interfaceGenerated.SecretVolumeSourceOrBuilder
-
getItems
public Generated.KeyToPath getItems(int index)
items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsin interfaceGenerated.SecretVolumeSourceOrBuilder
-
getItemsOrBuilder
public Generated.KeyToPathOrBuilder getItemsOrBuilder(int index)
items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsOrBuilderin interfaceGenerated.SecretVolumeSourceOrBuilder
-
hasDefaultMode
public boolean hasDefaultMode()
defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional
optional int32 defaultMode = 3;- Specified by:
hasDefaultModein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- Whether the defaultMode field is set.
-
getDefaultMode
public int getDefaultMode()
defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional
optional int32 defaultMode = 3;- Specified by:
getDefaultModein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The defaultMode.
-
hasOptional
public boolean hasOptional()
optional field specify whether the Secret or its keys must be defined +optional
optional bool optional = 4;- Specified by:
hasOptionalin interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- Whether the optional field is set.
-
getOptional
public boolean getOptional()
optional field specify whether the Secret or its keys must be defined +optional
optional bool optional = 4;- Specified by:
getOptionalin interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The optional.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.SecretVolumeSource parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.SecretVolumeSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.SecretVolumeSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.SecretVolumeSource.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.SecretVolumeSource.Builder newBuilder()
-
newBuilder
public static Generated.SecretVolumeSource.Builder newBuilder(Generated.SecretVolumeSource prototype)
-
toBuilder
public Generated.SecretVolumeSource.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.SecretVolumeSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.SecretVolumeSource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.SecretVolumeSource> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.SecretVolumeSource> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.SecretVolumeSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-