Package k8s.io.api.core.v1
Class Generated.WindowsSecurityContextOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
- k8s.io.api.core.v1.Generated.WindowsSecurityContextOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.WindowsSecurityContextOptionsOrBuilder
- Enclosing class:
- Generated.WindowsSecurityContextOptions
public static final class Generated.WindowsSecurityContextOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder> implements Generated.WindowsSecurityContextOptionsOrBuilder
WindowsSecurityContextOptions contain Windows-specific options and credentials.
Protobuf typek8s.io.api.core.v1.WindowsSecurityContextOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.WindowsSecurityContextOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.WindowsSecurityContextOptionsbuild()Generated.WindowsSecurityContextOptionsbuildPartial()Generated.WindowsSecurityContextOptions.Builderclear()Generated.WindowsSecurityContextOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.WindowsSecurityContextOptions.BuilderclearGmsaCredentialSpec()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.Generated.WindowsSecurityContextOptions.BuilderclearGmsaCredentialSpecName()GMSACredentialSpecName is the name of the GMSA credential spec to use.Generated.WindowsSecurityContextOptions.BuilderclearHostProcess()HostProcess determines if a container should be run as a 'Host Process' container.Generated.WindowsSecurityContextOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.WindowsSecurityContextOptions.BuilderclearRunAsUserName()The UserName in Windows to run the entrypoint of the container process.Generated.WindowsSecurityContextOptions.Builderclone()Generated.WindowsSecurityContextOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGmsaCredentialSpec()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.com.google.protobuf.ByteStringgetGmsaCredentialSpecBytes()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.StringgetGmsaCredentialSpecName()GMSACredentialSpecName is the name of the GMSA credential spec to use.com.google.protobuf.ByteStringgetGmsaCredentialSpecNameBytes()GMSACredentialSpecName is the name of the GMSA credential spec to use.booleangetHostProcess()HostProcess determines if a container should be run as a 'Host Process' container.StringgetRunAsUserName()The UserName in Windows to run the entrypoint of the container process.com.google.protobuf.ByteStringgetRunAsUserNameBytes()The UserName in Windows to run the entrypoint of the container process.booleanhasGmsaCredentialSpec()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.booleanhasGmsaCredentialSpecName()GMSACredentialSpecName is the name of the GMSA credential spec to use.booleanhasHostProcess()HostProcess determines if a container should be run as a 'Host Process' container.booleanhasRunAsUserName()The UserName in Windows to run the entrypoint of the container process.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.WindowsSecurityContextOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.WindowsSecurityContextOptions.BuildermergeFrom(com.google.protobuf.Message other)Generated.WindowsSecurityContextOptions.BuildermergeFrom(Generated.WindowsSecurityContextOptions other)Generated.WindowsSecurityContextOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.WindowsSecurityContextOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.WindowsSecurityContextOptions.BuildersetGmsaCredentialSpec(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.Generated.WindowsSecurityContextOptions.BuildersetGmsaCredentialSpecBytes(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.Generated.WindowsSecurityContextOptions.BuildersetGmsaCredentialSpecName(String value)GMSACredentialSpecName is the name of the GMSA credential spec to use.Generated.WindowsSecurityContextOptions.BuildersetGmsaCredentialSpecNameBytes(com.google.protobuf.ByteString value)GMSACredentialSpecName is the name of the GMSA credential spec to use.Generated.WindowsSecurityContextOptions.BuildersetHostProcess(boolean value)HostProcess determines if a container should be run as a 'Host Process' container.Generated.WindowsSecurityContextOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.WindowsSecurityContextOptions.BuildersetRunAsUserName(String value)The UserName in Windows to run the entrypoint of the container process.Generated.WindowsSecurityContextOptions.BuildersetRunAsUserNameBytes(com.google.protobuf.ByteString value)The UserName in Windows to run the entrypoint of the container process.Generated.WindowsSecurityContextOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
clear
public Generated.WindowsSecurityContextOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
getDefaultInstanceForType
public Generated.WindowsSecurityContextOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.WindowsSecurityContextOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.WindowsSecurityContextOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.WindowsSecurityContextOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
setField
public Generated.WindowsSecurityContextOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
clearField
public Generated.WindowsSecurityContextOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
clearOneof
public Generated.WindowsSecurityContextOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
setRepeatedField
public Generated.WindowsSecurityContextOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
addRepeatedField
public Generated.WindowsSecurityContextOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
mergeFrom
public Generated.WindowsSecurityContextOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
mergeFrom
public Generated.WindowsSecurityContextOptions.Builder mergeFrom(Generated.WindowsSecurityContextOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
mergeFrom
public Generated.WindowsSecurityContextOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.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:
hasGmsaCredentialSpecNamein interfaceGenerated.WindowsSecurityContextOptionsOrBuilder- Returns:
- Whether the gmsaCredentialSpecName field is set.
-
getGmsaCredentialSpecName
public String getGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;- Specified by:
getGmsaCredentialSpecNamein interfaceGenerated.WindowsSecurityContextOptionsOrBuilder- Returns:
- The gmsaCredentialSpecName.
-
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:
getGmsaCredentialSpecNameBytesin interfaceGenerated.WindowsSecurityContextOptionsOrBuilder- Returns:
- The bytes for gmsaCredentialSpecName.
-
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:
hasGmsaCredentialSpecin interfaceGenerated.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:
getGmsaCredentialSpecin interfaceGenerated.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:
getGmsaCredentialSpecBytesin interfaceGenerated.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:
hasRunAsUserNamein interfaceGenerated.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:
getRunAsUserNamein interfaceGenerated.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:
getRunAsUserNameBytesin interfaceGenerated.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:
hasHostProcessin interfaceGenerated.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:
getHostProcessin interfaceGenerated.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.
-
setUnknownFields
public final Generated.WindowsSecurityContextOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
mergeUnknownFields
public final Generated.WindowsSecurityContextOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.WindowsSecurityContextOptions.Builder>
-
-