Class GitReference.Builder (0.3.0)

public static final class GitReference.Builder extends GeneratedMessage.Builder<GitReference.Builder> implements GitReferenceOrBuilder

The Git reference. Can be a commit SHA, branch name, or tag name.

Protobuf type google.cloud.designcenter.v1.GitReference

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GitReference build()
Returns
Type Description
GitReference

buildPartial()

public GitReference buildPartial()
Returns
Type Description
GitReference

clear()

public GitReference.Builder clear()
Returns
Type Description
GitReference.Builder
Overrides

clearBranch()

public GitReference.Builder clearBranch()

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
GitReference.Builder

This builder for chaining.

clearCommitSha()

public GitReference.Builder clearCommitSha()

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
GitReference.Builder

This builder for chaining.

clearRefTag()

public GitReference.Builder clearRefTag()

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
GitReference.Builder

This builder for chaining.

clearReference()

public GitReference.Builder clearReference()
Returns
Type Description
GitReference.Builder

getBranch()

public 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 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 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 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.

getDefaultInstanceForType()

public GitReference getDefaultInstanceForType()
Returns
Type Description
GitReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRefTag()

public 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 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 GitReference.ReferenceCase getReferenceCase()
Returns
Type Description
GitReference.ReferenceCase

hasBranch()

public 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GitReference other)

public GitReference.Builder mergeFrom(GitReference other)
Parameter
Name Description
other GitReference
Returns
Type Description
GitReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitReference.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GitReference.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GitReference.Builder
Overrides

setBranch(String value)

public GitReference.Builder setBranch(String value)

Optional. The name of the branch from which content should be read. For example: "main"

string branch = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The branch to set.

Returns
Type Description
GitReference.Builder

This builder for chaining.

setBranchBytes(ByteString value)

public GitReference.Builder setBranchBytes(ByteString value)

Optional. The name of the branch from which content should be read. For example: "main"

string branch = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for branch to set.

Returns
Type Description
GitReference.Builder

This builder for chaining.

setCommitSha(String value)

public GitReference.Builder setCommitSha(String value)

Optional. The full SHA hash of a specific commit from which content should be read.

string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The commitSha to set.

Returns
Type Description
GitReference.Builder

This builder for chaining.

setCommitShaBytes(ByteString value)

public GitReference.Builder setCommitShaBytes(ByteString value)

Optional. The full SHA hash of a specific commit from which content should be read.

string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for commitSha to set.

Returns
Type Description
GitReference.Builder

This builder for chaining.

setRefTag(String value)

public GitReference.Builder setRefTag(String value)

Optional. The reference tag from which content should be read. For example: "v1.2.3"

string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The refTag to set.

Returns
Type Description
GitReference.Builder

This builder for chaining.

setRefTagBytes(ByteString value)

public GitReference.Builder setRefTagBytes(ByteString value)

Optional. The reference tag from which content should be read. For example: "v1.2.3"

string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for refTag to set.

Returns
Type Description
GitReference.Builder

This builder for chaining.