Class GitHubConfig.Builder (3.85.0)

public static final class GitHubConfig.Builder extends GeneratedMessage.Builder<GitHubConfig.Builder> implements GitHubConfigOrBuilder

Configuration for connections to github.com.

Protobuf type google.devtools.cloudbuild.v2.GitHubConfig

Static Methods

getDescriptor()

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

Methods

build()

public GitHubConfig build()
Returns
Type Description
GitHubConfig

buildPartial()

public GitHubConfig buildPartial()
Returns
Type Description
GitHubConfig

clear()

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

clearAppInstallationId()

public GitHubConfig.Builder clearAppInstallationId()

GitHub App installation id.

int64 app_installation_id = 2;

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

clearAuthorizerCredential()

public GitHubConfig.Builder clearAuthorizerCredential()

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Returns
Type Description
GitHubConfig.Builder

getAppInstallationId()

public long getAppInstallationId()

GitHub App installation id.

int64 app_installation_id = 2;

Returns
Type Description
long

The appInstallationId.

getAuthorizerCredential()

public OAuthCredential getAuthorizerCredential()

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Returns
Type Description
OAuthCredential

The authorizerCredential.

getAuthorizerCredentialBuilder()

public OAuthCredential.Builder getAuthorizerCredentialBuilder()

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Returns
Type Description
OAuthCredential.Builder

getAuthorizerCredentialOrBuilder()

public OAuthCredentialOrBuilder getAuthorizerCredentialOrBuilder()

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Returns
Type Description
OAuthCredentialOrBuilder

getDefaultInstanceForType()

public GitHubConfig getDefaultInstanceForType()
Returns
Type Description
GitHubConfig

getDescriptorForType()

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

hasAuthorizerCredential()

public boolean hasAuthorizerCredential()

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Returns
Type Description
boolean

Whether the authorizerCredential field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthorizerCredential(OAuthCredential value)

public GitHubConfig.Builder mergeAuthorizerCredential(OAuthCredential value)

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Parameter
Name Description
value OAuthCredential
Returns
Type Description
GitHubConfig.Builder

mergeFrom(GitHubConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAppInstallationId(long value)

public GitHubConfig.Builder setAppInstallationId(long value)

GitHub App installation id.

int64 app_installation_id = 2;

Parameter
Name Description
value long

The appInstallationId to set.

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

setAuthorizerCredential(OAuthCredential value)

public GitHubConfig.Builder setAuthorizerCredential(OAuthCredential value)

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Parameter
Name Description
value OAuthCredential
Returns
Type Description
GitHubConfig.Builder

setAuthorizerCredential(OAuthCredential.Builder builderForValue)

public GitHubConfig.Builder setAuthorizerCredential(OAuthCredential.Builder builderForValue)

OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.

.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;

Parameter
Name Description
builderForValue OAuthCredential.Builder
Returns
Type Description
GitHubConfig.Builder