Package io.kubernetes.client.proto
Class V1.GitRepoVolumeSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1.GitRepoVolumeSourceOrBuilder
,Cloneable
- Enclosing class:
- V1.GitRepoVolumeSource
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Target directory name.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Repository URLCommit hash for the specified revision.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Target directory name.com.google.protobuf.ByteString
Target directory name.Repository URLcom.google.protobuf.ByteString
Repository URLCommit hash for the specified revision.com.google.protobuf.ByteString
Commit hash for the specified revision.boolean
Target directory name.boolean
Repository URLboolean
Commit hash for the specified revision.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(V1.GitRepoVolumeSource other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDirectory
(String value) Target directory name.setDirectoryBytes
(com.google.protobuf.ByteString value) Target directory name.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRepository
(String value) Repository URLsetRepositoryBytes
(com.google.protobuf.ByteString value) Repository URLsetRevision
(String value) Commit hash for the specified revision.setRevisionBytes
(com.google.protobuf.ByteString value) Commit hash for the specified revision.setUnknownFields
(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, internalGetMutableMapField, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
setField
public V1.GitRepoVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
clearField
public V1.GitRepoVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
clearOneof
public V1.GitRepoVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
setRepeatedField
public V1.GitRepoVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
addRepeatedField
public V1.GitRepoVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.GitRepoVolumeSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
mergeFrom
public V1.GitRepoVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.GitRepoVolumeSource.Builder>
- Throws:
IOException
-
hasRepository
public boolean hasRepository()Repository URL
optional string repository = 1;
- Specified by:
hasRepository
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
getRepository
Repository URL
optional string repository = 1;
- Specified by:
getRepository
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
getRepositoryBytes
public com.google.protobuf.ByteString getRepositoryBytes()Repository URL
optional string repository = 1;
- Specified by:
getRepositoryBytes
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
setRepository
Repository URL
optional string repository = 1;
-
clearRepository
Repository URL
optional string repository = 1;
-
setRepositoryBytes
Repository URL
optional string repository = 1;
-
hasRevision
public boolean hasRevision()Commit hash for the specified revision. +optional
optional string revision = 2;
- Specified by:
hasRevision
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
getRevision
Commit hash for the specified revision. +optional
optional string revision = 2;
- Specified by:
getRevision
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
getRevisionBytes
public com.google.protobuf.ByteString getRevisionBytes()Commit hash for the specified revision. +optional
optional string revision = 2;
- Specified by:
getRevisionBytes
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
setRevision
Commit hash for the specified revision. +optional
optional string revision = 2;
-
clearRevision
Commit hash for the specified revision. +optional
optional string revision = 2;
-
setRevisionBytes
Commit hash for the specified revision. +optional
optional string revision = 2;
-
hasDirectory
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;
- Specified by:
hasDirectory
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
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;
- Specified by:
getDirectory
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
getDirectoryBytes
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;
- Specified by:
getDirectoryBytes
in interfaceV1.GitRepoVolumeSourceOrBuilder
-
setDirectory
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;
-
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;
-
setDirectoryBytes
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;
-
setUnknownFields
public final V1.GitRepoVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-
mergeUnknownFields
public final V1.GitRepoVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
-