Class RepoSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RepoSource.Builder>
com.google.cloud.functions.v2beta.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.GeneratedMessage.Builder<RepoSource.Builder> implements RepoSourceOrBuilder
 Location of the source in a Google Cloud Source Repository.
 
Protobuf type google.cloud.functions.v2beta.RepoSource
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public RepoSource.Builder mergeFrom(RepoSource other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getRevisionCase

      public RepoSource.RevisionCase getRevisionCase()
      Specified by:
      getRevisionCase in interface RepoSourceOrBuilder
    • clearRevision

      public RepoSource.Builder clearRevision()
    • 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.
    • getCommitSha

      public String getCommitSha()
       Explicit commit SHA to build.
       
      string commit_sha = 5;
      Specified by:
      getCommitSha in interface RepoSourceOrBuilder
      Returns:
      The commitSha.
    • 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.