public static final class GitHubConfig.Builder extends GeneratedMessageV3.Builder<GitHubConfig.Builder> implements GitHubConfigOrBuilderConfiguration 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
GitHubConfigOrBuilderStatic 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 |
|
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 |
|
clearAppInstallationId()
public GitHubConfig.Builder clearAppInstallationId()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()
public GitHubConfig.Builder clearAuthorizerCredential()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)
public GitHubConfig.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
clearGithubApp()
public GitHubConfig.Builder clearGithubApp()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()
public GitHubConfig.Builder clearInstallationUri()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)
public GitHubConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
clone()
public GitHubConfig.Builder clone()| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
getAppInstallationId()
public long getAppInstallationId()Optional. GitHub App installation id.
int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The appInstallationId. |
getAuthorizerCredential()
public OAuthCredential getAuthorizerCredential()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()
public OAuthCredential.Builder getAuthorizerCredentialBuilder()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()
public OAuthCredentialOrBuilder getAuthorizerCredentialOrBuilder()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()
public GitHubConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GitHubConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGithubApp()
public GitHubConfig.GitHubApp getGithubApp()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()
public int getGithubAppValue()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()
public String getInstallationUri()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()
public ByteString getInstallationUriBytes()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()
public boolean hasAuthorizerCredential()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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAuthorizerCredential(OAuthCredential value)
public GitHubConfig.Builder mergeAuthorizerCredential(OAuthCredential value)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)
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GitHubConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GitHubConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
setAppInstallationId(long value)
public GitHubConfig.Builder setAppInstallationId(long value)Optional. GitHub App installation id.
int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe appInstallationId to set. |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
This builder for chaining. |
setAuthorizerCredential(OAuthCredential value)
public GitHubConfig.Builder setAuthorizerCredential(OAuthCredential value)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)
public GitHubConfig.Builder setAuthorizerCredential(OAuthCredential.Builder builderForValue)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)
public GitHubConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|
setGithubApp(GitHubConfig.GitHubApp value)
public GitHubConfig.Builder setGithubApp(GitHubConfig.GitHubApp value)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.GitHubAppThe githubApp to set. |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
This builder for chaining. |
setGithubAppValue(int value)
public GitHubConfig.Builder setGithubAppValue(int value)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 |
intThe enum numeric value on the wire for githubApp to set. |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
This builder for chaining. |
setInstallationUri(String value)
public GitHubConfig.Builder setInstallationUri(String value)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 |
StringThe installationUri to set. |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
This builder for chaining. |
setInstallationUriBytes(ByteString value)
public GitHubConfig.Builder setInstallationUriBytes(ByteString value)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 |
ByteStringThe bytes for installationUri to set. |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
This builder for chaining. |
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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GitHubConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GitHubConfig.Builder |
|