Class Generated.ConfigMap

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.ConfigMapOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.ConfigMap
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.ConfigMapOrBuilder
     ConfigMap holds configuration data for pods to consume.
     
    Protobuf type k8s.io.api.core.v1.ConfigMap
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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:
        hasMetadata in interface Generated.ConfigMapOrBuilder
        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:
        getMetadata in interface Generated.ConfigMapOrBuilder
        Returns:
        The metadata.
      • hasImmutable

        public boolean hasImmutable()
         Immutable, if set to true, ensures that data stored in the ConfigMap 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 = 4;
        Specified by:
        hasImmutable in interface Generated.ConfigMapOrBuilder
        Returns:
        Whether the immutable field is set.
      • getImmutable

        public boolean getImmutable()
         Immutable, if set to true, ensures that data stored in the ConfigMap 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 = 4;
        Specified by:
        getImmutable in interface Generated.ConfigMapOrBuilder
        Returns:
        The immutable.
      • getDataCount

        public int getDataCount()
        Description copied from interface: Generated.ConfigMapOrBuilder
         Data contains the configuration data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         Values with non-UTF-8 byte sequences must use the BinaryData field.
         The keys stored in Data must not overlap with the keys in
         the BinaryData field, this is enforced during validation process.
         +optional
         
        map<string, string> data = 2;
        Specified by:
        getDataCount in interface Generated.ConfigMapOrBuilder
      • containsData

        public boolean containsData​(String key)
         Data contains the configuration data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         Values with non-UTF-8 byte sequences must use the BinaryData field.
         The keys stored in Data must not overlap with the keys in
         the BinaryData field, this is enforced during validation process.
         +optional
         
        map<string, string> data = 2;
        Specified by:
        containsData in interface Generated.ConfigMapOrBuilder
      • getDataMap

        public Map<String,​String> getDataMap()
         Data contains the configuration data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         Values with non-UTF-8 byte sequences must use the BinaryData field.
         The keys stored in Data must not overlap with the keys in
         the BinaryData field, this is enforced during validation process.
         +optional
         
        map<string, string> data = 2;
        Specified by:
        getDataMap in interface Generated.ConfigMapOrBuilder
      • getDataOrDefault

        public String getDataOrDefault​(String key,
                                       String defaultValue)
         Data contains the configuration data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         Values with non-UTF-8 byte sequences must use the BinaryData field.
         The keys stored in Data must not overlap with the keys in
         the BinaryData field, this is enforced during validation process.
         +optional
         
        map<string, string> data = 2;
        Specified by:
        getDataOrDefault in interface Generated.ConfigMapOrBuilder
      • getDataOrThrow

        public String getDataOrThrow​(String key)
         Data contains the configuration data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         Values with non-UTF-8 byte sequences must use the BinaryData field.
         The keys stored in Data must not overlap with the keys in
         the BinaryData field, this is enforced during validation process.
         +optional
         
        map<string, string> data = 2;
        Specified by:
        getDataOrThrow in interface Generated.ConfigMapOrBuilder
      • getBinaryDataCount

        public int getBinaryDataCount()
        Description copied from interface: Generated.ConfigMapOrBuilder
         BinaryData contains the binary data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         BinaryData can contain byte sequences that are not in the UTF-8 range.
         The keys stored in BinaryData must not overlap with the ones in
         the Data field, this is enforced during validation process.
         Using this field will require 1.10+ apiserver and
         kubelet.
         +optional
         
        map<string, bytes> binaryData = 3;
        Specified by:
        getBinaryDataCount in interface Generated.ConfigMapOrBuilder
      • containsBinaryData

        public boolean containsBinaryData​(String key)
         BinaryData contains the binary data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         BinaryData can contain byte sequences that are not in the UTF-8 range.
         The keys stored in BinaryData must not overlap with the ones in
         the Data field, this is enforced during validation process.
         Using this field will require 1.10+ apiserver and
         kubelet.
         +optional
         
        map<string, bytes> binaryData = 3;
        Specified by:
        containsBinaryData in interface Generated.ConfigMapOrBuilder
      • getBinaryDataMap

        public Map<String,​com.google.protobuf.ByteString> getBinaryDataMap()
         BinaryData contains the binary data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         BinaryData can contain byte sequences that are not in the UTF-8 range.
         The keys stored in BinaryData must not overlap with the ones in
         the Data field, this is enforced during validation process.
         Using this field will require 1.10+ apiserver and
         kubelet.
         +optional
         
        map<string, bytes> binaryData = 3;
        Specified by:
        getBinaryDataMap in interface Generated.ConfigMapOrBuilder
      • getBinaryDataOrDefault

        public com.google.protobuf.ByteString getBinaryDataOrDefault​(String key,
                                                                     com.google.protobuf.ByteString defaultValue)
         BinaryData contains the binary data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         BinaryData can contain byte sequences that are not in the UTF-8 range.
         The keys stored in BinaryData must not overlap with the ones in
         the Data field, this is enforced during validation process.
         Using this field will require 1.10+ apiserver and
         kubelet.
         +optional
         
        map<string, bytes> binaryData = 3;
        Specified by:
        getBinaryDataOrDefault in interface Generated.ConfigMapOrBuilder
      • getBinaryDataOrThrow

        public com.google.protobuf.ByteString getBinaryDataOrThrow​(String key)
         BinaryData contains the binary data.
         Each key must consist of alphanumeric characters, '-', '_' or '.'.
         BinaryData can contain byte sequences that are not in the UTF-8 range.
         The keys stored in BinaryData must not overlap with the ones in
         the Data field, this is enforced during validation process.
         Using this field will require 1.10+ apiserver and
         kubelet.
         +optional
         
        map<string, bytes> binaryData = 3;
        Specified by:
        getBinaryDataOrThrow in interface Generated.ConfigMapOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Generated.ConfigMap parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ConfigMap parseFrom​(ByteBuffer data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ConfigMap parseFrom​(com.google.protobuf.ByteString data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ConfigMap 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.ConfigMap parseFrom​(byte[] data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ConfigMap parseFrom​(byte[] data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ConfigMap parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Generated.ConfigMap.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Generated.ConfigMap.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Generated.ConfigMap.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.ConfigMap> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Generated.ConfigMap getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder