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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
public V1.GitRepoVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public V1.GitRepoVolumeSource build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public V1.GitRepoVolumeSource buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public V1.GitRepoVolumeSource.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V1.GitRepoVolumeSource.Builder>
IOException
public boolean hasRepository()
Repository URL
optional string repository = 1;
hasRepository
in interface V1.GitRepoVolumeSourceOrBuilder
public String getRepository()
Repository URL
optional string repository = 1;
getRepository
in interface V1.GitRepoVolumeSourceOrBuilder
public com.google.protobuf.ByteString getRepositoryBytes()
Repository URL
optional string repository = 1;
getRepositoryBytes
in interface V1.GitRepoVolumeSourceOrBuilder
public 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.GitRepoVolumeSourceOrBuilder
public String getRevision()
Commit hash for the specified revision. +optional
optional string revision = 2;
getRevision
in interface V1.GitRepoVolumeSourceOrBuilder
public com.google.protobuf.ByteString getRevisionBytes()
Commit hash for the specified revision. +optional
optional string revision = 2;
getRevisionBytes
in interface V1.GitRepoVolumeSourceOrBuilder
public 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.GitRepoVolumeSourceOrBuilder
public 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.GitRepoVolumeSourceOrBuilder
public 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.GitRepoVolumeSourceOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
Copyright © 2021. All rights reserved.