Class GitHubConfig.Builder (0.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass GitHubConfig.BuilderextendsGeneratedMessageV3.Builder<GitHubConfig.Builder>implementsGitHubConfigOrBuilderConfiguration for connections to github.com.
Protobuf type google.cloud.developerconnect.v1.GitHubConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GitHubConfig.BuilderImplements
GitHubConfigOrBuilderInherited Members
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 |
|
build()
publicGitHubConfigbuild()| Returns | |
|---|---|
| Type | Description |
GitHubConfig |
|
buildPartial()
publicGitHubConfigbuildPartial()| Returns | |
|---|---|
| Type | Description |
GitHubConfig |
|
clear()
publicGitHubConfig.Builderclear()| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
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 |
|
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 |
|
clone()
publicGitHubConfig.Builderclone()| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
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 |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicGitHubConfig.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalGitHubConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
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 |
|
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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalGitHubConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|