public static final class V1.Secret.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder> implements V1.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 type
k8s.io.api.core.v1.Secret| Modifier and Type | Method and Description |
|---|---|
V1.Secret.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.Secret |
build() |
V1.Secret |
buildPartial() |
V1.Secret.Builder |
clear() |
V1.Secret.Builder |
clearData() |
V1.Secret.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.Secret.Builder |
clearMetadata()
Standard object's metadata.
|
V1.Secret.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.Secret.Builder |
clearStringData() |
V1.Secret.Builder |
clearType()
Used to facilitate programmatic handling of secret data.
|
V1.Secret.Builder |
clone() |
boolean |
containsData(String key)
Data contains the secret data.
|
boolean |
containsStringData(String key)
stringData allows specifying non-binary secret data in string form.
|
Map<String,com.google.protobuf.ByteString> |
getData()
Deprecated.
|
int |
getDataCount()
Data contains the secret data.
|
Map<String,com.google.protobuf.ByteString> |
getDataMap()
Data contains the secret data.
|
com.google.protobuf.ByteString |
getDataOrDefault(String key,
com.google.protobuf.ByteString defaultValue)
Data contains the secret data.
|
com.google.protobuf.ByteString |
getDataOrThrow(String key)
Data contains the secret data.
|
V1.Secret |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Meta.ObjectMeta |
getMetadata()
Standard object's metadata.
|
Meta.ObjectMeta.Builder |
getMetadataBuilder()
Standard object's metadata.
|
Meta.ObjectMetaOrBuilder |
getMetadataOrBuilder()
Standard object's metadata.
|
Map<String,com.google.protobuf.ByteString> |
getMutableData()
Deprecated.
|
Map<String,String> |
getMutableStringData()
Deprecated.
|
Map<String,String> |
getStringData()
Deprecated.
|
int |
getStringDataCount()
stringData allows specifying non-binary secret data in string form.
|
Map<String,String> |
getStringDataMap()
stringData allows specifying non-binary secret data in string form.
|
String |
getStringDataOrDefault(String key,
String defaultValue)
stringData allows specifying non-binary secret data in string form.
|
String |
getStringDataOrThrow(String key)
stringData allows specifying non-binary secret data in string form.
|
String |
getType()
Used to facilitate programmatic handling of secret data.
|
com.google.protobuf.ByteString |
getTypeBytes()
Used to facilitate programmatic handling of secret data.
|
boolean |
hasMetadata()
Standard object's metadata.
|
boolean |
hasType()
Used to facilitate programmatic handling of secret data.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
V1.Secret.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.Secret.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.Secret.Builder |
mergeFrom(V1.Secret other) |
V1.Secret.Builder |
mergeMetadata(Meta.ObjectMeta value)
Standard object's metadata.
|
V1.Secret.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.Secret.Builder |
putAllData(Map<String,com.google.protobuf.ByteString> values)
Data contains the secret data.
|
V1.Secret.Builder |
putAllStringData(Map<String,String> values)
stringData allows specifying non-binary secret data in string form.
|
V1.Secret.Builder |
putData(String key,
com.google.protobuf.ByteString value)
Data contains the secret data.
|
V1.Secret.Builder |
putStringData(String key,
String value)
stringData allows specifying non-binary secret data in string form.
|
V1.Secret.Builder |
removeData(String key)
Data contains the secret data.
|
V1.Secret.Builder |
removeStringData(String key)
stringData allows specifying non-binary secret data in string form.
|
V1.Secret.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.Secret.Builder |
setMetadata(Meta.ObjectMeta.Builder builderForValue)
Standard object's metadata.
|
V1.Secret.Builder |
setMetadata(Meta.ObjectMeta value)
Standard object's metadata.
|
V1.Secret.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.Secret.Builder |
setType(String value)
Used to facilitate programmatic handling of secret data.
|
V1.Secret.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
Used to facilitate programmatic handling of secret data.
|
V1.Secret.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.Secret build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.Secret buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.Secret.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Secret.Builder>public V1.Secret.Builder mergeFrom(V1.Secret other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public V1.Secret.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Secret.Builder>IOExceptionpublic boolean hasMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;hasMetadata in interface V1.SecretOrBuilderpublic Meta.ObjectMeta getMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;getMetadata in interface V1.SecretOrBuilderpublic V1.Secret.Builder setMetadata(Meta.ObjectMeta value)
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;public V1.Secret.Builder setMetadata(Meta.ObjectMeta.Builder builderForValue)
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;public V1.Secret.Builder mergeMetadata(Meta.ObjectMeta value)
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;public V1.Secret.Builder clearMetadata()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;public Meta.ObjectMeta.Builder getMetadataBuilder()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;public Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;getMetadataOrBuilder in interface V1.SecretOrBuilderpublic int getDataCount()
V1.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;getDataCount in interface V1.SecretOrBuilderpublic 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;containsData in interface V1.SecretOrBuilder@Deprecated public Map<String,com.google.protobuf.ByteString> getData()
getDataMap() instead.getData in interface V1.SecretOrBuilderpublic 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;getDataMap in interface V1.SecretOrBuilderpublic 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;getDataOrDefault in interface V1.SecretOrBuilderpublic 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;getDataOrThrow in interface V1.SecretOrBuilderpublic V1.Secret.Builder clearData()
public V1.Secret.Builder removeData(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;@Deprecated public Map<String,com.google.protobuf.ByteString> getMutableData()
public V1.Secret.Builder putData(String key, com.google.protobuf.ByteString value)
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;public V1.Secret.Builder putAllData(Map<String,com.google.protobuf.ByteString> values)
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;public int getStringDataCount()
V1.SecretOrBuilderstringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;getStringDataCount in interface V1.SecretOrBuilderpublic boolean containsStringData(String key)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;containsStringData in interface V1.SecretOrBuilder@Deprecated public Map<String,String> getStringData()
getStringDataMap() instead.getStringData in interface V1.SecretOrBuilderpublic Map<String,String> getStringDataMap()
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;getStringDataMap in interface V1.SecretOrBuilderpublic String getStringDataOrDefault(String key, String defaultValue)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;getStringDataOrDefault in interface V1.SecretOrBuilderpublic String getStringDataOrThrow(String key)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;getStringDataOrThrow in interface V1.SecretOrBuilderpublic V1.Secret.Builder clearStringData()
public V1.Secret.Builder removeStringData(String key)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;@Deprecated public Map<String,String> getMutableStringData()
public V1.Secret.Builder putStringData(String key, String value)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;public V1.Secret.Builder putAllStringData(Map<String,String> values)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false +optional
map<string, string> stringData = 4;public boolean hasType()
Used to facilitate programmatic handling of secret data. +optional
optional string type = 3;hasType in interface V1.SecretOrBuilderpublic String getType()
Used to facilitate programmatic handling of secret data. +optional
optional string type = 3;getType in interface V1.SecretOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Used to facilitate programmatic handling of secret data. +optional
optional string type = 3;getTypeBytes in interface V1.SecretOrBuilderpublic V1.Secret.Builder setType(String value)
Used to facilitate programmatic handling of secret data. +optional
optional string type = 3;public V1.Secret.Builder clearType()
Used to facilitate programmatic handling of secret data. +optional
optional string type = 3;public V1.Secret.Builder setTypeBytes(com.google.protobuf.ByteString value)
Used to facilitate programmatic handling of secret data. +optional
optional string type = 3;public final V1.Secret.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>public final V1.Secret.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>Copyright © 2018. All rights reserved.