Class RepoSource.Builder

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

    public static final class RepoSource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
    implements RepoSourceOrBuilder
     Location of the source in a Google Cloud Source Repository.
     
    Protobuf type google.cloud.functions.v2beta.RepoSource
    • 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<RepoSource.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public RepoSource.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<RepoSource.Builder>
        Throws:
        IOException
      • hasBranchName

        public boolean hasBranchName()
         Regex matching branches to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string branch_name = 3;
        Specified by:
        hasBranchName in interface RepoSourceOrBuilder
        Returns:
        Whether the branchName field is set.
      • getBranchName

        public String getBranchName()
         Regex matching branches to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string branch_name = 3;
        Specified by:
        getBranchName in interface RepoSourceOrBuilder
        Returns:
        The branchName.
      • getBranchNameBytes

        public com.google.protobuf.ByteString getBranchNameBytes()
         Regex matching branches to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string branch_name = 3;
        Specified by:
        getBranchNameBytes in interface RepoSourceOrBuilder
        Returns:
        The bytes for branchName.
      • setBranchName

        public RepoSource.Builder setBranchName​(String value)
         Regex matching branches to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string branch_name = 3;
        Parameters:
        value - The branchName to set.
        Returns:
        This builder for chaining.
      • clearBranchName

        public RepoSource.Builder clearBranchName()
         Regex matching branches to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string branch_name = 3;
        Returns:
        This builder for chaining.
      • setBranchNameBytes

        public RepoSource.Builder setBranchNameBytes​(com.google.protobuf.ByteString value)
         Regex matching branches to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string branch_name = 3;
        Parameters:
        value - The bytes for branchName to set.
        Returns:
        This builder for chaining.
      • hasTagName

        public boolean hasTagName()
         Regex matching tags to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string tag_name = 4;
        Specified by:
        hasTagName in interface RepoSourceOrBuilder
        Returns:
        Whether the tagName field is set.
      • getTagName

        public String getTagName()
         Regex matching tags to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string tag_name = 4;
        Specified by:
        getTagName in interface RepoSourceOrBuilder
        Returns:
        The tagName.
      • getTagNameBytes

        public com.google.protobuf.ByteString getTagNameBytes()
         Regex matching tags to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string tag_name = 4;
        Specified by:
        getTagNameBytes in interface RepoSourceOrBuilder
        Returns:
        The bytes for tagName.
      • setTagName

        public RepoSource.Builder setTagName​(String value)
         Regex matching tags to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string tag_name = 4;
        Parameters:
        value - The tagName to set.
        Returns:
        This builder for chaining.
      • clearTagName

        public RepoSource.Builder clearTagName()
         Regex matching tags to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string tag_name = 4;
        Returns:
        This builder for chaining.
      • setTagNameBytes

        public RepoSource.Builder setTagNameBytes​(com.google.protobuf.ByteString value)
         Regex matching tags to build.
        
         The syntax of the regular expressions accepted is the syntax accepted by
         RE2 and described at https://github.com/google/re2/wiki/Syntax
         
        string tag_name = 4;
        Parameters:
        value - The bytes for tagName to set.
        Returns:
        This builder for chaining.
      • hasCommitSha

        public boolean hasCommitSha()
         Explicit commit SHA to build.
         
        string commit_sha = 5;
        Specified by:
        hasCommitSha in interface RepoSourceOrBuilder
        Returns:
        Whether the commitSha field is set.
      • getCommitShaBytes

        public com.google.protobuf.ByteString getCommitShaBytes()
         Explicit commit SHA to build.
         
        string commit_sha = 5;
        Specified by:
        getCommitShaBytes in interface RepoSourceOrBuilder
        Returns:
        The bytes for commitSha.
      • setCommitSha

        public RepoSource.Builder setCommitSha​(String value)
         Explicit commit SHA to build.
         
        string commit_sha = 5;
        Parameters:
        value - The commitSha to set.
        Returns:
        This builder for chaining.
      • clearCommitSha

        public RepoSource.Builder clearCommitSha()
         Explicit commit SHA to build.
         
        string commit_sha = 5;
        Returns:
        This builder for chaining.
      • setCommitShaBytes

        public RepoSource.Builder setCommitShaBytes​(com.google.protobuf.ByteString value)
         Explicit commit SHA to build.
         
        string commit_sha = 5;
        Parameters:
        value - The bytes for commitSha to set.
        Returns:
        This builder for chaining.
      • getProjectId

        public String getProjectId()
         ID of the project that owns the Cloud Source Repository. If omitted, the
         project ID requesting the build is assumed.
         
        string project_id = 1;
        Specified by:
        getProjectId in interface RepoSourceOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         ID of the project that owns the Cloud Source Repository. If omitted, the
         project ID requesting the build is assumed.
         
        string project_id = 1;
        Specified by:
        getProjectIdBytes in interface RepoSourceOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public RepoSource.Builder setProjectId​(String value)
         ID of the project that owns the Cloud Source Repository. If omitted, the
         project ID requesting the build is assumed.
         
        string project_id = 1;
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public RepoSource.Builder clearProjectId()
         ID of the project that owns the Cloud Source Repository. If omitted, the
         project ID requesting the build is assumed.
         
        string project_id = 1;
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public RepoSource.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         ID of the project that owns the Cloud Source Repository. If omitted, the
         project ID requesting the build is assumed.
         
        string project_id = 1;
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getRepoName

        public String getRepoName()
         Name of the Cloud Source Repository.
         
        string repo_name = 2;
        Specified by:
        getRepoName in interface RepoSourceOrBuilder
        Returns:
        The repoName.
      • getRepoNameBytes

        public com.google.protobuf.ByteString getRepoNameBytes()
         Name of the Cloud Source Repository.
         
        string repo_name = 2;
        Specified by:
        getRepoNameBytes in interface RepoSourceOrBuilder
        Returns:
        The bytes for repoName.
      • setRepoName

        public RepoSource.Builder setRepoName​(String value)
         Name of the Cloud Source Repository.
         
        string repo_name = 2;
        Parameters:
        value - The repoName to set.
        Returns:
        This builder for chaining.
      • clearRepoName

        public RepoSource.Builder clearRepoName()
         Name of the Cloud Source Repository.
         
        string repo_name = 2;
        Returns:
        This builder for chaining.
      • setRepoNameBytes

        public RepoSource.Builder setRepoNameBytes​(com.google.protobuf.ByteString value)
         Name of the Cloud Source Repository.
         
        string repo_name = 2;
        Parameters:
        value - The bytes for repoName to set.
        Returns:
        This builder for chaining.
      • getDir

        public String getDir()
         Directory, relative to the source root, in which to run the build.
        
         This must be a relative path. If a step's `dir` is specified and is an
         absolute path, this value is ignored for that step's execution.
         eg. helloworld (no leading slash allowed)
         
        string dir = 6;
        Specified by:
        getDir in interface RepoSourceOrBuilder
        Returns:
        The dir.
      • getDirBytes

        public com.google.protobuf.ByteString getDirBytes()
         Directory, relative to the source root, in which to run the build.
        
         This must be a relative path. If a step's `dir` is specified and is an
         absolute path, this value is ignored for that step's execution.
         eg. helloworld (no leading slash allowed)
         
        string dir = 6;
        Specified by:
        getDirBytes in interface RepoSourceOrBuilder
        Returns:
        The bytes for dir.
      • setDir

        public RepoSource.Builder setDir​(String value)
         Directory, relative to the source root, in which to run the build.
        
         This must be a relative path. If a step's `dir` is specified and is an
         absolute path, this value is ignored for that step's execution.
         eg. helloworld (no leading slash allowed)
         
        string dir = 6;
        Parameters:
        value - The dir to set.
        Returns:
        This builder for chaining.
      • clearDir

        public RepoSource.Builder clearDir()
         Directory, relative to the source root, in which to run the build.
        
         This must be a relative path. If a step's `dir` is specified and is an
         absolute path, this value is ignored for that step's execution.
         eg. helloworld (no leading slash allowed)
         
        string dir = 6;
        Returns:
        This builder for chaining.
      • setDirBytes

        public RepoSource.Builder setDirBytes​(com.google.protobuf.ByteString value)
         Directory, relative to the source root, in which to run the build.
        
         This must be a relative path. If a step's `dir` is specified and is an
         absolute path, this value is ignored for that step's execution.
         eg. helloworld (no leading slash allowed)
         
        string dir = 6;
        Parameters:
        value - The bytes for dir to set.
        Returns:
        This builder for chaining.
      • getInvertRegex

        public boolean getInvertRegex()
         Only trigger a build if the revision regex does NOT match the revision
         regex.
         
        bool invert_regex = 7;
        Specified by:
        getInvertRegex in interface RepoSourceOrBuilder
        Returns:
        The invertRegex.
      • setInvertRegex

        public RepoSource.Builder setInvertRegex​(boolean value)
         Only trigger a build if the revision regex does NOT match the revision
         regex.
         
        bool invert_regex = 7;
        Parameters:
        value - The invertRegex to set.
        Returns:
        This builder for chaining.
      • clearInvertRegex

        public RepoSource.Builder clearInvertRegex()
         Only trigger a build if the revision regex does NOT match the revision
         regex.
         
        bool invert_regex = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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