Class GitSource.Builder

  • All Implemented Interfaces:
    GitSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GitSource

    public static final class GitSource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
    implements GitSourceOrBuilder
     A set of files in a Git repository.
     
    Protobuf type google.cloud.config.v1.GitSource
    • Method Detail

      • 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<GitSource.Builder>
      • clear

        public GitSource.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<GitSource.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<GitSource.Builder>
      • getDefaultInstanceForType

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

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

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

        public GitSource.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<GitSource.Builder>
      • setField

        public GitSource.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<GitSource.Builder>
      • clearField

        public GitSource.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<GitSource.Builder>
      • clearOneof

        public GitSource.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<GitSource.Builder>
      • setRepeatedField

        public GitSource.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<GitSource.Builder>
      • addRepeatedField

        public GitSource.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<GitSource.Builder>
      • mergeFrom

        public GitSource.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<GitSource.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GitSource.Builder>
      • mergeFrom

        public GitSource.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<GitSource.Builder>
        Throws:
        IOException
      • hasRepo

        public boolean hasRepo()
         Optional. Repository URL.
         Example: 'https://github.com/kubernetes/examples.git'
         
        optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasRepo in interface GitSourceOrBuilder
        Returns:
        Whether the repo field is set.
      • getRepo

        public String getRepo()
         Optional. Repository URL.
         Example: 'https://github.com/kubernetes/examples.git'
         
        optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRepo in interface GitSourceOrBuilder
        Returns:
        The repo.
      • getRepoBytes

        public com.google.protobuf.ByteString getRepoBytes()
         Optional. Repository URL.
         Example: 'https://github.com/kubernetes/examples.git'
         
        optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRepoBytes in interface GitSourceOrBuilder
        Returns:
        The bytes for repo.
      • setRepo

        public GitSource.Builder setRepo​(String value)
         Optional. Repository URL.
         Example: 'https://github.com/kubernetes/examples.git'
         
        optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The repo to set.
        Returns:
        This builder for chaining.
      • clearRepo

        public GitSource.Builder clearRepo()
         Optional. Repository URL.
         Example: 'https://github.com/kubernetes/examples.git'
         
        optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRepoBytes

        public GitSource.Builder setRepoBytes​(com.google.protobuf.ByteString value)
         Optional. Repository URL.
         Example: 'https://github.com/kubernetes/examples.git'
         
        optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for repo to set.
        Returns:
        This builder for chaining.
      • hasDirectory

        public boolean hasDirectory()
         Optional. Subdirectory inside the repository.
         Example: 'staging/my-package'
         
        optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasDirectory in interface GitSourceOrBuilder
        Returns:
        Whether the directory field is set.
      • getDirectory

        public String getDirectory()
         Optional. Subdirectory inside the repository.
         Example: 'staging/my-package'
         
        optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDirectory in interface GitSourceOrBuilder
        Returns:
        The directory.
      • getDirectoryBytes

        public com.google.protobuf.ByteString getDirectoryBytes()
         Optional. Subdirectory inside the repository.
         Example: 'staging/my-package'
         
        optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDirectoryBytes in interface GitSourceOrBuilder
        Returns:
        The bytes for directory.
      • setDirectory

        public GitSource.Builder setDirectory​(String value)
         Optional. Subdirectory inside the repository.
         Example: 'staging/my-package'
         
        optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The directory to set.
        Returns:
        This builder for chaining.
      • clearDirectory

        public GitSource.Builder clearDirectory()
         Optional. Subdirectory inside the repository.
         Example: 'staging/my-package'
         
        optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDirectoryBytes

        public GitSource.Builder setDirectoryBytes​(com.google.protobuf.ByteString value)
         Optional. Subdirectory inside the repository.
         Example: 'staging/my-package'
         
        optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for directory to set.
        Returns:
        This builder for chaining.
      • hasRef

        public boolean hasRef()
         Optional. Git reference (e.g. branch or tag).
         
        optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasRef in interface GitSourceOrBuilder
        Returns:
        Whether the ref field is set.
      • getRef

        public String getRef()
         Optional. Git reference (e.g. branch or tag).
         
        optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRef in interface GitSourceOrBuilder
        Returns:
        The ref.
      • getRefBytes

        public com.google.protobuf.ByteString getRefBytes()
         Optional. Git reference (e.g. branch or tag).
         
        optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRefBytes in interface GitSourceOrBuilder
        Returns:
        The bytes for ref.
      • setRef

        public GitSource.Builder setRef​(String value)
         Optional. Git reference (e.g. branch or tag).
         
        optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The ref to set.
        Returns:
        This builder for chaining.
      • clearRef

        public GitSource.Builder clearRef()
         Optional. Git reference (e.g. branch or tag).
         
        optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRefBytes

        public GitSource.Builder setRefBytes​(com.google.protobuf.ByteString value)
         Optional. Git reference (e.g. branch or tag).
         
        optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for ref to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GitSource.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<GitSource.Builder>
      • mergeUnknownFields

        public final GitSource.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<GitSource.Builder>