Class GitHubEventsConfig.Builder (3.5.1)

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. This message is experimental.

Protobuf type google.devtools.cloudbuild.v1.GitHubEventsConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitHubEventsConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GitHubEventsConfig.Builder
Overrides

build()

public GitHubEventsConfig build()
Returns
TypeDescription
GitHubEventsConfig

buildPartial()

public GitHubEventsConfig buildPartial()
Returns
TypeDescription
GitHubEventsConfig

clear()

public GitHubEventsConfig.Builder clear()
Returns
TypeDescription
GitHubEventsConfig.Builder
Overrides

clearEvent()

public GitHubEventsConfig.Builder clearEvent()
Returns
TypeDescription
GitHubEventsConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public GitHubEventsConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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=1396

The installationID that emits the GitHub event.

int64 installation_id = 1 [deprecated = true];

Returns
TypeDescription
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
TypeDescription
GitHubEventsConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GitHubEventsConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GitHubEventsConfig.Builder

clearPush()

public GitHubEventsConfig.Builder clearPush()

filter to match changes in refs like branches, tags.

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

Returns
TypeDescription
GitHubEventsConfig.Builder

clone()

public GitHubEventsConfig.Builder clone()
Returns
TypeDescription
GitHubEventsConfig.Builder
Overrides

getDefaultInstanceForType()

public GitHubEventsConfig getDefaultInstanceForType()
Returns
TypeDescription
GitHubEventsConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventCase()

public GitHubEventsConfig.EventCase getEventCase()
Returns
TypeDescription
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=1396

The installationID that emits the GitHub event.

int64 installation_id = 1 [deprecated = true];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PullRequestFilter

The pullRequest.

getPullRequestBuilder()

public PullRequestFilter.Builder getPullRequestBuilder()

filter to match changes in pull requests.

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

Returns
TypeDescription
PullRequestFilter.Builder

getPullRequestOrBuilder()

public PullRequestFilterOrBuilder getPullRequestOrBuilder()

filter to match changes in pull requests.

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

Returns
TypeDescription
PullRequestFilterOrBuilder

getPush()

public PushFilter getPush()

filter to match changes in refs like branches, tags.

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

Returns
TypeDescription
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
TypeDescription
PushFilter.Builder

getPushOrBuilder()

public PushFilterOrBuilder getPushOrBuilder()

filter to match changes in refs like branches, tags.

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

Returns
TypeDescription
PushFilterOrBuilder

hasPullRequest()

public boolean hasPullRequest()

filter to match changes in pull requests.

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

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

Whether the push field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GitHubEventsConfig other)

public GitHubEventsConfig.Builder mergeFrom(GitHubEventsConfig other)
Parameter
NameDescription
otherGitHubEventsConfig
Returns
TypeDescription
GitHubEventsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitHubEventsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEventsConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GitHubEventsConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePullRequestFilter
Returns
TypeDescription
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
NameDescription
valuePushFilter
Returns
TypeDescription
GitHubEventsConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEventsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GitHubEventsConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GitHubEventsConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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=1396

The installationID that emits the GitHub event.

int64 installation_id = 1 [deprecated = true];

Parameter
NameDescription
valuelong

The installationId to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The owner to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for owner to set.

Returns
TypeDescription
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
NameDescription
valuePullRequestFilter
Returns
TypeDescription
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
NameDescription
builderForValuePullRequestFilter.Builder
Returns
TypeDescription
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
NameDescription
valuePushFilter
Returns
TypeDescription
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
NameDescription
builderForValuePushFilter.Builder
Returns
TypeDescription
GitHubEventsConfig.Builder

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

public GitHubEventsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GitHubEventsConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEventsConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GitHubEventsConfig.Builder
Overrides