public static final class V1beta1Extensions.AllowedHostPath.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder> implements V1beta1Extensions.AllowedHostPathOrBuilder
AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead.Protobuf type
k8s.io.api.extensions.v1beta1.AllowedHostPath| Modifier and Type | Method and Description |
|---|---|
V1beta1Extensions.AllowedHostPath.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.AllowedHostPath |
build() |
V1beta1Extensions.AllowedHostPath |
buildPartial() |
V1beta1Extensions.AllowedHostPath.Builder |
clear() |
V1beta1Extensions.AllowedHostPath.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1beta1Extensions.AllowedHostPath.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1beta1Extensions.AllowedHostPath.Builder |
clearPathPrefix()
pathPrefix is the path prefix that the host volume must match.
|
V1beta1Extensions.AllowedHostPath.Builder |
clearReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
|
V1beta1Extensions.AllowedHostPath.Builder |
clone() |
V1beta1Extensions.AllowedHostPath |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getPathPrefix()
pathPrefix is the path prefix that the host volume must match.
|
com.google.protobuf.ByteString |
getPathPrefixBytes()
pathPrefix is the path prefix that the host volume must match.
|
boolean |
getReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
|
boolean |
hasPathPrefix()
pathPrefix is the path prefix that the host volume must match.
|
boolean |
hasReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1beta1Extensions.AllowedHostPath.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1beta1Extensions.AllowedHostPath.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1beta1Extensions.AllowedHostPath.Builder |
mergeFrom(V1beta1Extensions.AllowedHostPath other) |
V1beta1Extensions.AllowedHostPath.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1beta1Extensions.AllowedHostPath.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.AllowedHostPath.Builder |
setPathPrefix(String value)
pathPrefix is the path prefix that the host volume must match.
|
V1beta1Extensions.AllowedHostPath.Builder |
setPathPrefixBytes(com.google.protobuf.ByteString value)
pathPrefix is the path prefix that the host volume must match.
|
V1beta1Extensions.AllowedHostPath.Builder |
setReadOnly(boolean value)
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
|
V1beta1Extensions.AllowedHostPath.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1beta1Extensions.AllowedHostPath.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1beta1Extensions.AllowedHostPath build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.AllowedHostPath buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.AllowedHostPath.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder mergeFrom(V1beta1Extensions.AllowedHostPath other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public V1beta1Extensions.AllowedHostPath.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.AllowedHostPath.Builder>IOExceptionpublic boolean hasPathPrefix()
pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
optional string pathPrefix = 1;hasPathPrefix in interface V1beta1Extensions.AllowedHostPathOrBuilderpublic String getPathPrefix()
pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
optional string pathPrefix = 1;getPathPrefix in interface V1beta1Extensions.AllowedHostPathOrBuilderpublic com.google.protobuf.ByteString getPathPrefixBytes()
pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
optional string pathPrefix = 1;getPathPrefixBytes in interface V1beta1Extensions.AllowedHostPathOrBuilderpublic V1beta1Extensions.AllowedHostPath.Builder setPathPrefix(String value)
pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
optional string pathPrefix = 1;public V1beta1Extensions.AllowedHostPath.Builder clearPathPrefix()
pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
optional string pathPrefix = 1;public V1beta1Extensions.AllowedHostPath.Builder setPathPrefixBytes(com.google.protobuf.ByteString value)
pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
optional string pathPrefix = 1;public boolean hasReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. +optional
optional bool readOnly = 2;hasReadOnly in interface V1beta1Extensions.AllowedHostPathOrBuilderpublic boolean getReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. +optional
optional bool readOnly = 2;getReadOnly in interface V1beta1Extensions.AllowedHostPathOrBuilderpublic V1beta1Extensions.AllowedHostPath.Builder setReadOnly(boolean value)
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. +optional
optional bool readOnly = 2;public V1beta1Extensions.AllowedHostPath.Builder clearReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. +optional
optional bool readOnly = 2;public final V1beta1Extensions.AllowedHostPath.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>public final V1beta1Extensions.AllowedHostPath.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.AllowedHostPath.Builder>Copyright © 2021. All rights reserved.