public interface GitReferenceOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getBranch()
public abstract String getBranch()Optional. The name of the branch from which content should be read. For example: "main"
string branch = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The branch. |
getBranchBytes()
public abstract ByteString getBranchBytes()Optional. The name of the branch from which content should be read. For example: "main"
string branch = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for branch. |
getCommitSha()
public abstract String getCommitSha()Optional. The full SHA hash of a specific commit from which content should be read.
string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The commitSha. |
getCommitShaBytes()
public abstract ByteString getCommitShaBytes()Optional. The full SHA hash of a specific commit from which content should be read.
string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for commitSha. |
getRefTag()
public abstract String getRefTag()Optional. The reference tag from which content should be read. For example: "v1.2.3"
string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The refTag. |
getRefTagBytes()
public abstract ByteString getRefTagBytes()Optional. The reference tag from which content should be read. For example: "v1.2.3"
string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for refTag. |
getReferenceCase()
public abstract GitReference.ReferenceCase getReferenceCase()| Returns | |
|---|---|
| Type | Description |
GitReference.ReferenceCase |
|
hasBranch()
public abstract boolean hasBranch()Optional. The name of the branch from which content should be read. For example: "main"
string branch = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the branch field is set. |
hasCommitSha()
public abstract boolean hasCommitSha()Optional. The full SHA hash of a specific commit from which content should be read.
string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the commitSha field is set. |
hasRefTag()
public abstract boolean hasRefTag()Optional. The reference tag from which content should be read. For example: "v1.2.3"
string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the refTag field is set. |