Class GitHubEventsConfig (3.22.0)

publicfinalclass GitHubEventsConfigextendsGeneratedMessageV3implementsGitHubEventsConfigOrBuilder

GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.

This message is experimental.

Protobuf type google.devtools.cloudbuild.v1.GitHubEventsConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

INSTALLATION_ID_FIELD_NUMBER

publicstaticfinalintINSTALLATION_ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

OWNER_FIELD_NUMBER

publicstaticfinalintOWNER_FIELD_NUMBER
Field Value
Type Description
int

PULL_REQUEST_FIELD_NUMBER

publicstaticfinalintPULL_REQUEST_FIELD_NUMBER
Field Value
Type Description
int

PUSH_FIELD_NUMBER

publicstaticfinalintPUSH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticGitHubEventsConfiggetDefaultInstance()
Returns
Type Description
GitHubEventsConfig

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticGitHubEventsConfig.BuildernewBuilder()
Returns
Type Description
GitHubEventsConfig.Builder

newBuilder(GitHubEventsConfig prototype)

publicstaticGitHubEventsConfig.BuildernewBuilder(GitHubEventsConfigprototype)
Parameter
Name Description
prototype GitHubEventsConfig
Returns
Type Description
GitHubEventsConfig.Builder

parseDelimitedFrom(InputStream input)

publicstaticGitHubEventsConfigparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGitHubEventsConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticGitHubEventsConfigparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticGitHubEventsConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticGitHubEventsConfigparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticGitHubEventsConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticGitHubEventsConfigparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGitHubEventsConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticGitHubEventsConfigparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticGitHubEventsConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticGitHubEventsConfigparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticGitHubEventsConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEventsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<GitHubEventsConfig>parser()
Returns
Type Description
Parser<GitHubEventsConfig>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicGitHubEventsConfiggetDefaultInstanceForType()
Returns
Type Description
GitHubEventsConfig

getEventCase()

publicGitHubEventsConfig.EventCasegetEventCase()
Returns
Type Description
GitHubEventsConfig.EventCase

getInstallationId() (deprecated)

publiclonggetInstallationId()

Deprecated. google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1585

The installationID that emits the GitHub event.

int64 installation_id = 1 [deprecated = true];

Returns
Type Description
long

The installationId.

getName()

publicStringgetName()

Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".

string name = 7;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".

string name = 7;

Returns
Type Description
ByteString

The bytes for name.

getOwner()

publicStringgetOwner()

Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".

string owner = 6;

Returns
Type Description
String

The owner.

getOwnerBytes()

publicByteStringgetOwnerBytes()

Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".

string owner = 6;

Returns
Type Description
ByteString

The bytes for owner.

getParserForType()

publicParser<GitHubEventsConfig>getParserForType()
Returns
Type Description
Parser<GitHubEventsConfig>
Overrides

getPullRequest()

publicPullRequestFiltergetPullRequest()

filter to match changes in pull requests.

.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 4;

Returns
Type Description
PullRequestFilter

The pullRequest.

getPullRequestOrBuilder()

publicPullRequestFilterOrBuildergetPullRequestOrBuilder()

filter to match changes in pull requests.

.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 4;

Returns
Type Description
PullRequestFilterOrBuilder

getPush()

publicPushFiltergetPush()

filter to match changes in refs like branches, tags.

.google.devtools.cloudbuild.v1.PushFilter push = 5;

Returns
Type Description
PushFilter

The push.

getPushOrBuilder()

publicPushFilterOrBuildergetPushOrBuilder()

filter to match changes in refs like branches, tags.

.google.devtools.cloudbuild.v1.PushFilter push = 5;

Returns
Type Description
PushFilterOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasPullRequest()

publicbooleanhasPullRequest()

filter to match changes in pull requests.

.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 4;

Returns
Type Description
boolean

Whether the pullRequest field is set.

hasPush()

publicbooleanhasPush()

filter to match changes in refs like branches, tags.

.google.devtools.cloudbuild.v1.PushFilter push = 5;

Returns
Type Description
boolean

Whether the push field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicGitHubEventsConfig.BuildernewBuilderForType()
Returns
Type Description
GitHubEventsConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedGitHubEventsConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicGitHubEventsConfig.BuildertoBuilder()
Returns
Type Description
GitHubEventsConfig.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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 2025年11月19日 UTC.