# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::RepoSource (v1.5.1)

1.5.1 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::RepoSource.

Location of the source in a Google Cloud Source Repository.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #branch_name

    def branch_name() -> ::String

**Returns**

- (::String) --- 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

  Note: The following fields are mutually exclusive: `branch_name`, `tag_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #branch_name=

    def branch_name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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

  Note: The following fields are mutually exclusive: `branch_name`, `tag_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- 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

  Note: The following fields are mutually exclusive: `branch_name`, `tag_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #commit_sha

    def commit_sha() -> ::String

**Returns**

- (::String) --- Explicit commit SHA to build.

  Note: The following fields are mutually exclusive: `commit_sha`, `branch_name`, `tag_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #commit_sha=

    def commit_sha=(value) -> ::String

**Parameter**

- **value** (::String) --- Explicit commit SHA to build.


  Note: The following fields are mutually exclusive: `commit_sha`, `branch_name`, `tag_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Explicit commit SHA to build.

  Note: The following fields are mutually exclusive: `commit_sha`, `branch_name`, `tag_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #dir

    def dir() -> ::String

**Returns**

- (::String) --- 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)

### #dir=

    def dir=(value) -> ::String

**Parameter**

- **value** (::String) --- 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)
**Returns**

- (::String) --- 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)

### #invert_regex

    def invert_regex() -> ::Boolean

**Returns**

- (::Boolean) --- Only trigger a build if the revision regex does NOT match the revision regex.

### #invert_regex=

    def invert_regex=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Only trigger a build if the revision regex does NOT match the revision regex.
**Returns**

- (::Boolean) --- Only trigger a build if the revision regex does NOT match the revision regex.

### #project_id

    def project_id() -> ::String

**Returns**

- (::String) --- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

### #project_id=

    def project_id=(value) -> ::String

**Parameter**

- **value** (::String) --- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
**Returns**

- (::String) --- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

### #repo_name

    def repo_name() -> ::String

**Returns**

- (::String) --- Name of the Cloud Source Repository.

### #repo_name=

    def repo_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the Cloud Source Repository.
**Returns**

- (::String) --- Name of the Cloud Source Repository.

### #tag_name

    def tag_name() -> ::String

**Returns**

- (::String) --- 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

  Note: The following fields are mutually exclusive: `tag_name`, `branch_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #tag_name=

    def tag_name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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

  Note: The following fields are mutually exclusive: `tag_name`, `branch_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- 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

  Note: The following fields are mutually exclusive: `tag_name`, `branch_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.