Class V1.WindowsSecurityContextOptions.Builder

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

public static final class V1.WindowsSecurityContextOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder> implements V1.WindowsSecurityContextOptionsOrBuilder
 WindowsSecurityContextOptions contain Windows-specific options and credentials.
 
Protobuf type k8s.io.api.core.v1.WindowsSecurityContextOptions
  • 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.WindowsSecurityContextOptions.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.WindowsSecurityContextOptions.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.WindowsSecurityContextOptions.Builder>
    • getDefaultInstanceForType

      public V1.WindowsSecurityContextOptions 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.WindowsSecurityContextOptions 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.WindowsSecurityContextOptions.Builder>
    • setField

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

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

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

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

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

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

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

      public boolean hasGmsaCredentialSpecName()
       GMSACredentialSpecName is the name of the GMSA credential spec to use.
       +optional
       
      optional string gmsaCredentialSpecName = 1;
      Specified by:
      hasGmsaCredentialSpecName in interface V1.WindowsSecurityContextOptionsOrBuilder
    • getGmsaCredentialSpecName

      public String getGmsaCredentialSpecName()
       GMSACredentialSpecName is the name of the GMSA credential spec to use.
       +optional
       
      optional string gmsaCredentialSpecName = 1;
      Specified by:
      getGmsaCredentialSpecName in interface V1.WindowsSecurityContextOptionsOrBuilder
    • getGmsaCredentialSpecNameBytes

      public com.google.protobuf.ByteString getGmsaCredentialSpecNameBytes()
       GMSACredentialSpecName is the name of the GMSA credential spec to use.
       +optional
       
      optional string gmsaCredentialSpecName = 1;
      Specified by:
      getGmsaCredentialSpecNameBytes in interface V1.WindowsSecurityContextOptionsOrBuilder
    • setGmsaCredentialSpecName

      public V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecName(String value)
       GMSACredentialSpecName is the name of the GMSA credential spec to use.
       +optional
       
      optional string gmsaCredentialSpecName = 1;
    • clearGmsaCredentialSpecName

      public V1.WindowsSecurityContextOptions.Builder clearGmsaCredentialSpecName()
       GMSACredentialSpecName is the name of the GMSA credential spec to use.
       +optional
       
      optional string gmsaCredentialSpecName = 1;
    • setGmsaCredentialSpecNameBytes

      public V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecNameBytes(com.google.protobuf.ByteString value)
       GMSACredentialSpecName is the name of the GMSA credential spec to use.
       +optional
       
      optional string gmsaCredentialSpecName = 1;
    • hasGmsaCredentialSpec

      public boolean hasGmsaCredentialSpec()
       GMSACredentialSpec is where the GMSA admission webhook
       (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       GMSA credential spec named by the GMSACredentialSpecName field.
       +optional
       
      optional string gmsaCredentialSpec = 2;
      Specified by:
      hasGmsaCredentialSpec in interface V1.WindowsSecurityContextOptionsOrBuilder
    • getGmsaCredentialSpec

      public String getGmsaCredentialSpec()
       GMSACredentialSpec is where the GMSA admission webhook
       (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       GMSA credential spec named by the GMSACredentialSpecName field.
       +optional
       
      optional string gmsaCredentialSpec = 2;
      Specified by:
      getGmsaCredentialSpec in interface V1.WindowsSecurityContextOptionsOrBuilder
    • getGmsaCredentialSpecBytes

      public com.google.protobuf.ByteString getGmsaCredentialSpecBytes()
       GMSACredentialSpec is where the GMSA admission webhook
       (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       GMSA credential spec named by the GMSACredentialSpecName field.
       +optional
       
      optional string gmsaCredentialSpec = 2;
      Specified by:
      getGmsaCredentialSpecBytes in interface V1.WindowsSecurityContextOptionsOrBuilder
    • setGmsaCredentialSpec

      public V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpec(String value)
       GMSACredentialSpec is where the GMSA admission webhook
       (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       GMSA credential spec named by the GMSACredentialSpecName field.
       +optional
       
      optional string gmsaCredentialSpec = 2;
    • clearGmsaCredentialSpec

      public V1.WindowsSecurityContextOptions.Builder clearGmsaCredentialSpec()
       GMSACredentialSpec is where the GMSA admission webhook
       (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       GMSA credential spec named by the GMSACredentialSpecName field.
       +optional
       
      optional string gmsaCredentialSpec = 2;
    • setGmsaCredentialSpecBytes

      public V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecBytes(com.google.protobuf.ByteString value)
       GMSACredentialSpec is where the GMSA admission webhook
       (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       GMSA credential spec named by the GMSACredentialSpecName field.
       +optional
       
      optional string gmsaCredentialSpec = 2;
    • hasRunAsUserName

      public boolean hasRunAsUserName()
       The UserName in Windows to run the entrypoint of the container process.
       Defaults to the user specified in image metadata if unspecified.
       May also be set in PodSecurityContext. If set in both SecurityContext and
       PodSecurityContext, the value specified in SecurityContext takes precedence.
       +optional
       
      optional string runAsUserName = 3;
      Specified by:
      hasRunAsUserName in interface V1.WindowsSecurityContextOptionsOrBuilder
    • getRunAsUserName

      public String getRunAsUserName()
       The UserName in Windows to run the entrypoint of the container process.
       Defaults to the user specified in image metadata if unspecified.
       May also be set in PodSecurityContext. If set in both SecurityContext and
       PodSecurityContext, the value specified in SecurityContext takes precedence.
       +optional
       
      optional string runAsUserName = 3;
      Specified by:
      getRunAsUserName in interface V1.WindowsSecurityContextOptionsOrBuilder
    • getRunAsUserNameBytes

      public com.google.protobuf.ByteString getRunAsUserNameBytes()
       The UserName in Windows to run the entrypoint of the container process.
       Defaults to the user specified in image metadata if unspecified.
       May also be set in PodSecurityContext. If set in both SecurityContext and
       PodSecurityContext, the value specified in SecurityContext takes precedence.
       +optional
       
      optional string runAsUserName = 3;
      Specified by:
      getRunAsUserNameBytes in interface V1.WindowsSecurityContextOptionsOrBuilder
    • setRunAsUserName

      public V1.WindowsSecurityContextOptions.Builder setRunAsUserName(String value)
       The UserName in Windows to run the entrypoint of the container process.
       Defaults to the user specified in image metadata if unspecified.
       May also be set in PodSecurityContext. If set in both SecurityContext and
       PodSecurityContext, the value specified in SecurityContext takes precedence.
       +optional
       
      optional string runAsUserName = 3;
    • clearRunAsUserName

      public V1.WindowsSecurityContextOptions.Builder clearRunAsUserName()
       The UserName in Windows to run the entrypoint of the container process.
       Defaults to the user specified in image metadata if unspecified.
       May also be set in PodSecurityContext. If set in both SecurityContext and
       PodSecurityContext, the value specified in SecurityContext takes precedence.
       +optional
       
      optional string runAsUserName = 3;
    • setRunAsUserNameBytes

      public V1.WindowsSecurityContextOptions.Builder setRunAsUserNameBytes(com.google.protobuf.ByteString value)
       The UserName in Windows to run the entrypoint of the container process.
       Defaults to the user specified in image metadata if unspecified.
       May also be set in PodSecurityContext. If set in both SecurityContext and
       PodSecurityContext, the value specified in SecurityContext takes precedence.
       +optional
       
      optional string runAsUserName = 3;
    • hasHostProcess

      public boolean hasHostProcess()
       HostProcess determines if a container should be run as a 'Host Process' container.
       This field is alpha-level and will only be honored by components that enable the
       WindowsHostProcessContainers feature flag. Setting this field without the feature
       flag will result in errors when validating the Pod. All of a Pod's containers must
       have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       containers and non-HostProcess containers).  In addition, if HostProcess is true
       then HostNetwork must also be set to true.
       +optional
       
      optional bool hostProcess = 4;
      Specified by:
      hasHostProcess in interface V1.WindowsSecurityContextOptionsOrBuilder
    • getHostProcess

      public boolean getHostProcess()
       HostProcess determines if a container should be run as a 'Host Process' container.
       This field is alpha-level and will only be honored by components that enable the
       WindowsHostProcessContainers feature flag. Setting this field without the feature
       flag will result in errors when validating the Pod. All of a Pod's containers must
       have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       containers and non-HostProcess containers).  In addition, if HostProcess is true
       then HostNetwork must also be set to true.
       +optional
       
      optional bool hostProcess = 4;
      Specified by:
      getHostProcess in interface V1.WindowsSecurityContextOptionsOrBuilder
    • setHostProcess

      public V1.WindowsSecurityContextOptions.Builder setHostProcess(boolean value)
       HostProcess determines if a container should be run as a 'Host Process' container.
       This field is alpha-level and will only be honored by components that enable the
       WindowsHostProcessContainers feature flag. Setting this field without the feature
       flag will result in errors when validating the Pod. All of a Pod's containers must
       have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       containers and non-HostProcess containers).  In addition, if HostProcess is true
       then HostNetwork must also be set to true.
       +optional
       
      optional bool hostProcess = 4;
    • clearHostProcess

      public V1.WindowsSecurityContextOptions.Builder clearHostProcess()
       HostProcess determines if a container should be run as a 'Host Process' container.
       This field is alpha-level and will only be honored by components that enable the
       WindowsHostProcessContainers feature flag. Setting this field without the feature
       flag will result in errors when validating the Pod. All of a Pod's containers must
       have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       containers and non-HostProcess containers).  In addition, if HostProcess is true
       then HostNetwork must also be set to true.
       +optional
       
      optional bool hostProcess = 4;
    • setUnknownFields

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

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