Package k8s.io.api.core.v1
Class Generated.Secret
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.Secret
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.SecretOrBuilder
- Enclosing class:
- Generated
public static final class Generated.Secret extends com.google.protobuf.GeneratedMessageV3 implements Generated.SecretOrBuilder
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
Protobuf typek8s.io.api.core.v1.Secret- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.Secret.BuilderSecret holds secret data of a certain type.-
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 intDATA_FIELD_NUMBERstatic intIMMUTABLE_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.Secret>PARSERDeprecated.static intSTRINGDATA_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsData(String key)Data contains the secret data.booleancontainsStringData(String key)stringData allows specifying non-binary secret data in string form.booleanequals(Object obj)Map<String,com.google.protobuf.ByteString>getData()Deprecated.intgetDataCount()Data contains the secret data.Map<String,com.google.protobuf.ByteString>getDataMap()Data contains the secret data.com.google.protobuf.ByteStringgetDataOrDefault(String key, com.google.protobuf.ByteString defaultValue)Data contains the secret data.com.google.protobuf.ByteStringgetDataOrThrow(String key)Data contains the secret data.static Generated.SecretgetDefaultInstance()Generated.SecretgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetImmutable()Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).Generated.ObjectMetagetMetadata()Standard object's metadata.Generated.ObjectMetaOrBuildergetMetadataOrBuilder()Standard object's metadata.com.google.protobuf.Parser<Generated.Secret>getParserForType()intgetSerializedSize()Map<String,String>getStringData()Deprecated.intgetStringDataCount()stringData allows specifying non-binary secret data in string form.Map<String,String>getStringDataMap()stringData allows specifying non-binary secret data in string form.StringgetStringDataOrDefault(String key, String defaultValue)stringData allows specifying non-binary secret data in string form.StringgetStringDataOrThrow(String key)stringData allows specifying non-binary secret data in string form.StringgetType()Used to facilitate programmatic handling of secret data.com.google.protobuf.ByteStringgetTypeBytes()Used to facilitate programmatic handling of secret data.inthashCode()booleanhasImmutable()Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).booleanhasMetadata()Standard object's metadata.booleanhasType()Used to facilitate programmatic handling of secret data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Generated.Secret.BuildernewBuilder()static Generated.Secret.BuildernewBuilder(Generated.Secret prototype)Generated.Secret.BuildernewBuilderForType()protected Generated.Secret.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.SecretparseDelimitedFrom(InputStream input)static Generated.SecretparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretparseFrom(byte[] data)static Generated.SecretparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretparseFrom(com.google.protobuf.ByteString data)static Generated.SecretparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretparseFrom(com.google.protobuf.CodedInputStream input)static Generated.SecretparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretparseFrom(InputStream input)static Generated.SecretparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecretparseFrom(ByteBuffer data)static Generated.SecretparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.Secret>parser()Generated.Secret.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, 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
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMMUTABLE_FIELD_NUMBER
public static final int IMMUTABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRINGDATA_FIELD_NUMBER
public static final int STRINGDATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.Secret> 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()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasMetadata
public boolean hasMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;- Specified by:
hasMetadatain interfaceGenerated.SecretOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public Generated.ObjectMeta getMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;- Specified by:
getMetadatain interfaceGenerated.SecretOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public Generated.ObjectMetaOrBuilder getMetadataOrBuilder()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;- Specified by:
getMetadataOrBuilderin interfaceGenerated.SecretOrBuilder
-
hasImmutable
public boolean hasImmutable()
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. +optional
optional bool immutable = 5;- Specified by:
hasImmutablein interfaceGenerated.SecretOrBuilder- Returns:
- Whether the immutable field is set.
-
getImmutable
public boolean getImmutable()
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. +optional
optional bool immutable = 5;- Specified by:
getImmutablein interfaceGenerated.SecretOrBuilder- Returns:
- The immutable.
-
getDataCount
public int getDataCount()
Description copied from interface:Generated.SecretOrBuilderData contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;- Specified by:
getDataCountin interfaceGenerated.SecretOrBuilder
-
containsData
public boolean containsData(String key)
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;- Specified by:
containsDatain interfaceGenerated.SecretOrBuilder
-
getData
@Deprecated public Map<String,com.google.protobuf.ByteString> getData()
Deprecated.UsegetDataMap()instead.- Specified by:
getDatain interfaceGenerated.SecretOrBuilder
-
getDataMap
public Map<String,com.google.protobuf.ByteString> getDataMap()
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;- Specified by:
getDataMapin interfaceGenerated.SecretOrBuilder
-
getDataOrDefault
public com.google.protobuf.ByteString getDataOrDefault(String key, com.google.protobuf.ByteString defaultValue)
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;- Specified by:
getDataOrDefaultin interfaceGenerated.SecretOrBuilder
-
getDataOrThrow
public com.google.protobuf.ByteString getDataOrThrow(String key)
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 +optional
map<string, bytes> data = 2;- Specified by:
getDataOrThrowin interfaceGenerated.SecretOrBuilder
-
getStringDataCount
public int getStringDataCount()
Description copied from interface:Generated.SecretOrBuilderstringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;- Specified by:
getStringDataCountin interfaceGenerated.SecretOrBuilder
-
containsStringData
public boolean containsStringData(String key)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;- Specified by:
containsStringDatain interfaceGenerated.SecretOrBuilder
-
getStringData
@Deprecated public Map<String,String> getStringData()
Deprecated.UsegetStringDataMap()instead.- Specified by:
getStringDatain interfaceGenerated.SecretOrBuilder
-
getStringDataMap
public Map<String,String> getStringDataMap()
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;- Specified by:
getStringDataMapin interfaceGenerated.SecretOrBuilder
-
getStringDataOrDefault
public String getStringDataOrDefault(String key, String defaultValue)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;- Specified by:
getStringDataOrDefaultin interfaceGenerated.SecretOrBuilder
-
getStringDataOrThrow
public String getStringDataOrThrow(String key)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;- Specified by:
getStringDataOrThrowin interfaceGenerated.SecretOrBuilder
-
hasType
public boolean hasType()
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;- Specified by:
hasTypein interfaceGenerated.SecretOrBuilder- Returns:
- Whether the type field is set.
-
getType
public String getType()
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;- Specified by:
getTypein interfaceGenerated.SecretOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;- Specified by:
getTypeBytesin interfaceGenerated.SecretOrBuilder- Returns:
- The bytes for type.
-
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.Secret parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Secret parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Secret parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Secret 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.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Secret parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Secret parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.Secret parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.Secret parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.Secret parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.Secret parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.Secret parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.Secret.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.Secret.Builder newBuilder()
-
newBuilder
public static Generated.Secret.Builder newBuilder(Generated.Secret prototype)
-
toBuilder
public Generated.Secret.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.Secret.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.Secret getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.Secret> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.Secret> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.Secret getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-