Class Generated.ConfigMapProjection.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.ConfigMapProjectionOrBuilder
    Enclosing class:
    Generated.ConfigMapProjection

    public static final class Generated.ConfigMapProjection.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ConfigMapProjection.Builder>
    implements Generated.ConfigMapProjectionOrBuilder
     Adapts a ConfigMap into a projected volume.
    
     The contents of the target ConfigMap's Data field will be presented in a
     projected volume as files using the keys in the Data field as the file names,
     unless the items element is populated with specific mappings of keys to paths.
     Note that this is identical to a configmap volume source without the default
     mode.
     
    Protobuf type k8s.io.api.core.v1.ConfigMapProjection
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ConfigMapProjection.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<Generated.ConfigMapProjection.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.ConfigMapProjection buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ConfigMapProjection.Builder>
      • mergeFrom

        public Generated.ConfigMapProjection.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<Generated.ConfigMapProjection.Builder>
        Throws:
        IOException
      • getItemsList

        public List<Generated.KeyToPath> getItemsList()
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
        Specified by:
        getItemsList in interface Generated.ConfigMapProjectionOrBuilder
      • getItemsCount

        public int getItemsCount()
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
        Specified by:
        getItemsCount in interface Generated.ConfigMapProjectionOrBuilder
      • getItems

        public Generated.KeyToPath getItems​(int index)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
        Specified by:
        getItems in interface Generated.ConfigMapProjectionOrBuilder
      • setItems

        public Generated.ConfigMapProjection.Builder setItems​(int index,
                                                              Generated.KeyToPath value)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • setItems

        public Generated.ConfigMapProjection.Builder setItems​(int index,
                                                              Generated.KeyToPath.Builder builderForValue)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • addItems

        public Generated.ConfigMapProjection.Builder addItems​(Generated.KeyToPath value)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • addItems

        public Generated.ConfigMapProjection.Builder addItems​(int index,
                                                              Generated.KeyToPath value)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • addItems

        public Generated.ConfigMapProjection.Builder addItems​(Generated.KeyToPath.Builder builderForValue)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • addItems

        public Generated.ConfigMapProjection.Builder addItems​(int index,
                                                              Generated.KeyToPath.Builder builderForValue)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • addAllItems

        public Generated.ConfigMapProjection.Builder addAllItems​(Iterable<? extends Generated.KeyToPath> values)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • clearItems

        public Generated.ConfigMapProjection.Builder clearItems()
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • removeItems

        public Generated.ConfigMapProjection.Builder removeItems​(int index)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • getItemsBuilder

        public Generated.KeyToPath.Builder getItemsBuilder​(int index)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • getItemsOrBuilder

        public Generated.KeyToPathOrBuilder getItemsOrBuilder​(int index)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
        Specified by:
        getItemsOrBuilder in interface Generated.ConfigMapProjectionOrBuilder
      • getItemsOrBuilderList

        public List<? extends Generated.KeyToPathOrBuilder> getItemsOrBuilderList()
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
        Specified by:
        getItemsOrBuilderList in interface Generated.ConfigMapProjectionOrBuilder
      • addItemsBuilder

        public Generated.KeyToPath.Builder addItemsBuilder()
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • addItemsBuilder

        public Generated.KeyToPath.Builder addItemsBuilder​(int index)
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • getItemsBuilderList

        public List<Generated.KeyToPath.Builder> getItemsBuilderList()
         items if unspecified, each key-value pair in the Data field of the referenced
         ConfigMap will be projected into the volume as a file whose name is the
         key and content is the value. If specified, the listed keys will be
         projected into the specified paths, and unlisted keys will not be
         present. If a key is specified which is not present in the ConfigMap,
         the volume setup will error unless it is marked optional. Paths must be
         relative and may not contain the '..' path or start with '..'.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.KeyToPath items = 2;
      • hasOptional

        public boolean hasOptional()
         optional specify whether the ConfigMap or its keys must be defined
         +optional
         
        optional bool optional = 4;
        Specified by:
        hasOptional in interface Generated.ConfigMapProjectionOrBuilder
        Returns:
        Whether the optional field is set.
      • getOptional

        public boolean getOptional()
         optional specify whether the ConfigMap or its keys must be defined
         +optional
         
        optional bool optional = 4;
        Specified by:
        getOptional in interface Generated.ConfigMapProjectionOrBuilder
        Returns:
        The optional.
      • setOptional

        public Generated.ConfigMapProjection.Builder setOptional​(boolean value)
         optional specify whether the ConfigMap or its keys must be defined
         +optional
         
        optional bool optional = 4;
        Parameters:
        value - The optional to set.
        Returns:
        This builder for chaining.
      • clearOptional

        public Generated.ConfigMapProjection.Builder clearOptional()
         optional specify whether the ConfigMap or its keys must be defined
         +optional
         
        optional bool optional = 4;
        Returns:
        This builder for chaining.