Class GitHubConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
com.google.cloud.developerconnect.v1.GitHubConfig.Builder
- All Implemented Interfaces:
GitHubConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GitHubConfig
public static final class GitHubConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
implements GitHubConfigOrBuilder
Configuration for connections to github.com.Protobuf type
google.cloud.developerconnect.v1.GitHubConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.Output only.longOptional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.intRequired.Output only.com.google.protobuf.ByteStringOutput only.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(GitHubConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAppInstallationId(long value) Optional.Optional.setAuthorizerCredential(OAuthCredential.Builder builderForValue) Optional.Required.setGithubAppValue(int value) Required.setInstallationUri(String value) Output only.setInstallationUriBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitHubConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
-
mergeFrom
public GitHubConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitHubConfig.Builder>- Throws:
IOException
-
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];- Specified by:
getGithubAppValuein interfaceGitHubConfigOrBuilder- Returns:
- The enum numeric value on the wire for githubApp.
-
setGithubAppValue
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];- Parameters:
value- The enum numeric value on the wire for githubApp to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getGithubAppin interfaceGitHubConfigOrBuilder- Returns:
- The githubApp.
-
setGithubApp
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];- Parameters:
value- The githubApp to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasAuthorizerCredentialin interfaceGitHubConfigOrBuilder- Returns:
- Whether the authorizerCredential field is set.
-
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];- Specified by:
getAuthorizerCredentialin interfaceGitHubConfigOrBuilder- Returns:
- The authorizerCredential.
-
setAuthorizerCredential
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]; -
setAuthorizerCredential
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]; -
mergeAuthorizerCredential
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]; -
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]; -
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]; -
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];- Specified by:
getAuthorizerCredentialOrBuilderin interfaceGitHubConfigOrBuilder
-
getAppInstallationId
public long getAppInstallationId()Optional. GitHub App installation id.
int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAppInstallationIdin interfaceGitHubConfigOrBuilder- Returns:
- The appInstallationId.
-
setAppInstallationId
Optional. GitHub App installation id.
int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The appInstallationId to set.- Returns:
- This builder for chaining.
-
clearAppInstallationId
Optional. GitHub App installation id.
int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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];- Specified by:
getInstallationUriin interfaceGitHubConfigOrBuilder- Returns:
- The installationUri.
-
getInstallationUriBytes
public com.google.protobuf.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];- Specified by:
getInstallationUriBytesin interfaceGitHubConfigOrBuilder- Returns:
- The bytes for installationUri.
-
setInstallationUri
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];- Parameters:
value- The installationUri to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setInstallationUriBytes
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];- Parameters:
value- The bytes for installationUri to set.- Returns:
- This builder for chaining.
-