Package io.kubernetes.client.proto
Class V1.WindowsSecurityContextOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) 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.GMSACredentialSpecName is the name of the GMSA credential spec to use.HostProcess determines if a container should be run as a 'Host Process' container.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The UserName in Windows to run the entrypoint of the container process.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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.ByteString
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.GMSACredentialSpecName is the name of the GMSA credential spec to use.com.google.protobuf.ByteString
GMSACredentialSpecName is the name of the GMSA credential spec to use.boolean
HostProcess determines if a container should be run as a 'Host Process' container.The UserName in Windows to run the entrypoint of the container process.com.google.protobuf.ByteString
The UserName in Windows to run the entrypoint of the container process.boolean
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.boolean
GMSACredentialSpecName is the name of the GMSA credential spec to use.boolean
HostProcess determines if a container should be run as a 'Host Process' container.boolean
The UserName in Windows to run the entrypoint of the container process.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.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.setGmsaCredentialSpecName
(String value) GMSACredentialSpecName is the name of the GMSA credential spec to use.setGmsaCredentialSpecNameBytes
(com.google.protobuf.ByteString value) GMSACredentialSpecName is the name of the GMSA credential spec to use.setHostProcess
(boolean value) HostProcess determines if a container should be run as a 'Host Process' container.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRunAsUserName
(String value) The UserName in Windows to run the entrypoint of the container process.setRunAsUserNameBytes
(com.google.protobuf.ByteString value) The UserName in Windows to run the entrypoint of the container process.setUnknownFields
(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, internalGetMutableMapField, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-
clearField
public V1.WindowsSecurityContextOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-
clearOneof
public V1.WindowsSecurityContextOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.WindowsSecurityContextOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceV1.WindowsSecurityContextOptionsOrBuilder
-
getGmsaCredentialSpecName
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;
- Specified by:
getGmsaCredentialSpecName
in interfaceV1.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 interfaceV1.WindowsSecurityContextOptionsOrBuilder
-
setGmsaCredentialSpecName
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;
-
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 interfaceV1.WindowsSecurityContextOptionsOrBuilder
-
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 interfaceV1.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 interfaceV1.WindowsSecurityContextOptionsOrBuilder
-
setGmsaCredentialSpec
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
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 interfaceV1.WindowsSecurityContextOptionsOrBuilder
-
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 interfaceV1.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 interfaceV1.WindowsSecurityContextOptionsOrBuilder
-
setRunAsUserName
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
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 interfaceV1.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 interfaceV1.WindowsSecurityContextOptionsOrBuilder
-
setHostProcess
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-
mergeUnknownFields
public final V1.WindowsSecurityContextOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>
-