Package k8s.io.api.core.v1
Class Generated.GitRepoVolumeSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.GitRepoVolumeSource.Builder>
-
- k8s.io.api.core.v1.Generated.GitRepoVolumeSource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.GitRepoVolumeSourceOrBuilder
- Enclosing class:
- Generated.GitRepoVolumeSource
public static final class Generated.GitRepoVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.GitRepoVolumeSource.Builder> implements Generated.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 typek8s.io.api.core.v1.GitRepoVolumeSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.GitRepoVolumeSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.GitRepoVolumeSourcebuild()Generated.GitRepoVolumeSourcebuildPartial()Generated.GitRepoVolumeSource.Builderclear()Generated.GitRepoVolumeSource.BuilderclearDirectory()directory is the target directory name.Generated.GitRepoVolumeSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.GitRepoVolumeSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.GitRepoVolumeSource.BuilderclearRepository()repository is the URLGenerated.GitRepoVolumeSource.BuilderclearRevision()revision is the commit hash for the specified revision.Generated.GitRepoVolumeSource.Builderclone()Generated.GitRepoVolumeSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDirectory()directory is the target directory name.com.google.protobuf.ByteStringgetDirectoryBytes()directory is the target directory name.StringgetRepository()repository is the URLcom.google.protobuf.ByteStringgetRepositoryBytes()repository is the URLStringgetRevision()revision is the commit hash for the specified revision.com.google.protobuf.ByteStringgetRevisionBytes()revision is the commit hash for the specified revision.booleanhasDirectory()directory is the target directory name.booleanhasRepository()repository is the URLbooleanhasRevision()revision is the commit hash for the specified revision.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.GitRepoVolumeSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.GitRepoVolumeSource.BuildermergeFrom(com.google.protobuf.Message other)Generated.GitRepoVolumeSource.BuildermergeFrom(Generated.GitRepoVolumeSource other)Generated.GitRepoVolumeSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.GitRepoVolumeSource.BuildersetDirectory(String value)directory is the target directory name.Generated.GitRepoVolumeSource.BuildersetDirectoryBytes(com.google.protobuf.ByteString value)directory is the target directory name.Generated.GitRepoVolumeSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.GitRepoVolumeSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.GitRepoVolumeSource.BuildersetRepository(String value)repository is the URLGenerated.GitRepoVolumeSource.BuildersetRepositoryBytes(com.google.protobuf.ByteString value)repository is the URLGenerated.GitRepoVolumeSource.BuildersetRevision(String value)revision is the commit hash for the specified revision.Generated.GitRepoVolumeSource.BuildersetRevisionBytes(com.google.protobuf.ByteString value)revision is the commit hash for the specified revision.Generated.GitRepoVolumeSource.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.GitRepoVolumeSource.Builder>
-
clear
public Generated.GitRepoVolumeSource.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.GitRepoVolumeSource.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.GitRepoVolumeSource.Builder>
-
getDefaultInstanceForType
public Generated.GitRepoVolumeSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.GitRepoVolumeSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.GitRepoVolumeSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.GitRepoVolumeSource.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.GitRepoVolumeSource.Builder>
-
setField
public Generated.GitRepoVolumeSource.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.GitRepoVolumeSource.Builder>
-
clearField
public Generated.GitRepoVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GitRepoVolumeSource.Builder>
-
clearOneof
public Generated.GitRepoVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GitRepoVolumeSource.Builder>
-
setRepeatedField
public Generated.GitRepoVolumeSource.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.GitRepoVolumeSource.Builder>
-
addRepeatedField
public Generated.GitRepoVolumeSource.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.GitRepoVolumeSource.Builder>
-
mergeFrom
public Generated.GitRepoVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.GitRepoVolumeSource.Builder>
-
mergeFrom
public Generated.GitRepoVolumeSource.Builder mergeFrom(Generated.GitRepoVolumeSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GitRepoVolumeSource.Builder>
-
mergeFrom
public Generated.GitRepoVolumeSource.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.GitRepoVolumeSource.Builder>- Throws:
IOException
-
hasRepository
public boolean hasRepository()
repository is the URL
optional string repository = 1;- Specified by:
hasRepositoryin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- Whether the repository field is set.
-
getRepository
public String getRepository()
repository is the URL
optional string repository = 1;- Specified by:
getRepositoryin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- The repository.
-
getRepositoryBytes
public com.google.protobuf.ByteString getRepositoryBytes()
repository is the URL
optional string repository = 1;- Specified by:
getRepositoryBytesin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- The bytes for repository.
-
setRepository
public Generated.GitRepoVolumeSource.Builder setRepository(String value)
repository is the URL
optional string repository = 1;- Parameters:
value- The repository to set.- Returns:
- This builder for chaining.
-
clearRepository
public Generated.GitRepoVolumeSource.Builder clearRepository()
repository is the URL
optional string repository = 1;- Returns:
- This builder for chaining.
-
setRepositoryBytes
public Generated.GitRepoVolumeSource.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
repository is the URL
optional string repository = 1;- Parameters:
value- The bytes for repository to set.- Returns:
- This builder for chaining.
-
hasRevision
public boolean hasRevision()
revision is the commit hash for the specified revision. +optional
optional string revision = 2;- Specified by:
hasRevisionin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- Whether the revision field is set.
-
getRevision
public String getRevision()
revision is the commit hash for the specified revision. +optional
optional string revision = 2;- Specified by:
getRevisionin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- The revision.
-
getRevisionBytes
public com.google.protobuf.ByteString getRevisionBytes()
revision is the commit hash for the specified revision. +optional
optional string revision = 2;- Specified by:
getRevisionBytesin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- The bytes for revision.
-
setRevision
public Generated.GitRepoVolumeSource.Builder setRevision(String value)
revision is the commit hash for the specified revision. +optional
optional string revision = 2;- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
public Generated.GitRepoVolumeSource.Builder clearRevision()
revision is the commit hash for the specified revision. +optional
optional string revision = 2;- Returns:
- This builder for chaining.
-
setRevisionBytes
public Generated.GitRepoVolumeSource.Builder setRevisionBytes(com.google.protobuf.ByteString value)
revision is the commit hash for the specified revision. +optional
optional string revision = 2;- Parameters:
value- The bytes for revision to set.- Returns:
- This builder for chaining.
-
hasDirectory
public boolean hasDirectory()
directory is the 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;- Specified by:
hasDirectoryin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- Whether the directory field is set.
-
getDirectory
public String getDirectory()
directory is the 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;- Specified by:
getDirectoryin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- The directory.
-
getDirectoryBytes
public com.google.protobuf.ByteString getDirectoryBytes()
directory is the 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;- Specified by:
getDirectoryBytesin interfaceGenerated.GitRepoVolumeSourceOrBuilder- Returns:
- The bytes for directory.
-
setDirectory
public Generated.GitRepoVolumeSource.Builder setDirectory(String value)
directory is the 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;- Parameters:
value- The directory to set.- Returns:
- This builder for chaining.
-
clearDirectory
public Generated.GitRepoVolumeSource.Builder clearDirectory()
directory is the 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;- Returns:
- This builder for chaining.
-
setDirectoryBytes
public Generated.GitRepoVolumeSource.Builder setDirectoryBytes(com.google.protobuf.ByteString value)
directory is the 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;- Parameters:
value- The bytes for directory to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.GitRepoVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GitRepoVolumeSource.Builder>
-
mergeUnknownFields
public final Generated.GitRepoVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.GitRepoVolumeSource.Builder>
-
-