Class Generated.WindowsSecurityContextOptions.Builder

    • 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.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<Generated.WindowsSecurityContextOptions.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.WindowsSecurityContextOptions 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.WindowsSecurityContextOptions.Builder>
      • setGmsaCredentialSpecName

        public Generated.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecName​(String value)
         GMSACredentialSpecName is the name of the GMSA credential spec to use.
         +optional
         
        optional string gmsaCredentialSpecName = 1;
        Parameters:
        value - The gmsaCredentialSpecName to set.
        Returns:
        This builder for chaining.
      • clearGmsaCredentialSpecName

        public Generated.WindowsSecurityContextOptions.Builder clearGmsaCredentialSpecName()
         GMSACredentialSpecName is the name of the GMSA credential spec to use.
         +optional
         
        optional string gmsaCredentialSpecName = 1;
        Returns:
        This builder for chaining.
      • setGmsaCredentialSpecNameBytes

        public Generated.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecNameBytes​(com.google.protobuf.ByteString value)
         GMSACredentialSpecName is the name of the GMSA credential spec to use.
         +optional
         
        optional string gmsaCredentialSpecName = 1;
        Parameters:
        value - The bytes for gmsaCredentialSpecName to set.
        Returns:
        This builder for chaining.
      • 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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        Whether the gmsaCredentialSpec field is set.
      • 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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        The gmsaCredentialSpec.
      • 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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        The bytes for gmsaCredentialSpec.
      • setGmsaCredentialSpec

        public Generated.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;
        Parameters:
        value - The gmsaCredentialSpec to set.
        Returns:
        This builder for chaining.
      • clearGmsaCredentialSpec

        public Generated.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;
        Returns:
        This builder for chaining.
      • setGmsaCredentialSpecBytes

        public Generated.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;
        Parameters:
        value - The bytes for gmsaCredentialSpec to set.
        Returns:
        This builder for chaining.
      • 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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        Whether the runAsUserName field is set.
      • 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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        The runAsUserName.
      • 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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        The bytes for runAsUserName.
      • setRunAsUserName

        public Generated.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;
        Parameters:
        value - The runAsUserName to set.
        Returns:
        This builder for chaining.
      • clearRunAsUserName

        public Generated.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;
        Returns:
        This builder for chaining.
      • setRunAsUserNameBytes

        public Generated.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;
        Parameters:
        value - The bytes for runAsUserName to set.
        Returns:
        This builder for chaining.
      • hasHostProcess

        public boolean hasHostProcess()
         HostProcess determines if a container should be run as a 'Host Process' container.
         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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        Whether the hostProcess field is set.
      • getHostProcess

        public boolean getHostProcess()
         HostProcess determines if a container should be run as a 'Host Process' container.
         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 Generated.WindowsSecurityContextOptionsOrBuilder
        Returns:
        The hostProcess.
      • setHostProcess

        public Generated.WindowsSecurityContextOptions.Builder setHostProcess​(boolean value)
         HostProcess determines if a container should be run as a 'Host Process' container.
         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;
        Parameters:
        value - The hostProcess to set.
        Returns:
        This builder for chaining.
      • clearHostProcess

        public Generated.WindowsSecurityContextOptions.Builder clearHostProcess()
         HostProcess determines if a container should be run as a 'Host Process' container.
         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;
        Returns:
        This builder for chaining.