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