Class GitHubEventsConfig.Builder (3.54.0)

public static final class GitHubEventsConfig.Builder extends GeneratedMessageV3.Builder<GitHubEventsConfig.Builder> implements GitHubEventsConfigOrBuilder

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

Protobuf type google.devtools.cloudbuild.v1.GitHubEventsConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitHubEventsConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

build()

public GitHubEventsConfig build()
Returns
Type Description
GitHubEventsConfig

buildPartial()

public GitHubEventsConfig buildPartial()
Returns
Type Description
GitHubEventsConfig

clear()

public GitHubEventsConfig.Builder clear()
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

clearEvent()

public GitHubEventsConfig.Builder clearEvent()
Returns
Type Description
GitHubEventsConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public GitHubEventsConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

clearInstallationId() (deprecated)

public GitHubEventsConfig.Builder clearInstallationId()

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

The installationID that emits the GitHub event.

int64 installation_id = 1 [deprecated = true];

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

clearName()

public GitHubEventsConfig.Builder clearName()

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

string name = 7;

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GitHubEventsConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

clearOwner()

public GitHubEventsConfig.Builder clearOwner()

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

string owner = 6;

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

clearPullRequest()

public GitHubEventsConfig.Builder clearPullRequest()

filter to match changes in pull requests.

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

Returns
Type Description
GitHubEventsConfig.Builder

clearPush()

public GitHubEventsConfig.Builder clearPush()

filter to match changes in refs like branches, tags.

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

Returns
Type Description
GitHubEventsConfig.Builder

clone()

public GitHubEventsConfig.Builder clone()
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

getDefaultInstanceForType()

public GitHubEventsConfig getDefaultInstanceForType()
Returns
Type Description
GitHubEventsConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEventCase()

public GitHubEventsConfig.EventCase getEventCase()
Returns
Type Description
GitHubEventsConfig.EventCase

getInstallationId() (deprecated)

public long getInstallationId()

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

The installationID that emits the GitHub event.

int64 installation_id = 1 [deprecated = true];

Returns
Type Description
long

The installationId.

getName()

public String getName()

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()

public ByteString getNameBytes()

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()

public String getOwner()

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()

public ByteString getOwnerBytes()

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.

getPullRequest()

public PullRequestFilter getPullRequest()

filter to match changes in pull requests.

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

Returns
Type Description
PullRequestFilter

The pullRequest.

getPullRequestBuilder()

public PullRequestFilter.Builder getPullRequestBuilder()

filter to match changes in pull requests.

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

Returns
Type Description
PullRequestFilter.Builder

getPullRequestOrBuilder()

public PullRequestFilterOrBuilder getPullRequestOrBuilder()

filter to match changes in pull requests.

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

Returns
Type Description
PullRequestFilterOrBuilder

getPush()

public PushFilter getPush()

filter to match changes in refs like branches, tags.

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

Returns
Type Description
PushFilter

The push.

getPushBuilder()

public PushFilter.Builder getPushBuilder()

filter to match changes in refs like branches, tags.

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

Returns
Type Description
PushFilter.Builder

getPushOrBuilder()

public PushFilterOrBuilder getPushOrBuilder()

filter to match changes in refs like branches, tags.

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

Returns
Type Description
PushFilterOrBuilder

hasPullRequest()

public boolean hasPullRequest()

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()

public boolean hasPush()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GitHubEventsConfig other)

public GitHubEventsConfig.Builder mergeFrom(GitHubEventsConfig other)
Parameter
Name Description
other GitHubEventsConfig
Returns
Type Description
GitHubEventsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitHubEventsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEventsConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GitHubEventsConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

mergePullRequest(PullRequestFilter value)

public GitHubEventsConfig.Builder mergePullRequest(PullRequestFilter value)

filter to match changes in pull requests.

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

Parameter
Name Description
value PullRequestFilter
Returns
Type Description
GitHubEventsConfig.Builder

mergePush(PushFilter value)

public GitHubEventsConfig.Builder mergePush(PushFilter value)

filter to match changes in refs like branches, tags.

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

Parameter
Name Description
value PushFilter
Returns
Type Description
GitHubEventsConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEventsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GitHubEventsConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

setInstallationId(long value) (deprecated)

public GitHubEventsConfig.Builder setInstallationId(long value)

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

The installationID that emits the GitHub event.

int64 installation_id = 1 [deprecated = true];

Parameter
Name Description
value long

The installationId to set.

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

setName(String value)

public GitHubEventsConfig.Builder setName(String value)

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

string name = 7;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GitHubEventsConfig.Builder setNameBytes(ByteString value)

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

string name = 7;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

setOwner(String value)

public GitHubEventsConfig.Builder setOwner(String value)

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

string owner = 6;

Parameter
Name Description
value String

The owner to set.

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

setOwnerBytes(ByteString value)

public GitHubEventsConfig.Builder setOwnerBytes(ByteString value)

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

string owner = 6;

Parameter
Name Description
value ByteString

The bytes for owner to set.

Returns
Type Description
GitHubEventsConfig.Builder

This builder for chaining.

setPullRequest(PullRequestFilter value)

public GitHubEventsConfig.Builder setPullRequest(PullRequestFilter value)

filter to match changes in pull requests.

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

Parameter
Name Description
value PullRequestFilter
Returns
Type Description
GitHubEventsConfig.Builder

setPullRequest(PullRequestFilter.Builder builderForValue)

public GitHubEventsConfig.Builder setPullRequest(PullRequestFilter.Builder builderForValue)

filter to match changes in pull requests.

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

Parameter
Name Description
builderForValue PullRequestFilter.Builder
Returns
Type Description
GitHubEventsConfig.Builder

setPush(PushFilter value)

public GitHubEventsConfig.Builder setPush(PushFilter value)

filter to match changes in refs like branches, tags.

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

Parameter
Name Description
value PushFilter
Returns
Type Description
GitHubEventsConfig.Builder

setPush(PushFilter.Builder builderForValue)

public GitHubEventsConfig.Builder setPush(PushFilter.Builder builderForValue)

filter to match changes in refs like branches, tags.

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

Parameter
Name Description
builderForValue PushFilter.Builder
Returns
Type Description
GitHubEventsConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GitHubEventsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitHubEventsConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEventsConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitHubEventsConfig.Builder
Overrides