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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
    • getDefaultInstanceForType

      public V1.GitRepoVolumeSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public V1.GitRepoVolumeSource build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1.GitRepoVolumeSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
    • clearField

      public V1.GitRepoVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
    • clearOneof

      public V1.GitRepoVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
    • mergeFrom

      public V1.GitRepoVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.GitRepoVolumeSource.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.GitRepoVolumeSource.Builder>
      Throws:
      IOException
    • hasRepository

      public boolean hasRepository()
       Repository URL
       
      optional string repository = 1;
      Specified by:
      hasRepository in interface V1.GitRepoVolumeSourceOrBuilder
    • getRepository

      public String getRepository()
       Repository URL
       
      optional string repository = 1;
      Specified by:
      getRepository in interface V1.GitRepoVolumeSourceOrBuilder
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       Repository URL
       
      optional string repository = 1;
      Specified by:
      getRepositoryBytes in interface V1.GitRepoVolumeSourceOrBuilder
    • setRepository

      public V1.GitRepoVolumeSource.Builder setRepository(String value)
       Repository URL
       
      optional string repository = 1;
    • clearRepository

      public V1.GitRepoVolumeSource.Builder clearRepository()
       Repository URL
       
      optional string repository = 1;
    • setRepositoryBytes

      public V1.GitRepoVolumeSource.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       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 interface V1.GitRepoVolumeSourceOrBuilder
    • getRevision

      public String getRevision()
       Commit hash for the specified revision.
       +optional
       
      optional string revision = 2;
      Specified by:
      getRevision in interface V1.GitRepoVolumeSourceOrBuilder
    • getRevisionBytes

      public com.google.protobuf.ByteString getRevisionBytes()
       Commit hash for the specified revision.
       +optional
       
      optional string revision = 2;
      Specified by:
      getRevisionBytes in interface V1.GitRepoVolumeSourceOrBuilder
    • setRevision

      public V1.GitRepoVolumeSource.Builder setRevision(String value)
       Commit hash for the specified revision.
       +optional
       
      optional string revision = 2;
    • clearRevision

      public V1.GitRepoVolumeSource.Builder clearRevision()
       Commit hash for the specified revision.
       +optional
       
      optional string revision = 2;
    • setRevisionBytes

      public V1.GitRepoVolumeSource.Builder setRevisionBytes(com.google.protobuf.ByteString value)
       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 interface V1.GitRepoVolumeSourceOrBuilder
    • getDirectory

      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;
      Specified by:
      getDirectory in interface V1.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 interface V1.GitRepoVolumeSourceOrBuilder
    • setDirectory

      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;
    • clearDirectory

      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;
    • setDirectoryBytes

      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;
    • setUnknownFields

      public final V1.GitRepoVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>
    • mergeUnknownFields

      public final V1.GitRepoVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.GitRepoVolumeSource.Builder>