Class GitHubConfig.Builder (3.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitHubConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GitHubConfig.Builder
Overrides

build()

public GitHubConfig build()
Returns
TypeDescription
GitHubConfig

buildPartial()

public GitHubConfig buildPartial()
Returns
TypeDescription
GitHubConfig

clear()

public GitHubConfig.Builder clear()
Returns
TypeDescription
GitHubConfig.Builder
Overrides

clearAppInstallationId()

public GitHubConfig.Builder clearAppInstallationId()

GitHub App installation id.

int64 app_installation_id = 2;

Returns
TypeDescription
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
TypeDescription
GitHubConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public GitHubConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GitHubConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GitHubConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GitHubConfig.Builder
Overrides

clone()

public GitHubConfig.Builder clone()
Returns
TypeDescription
GitHubConfig.Builder
Overrides

getAppInstallationId()

public long getAppInstallationId()

GitHub App installation id.

int64 app_installation_id = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
OAuthCredentialOrBuilder

getDefaultInstanceForType()

public GitHubConfig getDefaultInstanceForType()
Returns
TypeDescription
GitHubConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the authorizerCredential field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueOAuthCredential
Returns
TypeDescription
GitHubConfig.Builder

mergeFrom(GitHubConfig other)

public GitHubConfig.Builder mergeFrom(GitHubConfig other)
Parameter
NameDescription
otherGitHubConfig
Returns
TypeDescription
GitHubConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitHubConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GitHubConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GitHubConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitHubConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GitHubConfig.Builder
Overrides

setAppInstallationId(long value)

public GitHubConfig.Builder setAppInstallationId(long value)

GitHub App installation id.

int64 app_installation_id = 2;

Parameter
NameDescription
valuelong

The appInstallationId to set.

Returns
TypeDescription
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
NameDescription
valueOAuthCredential
Returns
TypeDescription
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
NameDescription
builderForValueOAuthCredential.Builder
Returns
TypeDescription
GitHubConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GitHubConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GitHubConfig.Builder
Overrides

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

public GitHubConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GitHubConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GitHubConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GitHubConfig.Builder
Overrides