public final class GitHubConfig extends GeneratedMessageV3 implements GitHubConfigOrBuilder
Configuration for connections to github.com.
Protobuf type google.devtools.cloudbuild.v2.GitHubConfig
Static Fields
public static final int APP_INSTALLATION_ID_FIELD_NUMBER
Field Value
public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER
Field Value
Static Methods
public static GitHubConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static GitHubConfig.Builder newBuilder()
Returns
public static GitHubConfig.Builder newBuilder(GitHubConfig prototype)
Parameter
Returns
public static GitHubConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GitHubConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GitHubConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static GitHubConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GitHubConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static GitHubConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GitHubConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GitHubConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GitHubConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GitHubConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GitHubConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static GitHubConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<GitHubConfig> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
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 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 Parser<GitHubConfig> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public GitHubConfig.Builder newBuilderForType()
Returns
protected GitHubConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public GitHubConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions