Package io.kubernetes.client.proto
Class V1.Secret.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
io.kubernetes.client.proto.V1.Secret.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1.SecretOrBuilder
,Cloneable
- Enclosing class:
- V1.Secret
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).Standard object's metadata.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Used to facilitate programmatic handling of secret data.clone()
boolean
containsData
(String key) Data contains the secret data.boolean
containsStringData
(String key) stringData allows specifying non-binary secret data in string form.getData()
Deprecated.int
Data contains the secret data.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.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).Standard object's metadata.Standard object's metadata.Standard object's metadata.Deprecated.Deprecated.Deprecated.int
stringData allows specifying non-binary secret data in string form.stringData allows specifying non-binary secret data in string form.getStringDataOrDefault
(String key, String defaultValue) stringData allows specifying non-binary secret data in string form.stringData allows specifying non-binary secret data in string form.getType()
Used to facilitate programmatic handling of secret data.com.google.protobuf.ByteString
Used to facilitate programmatic handling of secret data.boolean
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).boolean
Standard object's metadata.boolean
hasType()
Used to facilitate programmatic handling of secret data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeMetadata
(Meta.ObjectMeta value) Standard object's metadata.final V1.Secret.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllData
(Map<String, com.google.protobuf.ByteString> values) Data contains the secret data.putAllStringData
(Map<String, String> values) stringData allows specifying non-binary secret data in string form.Data contains the secret data.putStringData
(String key, String value) stringData allows specifying non-binary secret data in string form.removeData
(String key) Data contains the secret data.removeStringData
(String key) stringData allows specifying non-binary secret data in string form.setImmutable
(boolean value) Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).setMetadata
(Meta.ObjectMeta value) Standard object's metadata.setMetadata
(Meta.ObjectMeta.Builder builderForValue) Standard object's metadata.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Used to facilitate programmatic handling of secret data.setTypeBytes
(com.google.protobuf.ByteString value) Used to facilitate programmatic handling of secret data.final V1.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, 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
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 Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
setField
public V1.Secret.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
setRepeatedField
public V1.Secret.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
addRepeatedField
public V1.Secret.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.Secret.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
mergeFrom
public V1.Secret.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.Secret.Builder>
- Throws:
IOException
-
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:
hasMetadata
in interfaceV1.SecretOrBuilder
-
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:
getMetadata
in interfaceV1.SecretOrBuilder
-
setMetadata
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;
-
setMetadata
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;
-
mergeMetadata
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;
-
clearMetadata
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;
-
getMetadataBuilder
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;
-
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:
getMetadataOrBuilder
in interfaceV1.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:
hasImmutable
in interfaceV1.SecretOrBuilder
-
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:
getImmutable
in interfaceV1.SecretOrBuilder
-
setImmutable
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;
-
clearImmutable
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;
-
getDataCount
public int getDataCount()Description copied from interface:V1.SecretOrBuilder
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:
getDataCount
in interfaceV1.SecretOrBuilder
-
containsData
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:
containsData
in interfaceV1.SecretOrBuilder
-
getData
Deprecated.UsegetDataMap()
instead.- Specified by:
getData
in interfaceV1.SecretOrBuilder
-
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:
getDataMap
in interfaceV1.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:
getDataOrDefault
in interfaceV1.SecretOrBuilder
-
getDataOrThrow
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:
getDataOrThrow
in interfaceV1.SecretOrBuilder
-
clearData
-
removeData
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;
-
getMutableData
Deprecated.Use alternate mutation accessors instead. -
putData
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;
-
putAllData
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;
-
getStringDataCount
public int getStringDataCount()Description copied from interface:V1.SecretOrBuilder
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:
getStringDataCount
in interfaceV1.SecretOrBuilder
-
containsStringData
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:
containsStringData
in interfaceV1.SecretOrBuilder
-
getStringData
Deprecated.UsegetStringDataMap()
instead.- Specified by:
getStringData
in interfaceV1.SecretOrBuilder
-
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:
getStringDataMap
in interfaceV1.SecretOrBuilder
-
getStringDataOrDefault
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:
getStringDataOrDefault
in interfaceV1.SecretOrBuilder
-
getStringDataOrThrow
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:
getStringDataOrThrow
in interfaceV1.SecretOrBuilder
-
clearStringData
-
removeStringData
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;
-
getMutableStringData
Deprecated.Use alternate mutation accessors instead. -
putStringData
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;
-
putAllStringData
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;
-
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:
hasType
in interfaceV1.SecretOrBuilder
-
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:
getType
in interfaceV1.SecretOrBuilder
-
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:
getTypeBytes
in interfaceV1.SecretOrBuilder
-
setType
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;
-
clearType
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;
-
setTypeBytes
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types +optional
optional string type = 3;
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-
mergeUnknownFields
public final V1.Secret.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
-