public static final class V1.GitRepoVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder> implements V1.GitRepoVolumeSourceOrBuilder
Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.Protobuf type
k8s.io.api.core.v1.GitRepoVolumeSource| Modifier and Type | Method and Description |
|---|---|
V1.GitRepoVolumeSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.GitRepoVolumeSource |
build() |
V1.GitRepoVolumeSource |
buildPartial() |
V1.GitRepoVolumeSource.Builder |
clear() |
V1.GitRepoVolumeSource.Builder |
clearDirectory()
Target directory name.
|
V1.GitRepoVolumeSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.GitRepoVolumeSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.GitRepoVolumeSource.Builder |
clearRepository()
Repository URL
|
V1.GitRepoVolumeSource.Builder |
clearRevision()
Commit hash for the specified revision.
|
V1.GitRepoVolumeSource.Builder |
clone() |
V1.GitRepoVolumeSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDirectory()
Target directory name.
|
com.google.protobuf.ByteString |
getDirectoryBytes()
Target directory name.
|
String |
getRepository()
Repository URL
|
com.google.protobuf.ByteString |
getRepositoryBytes()
Repository URL
|
String |
getRevision()
Commit hash for the specified revision.
|
com.google.protobuf.ByteString |
getRevisionBytes()
Commit hash for the specified revision.
|
boolean |
hasDirectory()
Target directory name.
|
boolean |
hasRepository()
Repository URL
|
boolean |
hasRevision()
Commit hash for the specified revision.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.GitRepoVolumeSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.GitRepoVolumeSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.GitRepoVolumeSource.Builder |
mergeFrom(V1.GitRepoVolumeSource other) |
V1.GitRepoVolumeSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.GitRepoVolumeSource.Builder |
setDirectory(String value)
Target directory name.
|
V1.GitRepoVolumeSource.Builder |
setDirectoryBytes(com.google.protobuf.ByteString value)
Target directory name.
|
V1.GitRepoVolumeSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.GitRepoVolumeSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.GitRepoVolumeSource.Builder |
setRepository(String value)
Repository URL
|
V1.GitRepoVolumeSource.Builder |
setRepositoryBytes(com.google.protobuf.ByteString value)
Repository URL
|
V1.GitRepoVolumeSource.Builder |
setRevision(String value)
Commit hash for the specified revision.
|
V1.GitRepoVolumeSource.Builder |
setRevisionBytes(com.google.protobuf.ByteString value)
Commit hash for the specified revision.
|
V1.GitRepoVolumeSource.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<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.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<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.GitRepoVolumeSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.GitRepoVolumeSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.GitRepoVolumeSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.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<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.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<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.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<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.Builder mergeFrom(V1.GitRepoVolumeSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>public V1.GitRepoVolumeSource.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<V1.GitRepoVolumeSource.Builder>IOExceptionpublic boolean hasRepository()
Repository URL
optional string repository = 1;hasRepository in interface V1.GitRepoVolumeSourceOrBuilderpublic String getRepository()
Repository URL
optional string repository = 1;getRepository in interface V1.GitRepoVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getRepositoryBytes()
Repository URL
optional string repository = 1;getRepositoryBytes in interface V1.GitRepoVolumeSourceOrBuilderpublic V1.GitRepoVolumeSource.Builder setRepository(String value)
Repository URL
optional string repository = 1;public V1.GitRepoVolumeSource.Builder clearRepository()
Repository URL
optional string repository = 1;public V1.GitRepoVolumeSource.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
Repository URL
optional string repository = 1;public boolean hasRevision()
Commit hash for the specified revision. +optional
optional string revision = 2;hasRevision in interface V1.GitRepoVolumeSourceOrBuilderpublic String getRevision()
Commit hash for the specified revision. +optional
optional string revision = 2;getRevision in interface V1.GitRepoVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getRevisionBytes()
Commit hash for the specified revision. +optional
optional string revision = 2;getRevisionBytes in interface V1.GitRepoVolumeSourceOrBuilderpublic V1.GitRepoVolumeSource.Builder setRevision(String value)
Commit hash for the specified revision. +optional
optional string revision = 2;public V1.GitRepoVolumeSource.Builder clearRevision()
Commit hash for the specified revision. +optional
optional string revision = 2;public V1.GitRepoVolumeSource.Builder setRevisionBytes(com.google.protobuf.ByteString value)
Commit hash for the specified revision. +optional
optional string revision = 2;public boolean hasDirectory()
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional
optional string directory = 3;hasDirectory in interface V1.GitRepoVolumeSourceOrBuilderpublic String getDirectory()
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional
optional string directory = 3;getDirectory in interface V1.GitRepoVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getDirectoryBytes()
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional
optional string directory = 3;getDirectoryBytes in interface V1.GitRepoVolumeSourceOrBuilderpublic V1.GitRepoVolumeSource.Builder setDirectory(String value)
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional
optional string directory = 3;public V1.GitRepoVolumeSource.Builder clearDirectory()
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional
optional string directory = 3;public V1.GitRepoVolumeSource.Builder setDirectoryBytes(com.google.protobuf.ByteString value)
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional
optional string directory = 3;public final V1.GitRepoVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>public final V1.GitRepoVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>Copyright © 2020. All rights reserved.