Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class FileDiff.
Metadata of a FileDiff. FileDiff represents a single file diff in a pull request.
Generated from protobuf message google.cloud.securesourcemanager.v1.FileDiff
Namespace
Google \ Cloud \ SecureSourceManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ name | stringOutput only. The name of the file. | 
| ↳ action | intOutput only. The action taken on the file (eg. added, modified, deleted). | 
| ↳ sha | stringOutput only. The commit pointing to the file changes. | 
| ↳ patch | stringOutput only. The git patch containing the file changes. | 
getName
Output only. The name of the file.
| Returns | |
|---|---|
| Type | Description | 
| string | |
setName
Output only. The name of the file.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getAction
Output only. The action taken on the file (eg. added, modified, deleted).
| Returns | |
|---|---|
| Type | Description | 
| int | Enum of type Action. | 
setAction
Output only. The action taken on the file (eg. added, modified, deleted).
| Parameter | |
|---|---|
| Name | Description | 
| var | intEnum of type Action. | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getSha
Output only. The commit pointing to the file changes.
| Returns | |
|---|---|
| Type | Description | 
| string | |
setSha
Output only. The commit pointing to the file changes.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getPatch
Output only. The git patch containing the file changes.
| Returns | |
|---|---|
| Type | Description | 
| string | |
setPatch
Output only. The git patch containing the file changes.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |