Class V1.Secret.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • clear

      public V1.Secret.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • getDefaultInstanceForType

      public V1.Secret getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public V1.Secret build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1.Secret buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public V1.Secret.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • clearField

      public V1.Secret.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • clearOneof

      public V1.Secret.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • mergeFrom

      public V1.Secret.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Secret.Builder>
    • mergeFrom

      public V1.Secret.Builder mergeFrom(V1.Secret other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface V1.SecretOrBuilder
    • getMetadata

      public Meta.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:
      getMetadata in interface V1.SecretOrBuilder
    • setMetadata

      public V1.Secret.Builder setMetadata(Meta.ObjectMeta value)
       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

      public V1.Secret.Builder setMetadata(Meta.ObjectMeta.Builder builderForValue)
       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

      public V1.Secret.Builder mergeMetadata(Meta.ObjectMeta value)
       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

      public V1.Secret.Builder 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

      public Meta.ObjectMeta.Builder 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

      public Meta.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:
      getMetadataOrBuilder in interface V1.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 interface V1.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 interface V1.SecretOrBuilder
    • setImmutable

      public V1.Secret.Builder setImmutable(boolean value)
       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

      public V1.Secret.Builder 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 interface V1.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:
      containsData in interface V1.SecretOrBuilder
    • getData

      @Deprecated public Map<String,com.google.protobuf.ByteString> getData()
      Deprecated.
      Use getDataMap() instead.
      Specified by:
      getData in interface V1.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:
      getDataMap in interface V1.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 interface V1.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:
      getDataOrThrow in interface V1.SecretOrBuilder
    • clearData

      public V1.Secret.Builder clearData()
    • removeData

      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;
    • getMutableData

      @Deprecated public Map<String,com.google.protobuf.ByteString> getMutableData()
      Deprecated.
      Use alternate mutation accessors instead.
    • putData

      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;
    • putAllData

      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;
    • 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 interface V1.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:
      containsStringData in interface V1.SecretOrBuilder
    • getStringData

      @Deprecated public Map<String,String> getStringData()
      Deprecated.
      Use getStringDataMap() instead.
      Specified by:
      getStringData in interface V1.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:
      getStringDataMap in interface V1.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:
      getStringDataOrDefault in interface V1.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:
      getStringDataOrThrow in interface V1.SecretOrBuilder
    • clearStringData

      public V1.Secret.Builder clearStringData()
    • removeStringData

      public V1.Secret.Builder removeStringData(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;
    • getMutableStringData

      @Deprecated public Map<String,String> getMutableStringData()
      Deprecated.
      Use alternate mutation accessors instead.
    • putStringData

      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 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

      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 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 interface V1.SecretOrBuilder
    • 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:
      getType in interface V1.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 interface V1.SecretOrBuilder
    • setType

      public V1.Secret.Builder setType(String value)
       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

      public V1.Secret.Builder 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

      public V1.Secret.Builder setTypeBytes(com.google.protobuf.ByteString value)
       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

      public final V1.Secret.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>
    • mergeUnknownFields

      public final V1.Secret.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Secret.Builder>