Interface Generated.SecretOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Generated.Secret, Generated.Secret.Builder
    Enclosing class:
    Generated

    public static interface Generated.SecretOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasMetadata

        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;
        Returns:
        Whether the metadata field is set.
      • getMetadata

        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;
        Returns:
        The metadata.
      • getMetadataOrBuilder

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

        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;
        Returns:
        Whether the immutable field is set.
      • getImmutable

        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;
        Returns:
        The immutable.
      • getDataCount

        int getDataCount()
         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

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

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

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

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

        int getStringDataCount()
         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;
      • containsStringData

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

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

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

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

        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;
        Returns:
        Whether the type field is set.
      • getType

        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;
        Returns:
        The type.
      • getTypeBytes

        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;
        Returns:
        The bytes for type.