Class GitHubConfig.Builder (3.56.0)

public static final class GitHubConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitHubConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubConfig.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public GitHubConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitHubConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GitHubConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitHubConfig.Builder
Overrides

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitHubConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public GitHubConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GitHubConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitHubConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GitHubConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitHubConfig.Builder
Overrides