Class GitHubConfig (3.18.0)

public final class GitHubConfig extends GeneratedMessageV3 implements GitHubConfigOrBuilder

Configuration for connections to github.com.

Protobuf type google.devtools.cloudbuild.v2.GitHubConfig

Static Fields

APP_INSTALLATION_ID_FIELD_NUMBER

public static final int APP_INSTALLATION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

AUTHORIZER_CREDENTIAL_FIELD_NUMBER

public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GitHubConfig getDefaultInstance()
Returns
TypeDescription
GitHubConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GitHubConfig.Builder newBuilder()
Returns
TypeDescription
GitHubConfig.Builder

newBuilder(GitHubConfig prototype)

public static GitHubConfig.Builder newBuilder(GitHubConfig prototype)
Parameter
NameDescription
prototypeGitHubConfig
Returns
TypeDescription
GitHubConfig.Builder

parseDelimitedFrom(InputStream input)

public static GitHubConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GitHubConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GitHubConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GitHubConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GitHubConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GitHubConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GitHubConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GitHubConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GitHubConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GitHubConfig> parser()
Returns
TypeDescription
Parser<GitHubConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAppInstallationId()

public long getAppInstallationId()

GitHub App installation id.

int64 app_installation_id = 2;

Returns
TypeDescription
long

The appInstallationId.

getAuthorizerCredential()

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
TypeDescription
OAuthCredential

The authorizerCredential.

getAuthorizerCredentialOrBuilder()

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
TypeDescription
OAuthCredentialOrBuilder

getDefaultInstanceForType()

public GitHubConfig getDefaultInstanceForType()
Returns
TypeDescription
GitHubConfig

getParserForType()

public Parser<GitHubConfig> getParserForType()
Returns
TypeDescription
Parser<GitHubConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAuthorizerCredential()

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
TypeDescription
boolean

Whether the authorizerCredential field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GitHubConfig.Builder newBuilderForType()
Returns
TypeDescription
GitHubConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GitHubConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GitHubConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GitHubConfig.Builder toBuilder()
Returns
TypeDescription
GitHubConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException