Class V1.DownwardAPIVolumeSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.DownwardAPIVolumeSource.Builder>
io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.DownwardAPIVolumeSourceOrBuilder, Cloneable
Enclosing class:
V1.DownwardAPIVolumeSource

public static final class V1.DownwardAPIVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.DownwardAPIVolumeSource.Builder> implements V1.DownwardAPIVolumeSourceOrBuilder
 DownwardAPIVolumeSource represents a volume containing downward API info.
 Downward API volumes support ownership management and SELinux relabeling.
 
Protobuf type k8s.io.api.core.v1.DownwardAPIVolumeSource
  • Method Details

    • 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<V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1.DownwardAPIVolumeSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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.DownwardAPIVolumeSource.Builder>
    • setField

      public V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • clearField

      public V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • clearOneof

      public V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • setRepeatedField

      public V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • addRepeatedField

      public V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • mergeFrom

      public V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • mergeFrom

    • isInitialized

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

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

      public List<V1.DownwardAPIVolumeFile> getItemsList()
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
      Specified by:
      getItemsList in interface V1.DownwardAPIVolumeSourceOrBuilder
    • getItemsCount

      public int getItemsCount()
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
      Specified by:
      getItemsCount in interface V1.DownwardAPIVolumeSourceOrBuilder
    • getItems

      public V1.DownwardAPIVolumeFile getItems(int index)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
      Specified by:
      getItems in interface V1.DownwardAPIVolumeSourceOrBuilder
    • setItems

      public V1.DownwardAPIVolumeSource.Builder setItems(int index, V1.DownwardAPIVolumeFile value)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • setItems

      public V1.DownwardAPIVolumeSource.Builder setItems(int index, V1.DownwardAPIVolumeFile.Builder builderForValue)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • addItems

       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • addItems

      public V1.DownwardAPIVolumeSource.Builder addItems(int index, V1.DownwardAPIVolumeFile value)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • addItems

       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • addItems

      public V1.DownwardAPIVolumeSource.Builder addItems(int index, V1.DownwardAPIVolumeFile.Builder builderForValue)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • addAllItems

       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • clearItems

       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • removeItems

      public V1.DownwardAPIVolumeSource.Builder removeItems(int index)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • getItemsBuilder

      public V1.DownwardAPIVolumeFile.Builder getItemsBuilder(int index)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • getItemsOrBuilder

      public V1.DownwardAPIVolumeFileOrBuilder getItemsOrBuilder(int index)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
      Specified by:
      getItemsOrBuilder in interface V1.DownwardAPIVolumeSourceOrBuilder
    • getItemsOrBuilderList

      public List<? extends V1.DownwardAPIVolumeFileOrBuilder> getItemsOrBuilderList()
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
      Specified by:
      getItemsOrBuilderList in interface V1.DownwardAPIVolumeSourceOrBuilder
    • addItemsBuilder

      public V1.DownwardAPIVolumeFile.Builder addItemsBuilder()
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • addItemsBuilder

      public V1.DownwardAPIVolumeFile.Builder addItemsBuilder(int index)
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • getItemsBuilderList

      public List<V1.DownwardAPIVolumeFile.Builder> getItemsBuilderList()
       Items is a list of downward API volume file
       +optional
       
      repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1;
    • hasDefaultMode

      public boolean hasDefaultMode()
       Optional: mode bits to use on created files by default. Must be a
       Optional: mode bits used to set permissions on created files by default.
       Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       Defaults to 0644.
       Directories within the path are not affected by this setting.
       This might be in conflict with other options that affect the file
       mode, like fsGroup, and the result can be other mode bits set.
       +optional
       
      optional int32 defaultMode = 2;
      Specified by:
      hasDefaultMode in interface V1.DownwardAPIVolumeSourceOrBuilder
    • getDefaultMode

      public int getDefaultMode()
       Optional: mode bits to use on created files by default. Must be a
       Optional: mode bits used to set permissions on created files by default.
       Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       Defaults to 0644.
       Directories within the path are not affected by this setting.
       This might be in conflict with other options that affect the file
       mode, like fsGroup, and the result can be other mode bits set.
       +optional
       
      optional int32 defaultMode = 2;
      Specified by:
      getDefaultMode in interface V1.DownwardAPIVolumeSourceOrBuilder
    • setDefaultMode

      public V1.DownwardAPIVolumeSource.Builder setDefaultMode(int value)
       Optional: mode bits to use on created files by default. Must be a
       Optional: mode bits used to set permissions on created files by default.
       Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       Defaults to 0644.
       Directories within the path are not affected by this setting.
       This might be in conflict with other options that affect the file
       mode, like fsGroup, and the result can be other mode bits set.
       +optional
       
      optional int32 defaultMode = 2;
    • clearDefaultMode

      public V1.DownwardAPIVolumeSource.Builder clearDefaultMode()
       Optional: mode bits to use on created files by default. Must be a
       Optional: mode bits used to set permissions on created files by default.
       Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       Defaults to 0644.
       Directories within the path are not affected by this setting.
       This might be in conflict with other options that affect the file
       mode, like fsGroup, and the result can be other mode bits set.
       +optional
       
      optional int32 defaultMode = 2;
    • setUnknownFields

      public final V1.DownwardAPIVolumeSource.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.DownwardAPIVolumeSource.Builder>
    • mergeUnknownFields

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