# Cloud Build V1 API - Class Google::Cloud::Build::V1::RepositoryEventConfig (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.27.1 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::RepositoryEventConfig.

The configuration of a trigger that creates a build whenever an event from
Repo API is received.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #pull_request

    def pull_request() -> ::Google::Cloud::Build::V1::PullRequestFilter

**Returns**

- ([::Google::Cloud::Build::V1::PullRequestFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-PullRequestFilter)) --- Filter to match changes in pull requests.


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

### #pull_request=

    def pull_request=(value) -> ::Google::Cloud::Build::V1::PullRequestFilter

**Parameter**

- **value** ([::Google::Cloud::Build::V1::PullRequestFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-PullRequestFilter)) --- Filter to match changes in pull requests.


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

- ([::Google::Cloud::Build::V1::PullRequestFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-PullRequestFilter)) --- Filter to match changes in pull requests.


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

### #push

    def push() -> ::Google::Cloud::Build::V1::PushFilter

**Returns**

- ([::Google::Cloud::Build::V1::PushFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-PushFilter)) --- Filter to match changes in refs like branches, tags.


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

### #push=

    def push=(value) -> ::Google::Cloud::Build::V1::PushFilter

**Parameter**

- **value** ([::Google::Cloud::Build::V1::PushFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-PushFilter)) --- Filter to match changes in refs like branches, tags.


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

- ([::Google::Cloud::Build::V1::PushFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-PushFilter)) --- Filter to match changes in refs like branches, tags.


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

### #repository

    def repository() -> ::String

**Returns**

- (::String) --- The resource name of the Repo API resource.

### #repository=

    def repository=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the Repo API resource.
**Returns**

- (::String) --- The resource name of the Repo API resource.

### #repository_type

    def repository_type() -> ::Google::Cloud::Build::V1::RepositoryEventConfig::RepositoryType

**Returns**

- ([::Google::Cloud::Build::V1::RepositoryEventConfig::RepositoryType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-RepositoryEventConfig-RepositoryType)) --- Output only. The type of the SCM vendor the repository points to.