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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
    • clear

      public GitHubConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GitHubConfig.Builder>
    • getDefaultInstanceForType

      public GitHubConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GitHubConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GitHubConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GitHubConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GitHubConfig.Builder>
    • mergeFrom

      public GitHubConfig.Builder mergeFrom(GitHubConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getGithubAppValue in interface GitHubConfigOrBuilder
      Returns:
      The enum numeric value on the wire for githubApp.
    • setGithubAppValue

      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];
      Parameters:
      value - The enum numeric value on the wire for githubApp to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getGithubApp in interface GitHubConfigOrBuilder
      Returns:
      The githubApp.
    • setGithubApp

      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];
      Parameters:
      value - The githubApp to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasAuthorizerCredential in interface GitHubConfigOrBuilder
      Returns:
      Whether the authorizerCredential field is set.
    • 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];
      Specified by:
      getAuthorizerCredential in interface GitHubConfigOrBuilder
      Returns:
      The authorizerCredential.
    • setAuthorizerCredential

      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];
    • setAuthorizerCredential

      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];
    • mergeAuthorizerCredential

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getAuthorizerCredentialOrBuilder in interface GitHubConfigOrBuilder
    • getAppInstallationId

      public long getAppInstallationId()
       Optional. GitHub App installation id.
       
      int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAppInstallationId in interface GitHubConfigOrBuilder
      Returns:
      The appInstallationId.
    • setAppInstallationId

      public GitHubConfig.Builder setAppInstallationId(long value)
       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

      public GitHubConfig.Builder clearAppInstallationId()
       Optional. GitHub App installation id.
       
      int64 app_installation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getInstallationUri in interface GitHubConfigOrBuilder
      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:
      getInstallationUriBytes in interface GitHubConfigOrBuilder
      Returns:
      The bytes for installationUri.
    • setInstallationUri

      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];
      Parameters:
      value - The installationUri to set.
      Returns:
      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:
      This builder for chaining.
    • setInstallationUriBytes

      public GitHubConfig.Builder setInstallationUriBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for installationUri to set.
      Returns:
      This builder for chaining.