Package k8s.io.api.core.v1
Class Generated.SeccompProfile.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.SeccompProfile.Builder>
-
- k8s.io.api.core.v1.Generated.SeccompProfile.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.SeccompProfileOrBuilder
- Enclosing class:
- Generated.SeccompProfile
public static final class Generated.SeccompProfile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.SeccompProfile.Builder> implements Generated.SeccompProfileOrBuilder
SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. +union
Protobuf typek8s.io.api.core.v1.SeccompProfile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.SeccompProfile.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.SeccompProfilebuild()Generated.SeccompProfilebuildPartial()Generated.SeccompProfile.Builderclear()Generated.SeccompProfile.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.SeccompProfile.BuilderclearLocalhostProfile()localhostProfile indicates a profile defined in a file on the node should be used.Generated.SeccompProfile.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.SeccompProfile.BuilderclearType()type indicates which kind of seccomp profile will be applied.Generated.SeccompProfile.Builderclone()Generated.SeccompProfilegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLocalhostProfile()localhostProfile indicates a profile defined in a file on the node should be used.com.google.protobuf.ByteStringgetLocalhostProfileBytes()localhostProfile indicates a profile defined in a file on the node should be used.StringgetType()type indicates which kind of seccomp profile will be applied.com.google.protobuf.ByteStringgetTypeBytes()type indicates which kind of seccomp profile will be applied.booleanhasLocalhostProfile()localhostProfile indicates a profile defined in a file on the node should be used.booleanhasType()type indicates which kind of seccomp profile will be applied.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.SeccompProfile.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.SeccompProfile.BuildermergeFrom(com.google.protobuf.Message other)Generated.SeccompProfile.BuildermergeFrom(Generated.SeccompProfile other)Generated.SeccompProfile.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.SeccompProfile.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.SeccompProfile.BuildersetLocalhostProfile(String value)localhostProfile indicates a profile defined in a file on the node should be used.Generated.SeccompProfile.BuildersetLocalhostProfileBytes(com.google.protobuf.ByteString value)localhostProfile indicates a profile defined in a file on the node should be used.Generated.SeccompProfile.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.SeccompProfile.BuildersetType(String value)type indicates which kind of seccomp profile will be applied.Generated.SeccompProfile.BuildersetTypeBytes(com.google.protobuf.ByteString value)type indicates which kind of seccomp profile will be applied.Generated.SeccompProfile.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.SeccompProfile.Builder>
-
clear
public Generated.SeccompProfile.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.SeccompProfile.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.SeccompProfile.Builder>
-
getDefaultInstanceForType
public Generated.SeccompProfile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.SeccompProfile build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.SeccompProfile buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.SeccompProfile.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.SeccompProfile.Builder>
-
setField
public Generated.SeccompProfile.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.SeccompProfile.Builder>
-
clearField
public Generated.SeccompProfile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SeccompProfile.Builder>
-
clearOneof
public Generated.SeccompProfile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SeccompProfile.Builder>
-
setRepeatedField
public Generated.SeccompProfile.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.SeccompProfile.Builder>
-
addRepeatedField
public Generated.SeccompProfile.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.SeccompProfile.Builder>
-
mergeFrom
public Generated.SeccompProfile.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.SeccompProfile.Builder>
-
mergeFrom
public Generated.SeccompProfile.Builder mergeFrom(Generated.SeccompProfile other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SeccompProfile.Builder>
-
mergeFrom
public Generated.SeccompProfile.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.SeccompProfile.Builder>- Throws:
IOException
-
hasType
public boolean hasType()
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. +unionDiscriminator
optional string type = 1;- Specified by:
hasTypein interfaceGenerated.SeccompProfileOrBuilder- Returns:
- Whether the type field is set.
-
getType
public String getType()
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. +unionDiscriminator
optional string type = 1;- Specified by:
getTypein interfaceGenerated.SeccompProfileOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. +unionDiscriminator
optional string type = 1;- Specified by:
getTypeBytesin interfaceGenerated.SeccompProfileOrBuilder- Returns:
- The bytes for type.
-
setType
public Generated.SeccompProfile.Builder setType(String value)
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. +unionDiscriminator
optional string type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Generated.SeccompProfile.Builder clearType()
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. +unionDiscriminator
optional string type = 1;- Returns:
- This builder for chaining.
-
setTypeBytes
public Generated.SeccompProfile.Builder setTypeBytes(com.google.protobuf.ByteString value)
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. +unionDiscriminator
optional string type = 1;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasLocalhostProfile
public boolean hasLocalhostProfile()
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. +optional
optional string localhostProfile = 2;- Specified by:
hasLocalhostProfilein interfaceGenerated.SeccompProfileOrBuilder- Returns:
- Whether the localhostProfile field is set.
-
getLocalhostProfile
public String getLocalhostProfile()
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. +optional
optional string localhostProfile = 2;- Specified by:
getLocalhostProfilein interfaceGenerated.SeccompProfileOrBuilder- Returns:
- The localhostProfile.
-
getLocalhostProfileBytes
public com.google.protobuf.ByteString getLocalhostProfileBytes()
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. +optional
optional string localhostProfile = 2;- Specified by:
getLocalhostProfileBytesin interfaceGenerated.SeccompProfileOrBuilder- Returns:
- The bytes for localhostProfile.
-
setLocalhostProfile
public Generated.SeccompProfile.Builder setLocalhostProfile(String value)
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. +optional
optional string localhostProfile = 2;- Parameters:
value- The localhostProfile to set.- Returns:
- This builder for chaining.
-
clearLocalhostProfile
public Generated.SeccompProfile.Builder clearLocalhostProfile()
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. +optional
optional string localhostProfile = 2;- Returns:
- This builder for chaining.
-
setLocalhostProfileBytes
public Generated.SeccompProfile.Builder setLocalhostProfileBytes(com.google.protobuf.ByteString value)
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. +optional
optional string localhostProfile = 2;- Parameters:
value- The bytes for localhostProfile to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.SeccompProfile.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SeccompProfile.Builder>
-
mergeUnknownFields
public final Generated.SeccompProfile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SeccompProfile.Builder>
-
-