Send feedback
Class GitHubConfig.Builder (3.14.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class GitHubConfig . Builder extends GeneratedMessageV3 . Builder<GitHubConfig . Builder> implements GitHubConfigOrBuilder
Configuration for connections to github.com.
Protobuf type google.devtools.cloudbuild.v2.GitHubConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
public GitHubConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public GitHubConfig build ()
Returns
public GitHubConfig buildPartial ()
Returns
public GitHubConfig . Builder clear ()
Returns
Overrides
public GitHubConfig . Builder clearAppInstallationId ()
GitHub App installation id.
int64 app_installation_id = 2;
Returns
public GitHubConfig . Builder clearAuthorizerCredential ()
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Returns
public GitHubConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public GitHubConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public GitHubConfig . Builder clone ()
Returns
Overrides
public long getAppInstallationId ()
GitHub App installation id.
int64 app_installation_id = 2;
Returns
Type Description long
The appInstallationId.
public OAuthCredential getAuthorizerCredential ()
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Returns
public OAuthCredential . Builder getAuthorizerCredentialBuilder ()
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Returns
public OAuthCredentialOrBuilder getAuthorizerCredentialOrBuilder ()
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Returns
public GitHubConfig getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
public boolean hasAuthorizerCredential ()
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Returns
Type Description boolean
Whether the authorizerCredential field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public GitHubConfig . Builder mergeAuthorizerCredential ( OAuthCredential value )
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Parameter
Returns
public GitHubConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public GitHubConfig . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public GitHubConfig . Builder mergeFrom ( GitHubConfig other )
Parameter
Returns
public final GitHubConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public GitHubConfig . Builder setAppInstallationId ( long value )
GitHub App installation id.
int64 app_installation_id = 2;
Parameter
Name Description value
long
The appInstallationId to set.
Returns
public GitHubConfig . Builder setAuthorizerCredential ( OAuthCredential value )
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Parameter
Returns
public GitHubConfig . Builder setAuthorizerCredential ( OAuthCredential . Builder builderForValue )
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
.google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1;
Parameter
Returns
public GitHubConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public GitHubConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final GitHubConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-01 UTC."]]