Class GitHubConfig.Builder (0.32.0)

publicstaticfinalclass GitHubConfig.BuilderextendsGeneratedMessageV3.Builder<GitHubConfig.Builder>implementsGitHubConfigOrBuilder

Configuration for connections to github.com.

Protobuf type google.cloud.developerconnect.v1.GitHubConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicGitHubConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubConfig.Builder
Overrides

build()

publicGitHubConfigbuild()
Returns
Type Description
GitHubConfig

buildPartial()

publicGitHubConfigbuildPartial()
Returns
Type Description
GitHubConfig

clear()

publicGitHubConfig.Builderclear()
Returns
Type Description
GitHubConfig.Builder
Overrides

clearAppInstallationId()

publicGitHubConfig.BuilderclearAppInstallationId()

Optional. GitHub App installation id.

int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

clearAuthorizerCredential()

publicGitHubConfig.BuilderclearAuthorizerCredential()

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitHubConfig.Builder

clearField(Descriptors.FieldDescriptor field)

publicGitHubConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitHubConfig.Builder
Overrides

clearGithubApp()

publicGitHubConfig.BuilderclearGithubApp()

Required. Immutable. The GitHub Application that was installed to the GitHub user or organization.

.google.cloud.developerconnect.v1.GitHubConfig.GitHubApp github_app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

clearInstallationUri()

publicGitHubConfig.BuilderclearInstallationUri()

Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig.

string installation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicGitHubConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitHubConfig.Builder
Overrides

clone()

publicGitHubConfig.Builderclone()
Returns
Type Description
GitHubConfig.Builder
Overrides

getAppInstallationId()

publiclonggetAppInstallationId()

Optional. GitHub App installation id.

int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The appInstallationId.

getAuthorizerCredential()

publicOAuthCredentialgetAuthorizerCredential()

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthCredential

The authorizerCredential.

getAuthorizerCredentialBuilder()

publicOAuthCredential.BuildergetAuthorizerCredentialBuilder()

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthCredential.Builder

getAuthorizerCredentialOrBuilder()

publicOAuthCredentialOrBuildergetAuthorizerCredentialOrBuilder()

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthCredentialOrBuilder

getDefaultInstanceForType()

publicGitHubConfiggetDefaultInstanceForType()
Returns
Type Description
GitHubConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGithubApp()

publicGitHubConfig.GitHubAppgetGithubApp()

Required. Immutable. The GitHub Application that was installed to the GitHub user or organization.

.google.cloud.developerconnect.v1.GitHubConfig.GitHubApp github_app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GitHubConfig.GitHubApp

The githubApp.

getGithubAppValue()

publicintgetGithubAppValue()

Required. Immutable. The GitHub Application that was installed to the GitHub user or organization.

.google.cloud.developerconnect.v1.GitHubConfig.GitHubApp github_app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for githubApp.

getInstallationUri()

publicStringgetInstallationUri()

Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig.

string installation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The installationUri.

getInstallationUriBytes()

publicByteStringgetInstallationUriBytes()

Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig.

string installation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for installationUri.

hasAuthorizerCredential()

publicbooleanhasAuthorizerCredential()

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the authorizerCredential field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthorizerCredential(OAuthCredential value)

publicGitHubConfig.BuildermergeAuthorizerCredential(OAuthCredentialvalue)

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OAuthCredential
Returns
Type Description
GitHubConfig.Builder

mergeFrom(GitHubConfig other)

publicGitHubConfig.BuildermergeFrom(GitHubConfigother)
Parameter
Name Description
other GitHubConfig
Returns
Type Description
GitHubConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGitHubConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicGitHubConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
GitHubConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGitHubConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitHubConfig.Builder
Overrides

setAppInstallationId(long value)

publicGitHubConfig.BuildersetAppInstallationId(longvalue)

Optional. GitHub App installation id.

int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The appInstallationId to set.

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

setAuthorizerCredential(OAuthCredential value)

publicGitHubConfig.BuildersetAuthorizerCredential(OAuthCredentialvalue)

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OAuthCredential
Returns
Type Description
GitHubConfig.Builder

setAuthorizerCredential(OAuthCredential.Builder builderForValue)

publicGitHubConfig.BuildersetAuthorizerCredential(OAuthCredential.BuilderbuilderForValue)

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

.google.cloud.developerconnect.v1.OAuthCredential authorizer_credential = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setField(Descriptors.FieldDescriptor field, Object value)

publicGitHubConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubConfig.Builder
Overrides

setGithubApp(GitHubConfig.GitHubApp value)

publicGitHubConfig.BuildersetGithubApp(GitHubConfig.GitHubAppvalue)

Required. Immutable. The GitHub Application that was installed to the GitHub user or organization.

.google.cloud.developerconnect.v1.GitHubConfig.GitHubApp github_app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value GitHubConfig.GitHubApp

The githubApp to set.

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

setGithubAppValue(int value)

publicGitHubConfig.BuildersetGithubAppValue(intvalue)

Required. Immutable. The GitHub Application that was installed to the GitHub user or organization.

.google.cloud.developerconnect.v1.GitHubConfig.GitHubApp github_app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

The enum numeric value on the wire for githubApp to set.

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

setInstallationUri(String value)

publicGitHubConfig.BuildersetInstallationUri(Stringvalue)

Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig.

string installation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The installationUri to set.

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

setInstallationUriBytes(ByteString value)

publicGitHubConfig.BuildersetInstallationUriBytes(ByteStringvalue)

Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig.

string installation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for installationUri to set.

Returns
Type Description
GitHubConfig.Builder

This builder for chaining.

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

publicGitHubConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitHubConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGitHubConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitHubConfig.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.