Class RepositoryEventConfig.Builder (3.57.0)

public static final class RepositoryEventConfig.Builder extends GeneratedMessageV3.Builder<RepositoryEventConfig.Builder> implements RepositoryEventConfigOrBuilder

The configuration of a trigger that creates a build whenever an event from Repo API is received.

Protobuf type google.devtools.cloudbuild.v1.RepositoryEventConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RepositoryEventConfig build()
Returns
Type Description
RepositoryEventConfig

buildPartial()

public RepositoryEventConfig buildPartial()
Returns
Type Description
RepositoryEventConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public RepositoryEventConfig.Builder clearFilter()
Returns
Type Description
RepositoryEventConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPullRequest()

public RepositoryEventConfig.Builder clearPullRequest()

Filter to match changes in pull requests.

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

Returns
Type Description
RepositoryEventConfig.Builder

clearPush()

public RepositoryEventConfig.Builder clearPush()

Filter to match changes in refs like branches, tags.

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

Returns
Type Description
RepositoryEventConfig.Builder

clearRepository()

public RepositoryEventConfig.Builder clearRepository()

The resource name of the Repo API resource.

string repository = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
RepositoryEventConfig.Builder

This builder for chaining.

clearRepositoryType()

public RepositoryEventConfig.Builder clearRepositoryType()

Output only. The type of the SCM vendor the repository points to.

.google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RepositoryEventConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RepositoryEventConfig getDefaultInstanceForType()
Returns
Type Description
RepositoryEventConfig

getDescriptorForType()

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

getFilterCase()

public RepositoryEventConfig.FilterCase getFilterCase()
Returns
Type Description
RepositoryEventConfig.FilterCase

getPullRequest()

public PullRequestFilter getPullRequest()

Filter to match changes in pull requests.

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

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 = 3;

Returns
Type Description
PullRequestFilter.Builder

getPullRequestOrBuilder()

public PullRequestFilterOrBuilder getPullRequestOrBuilder()

Filter to match changes in pull requests.

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

Returns
Type Description
PullRequestFilterOrBuilder

getPush()

public PushFilter getPush()

Filter to match changes in refs like branches, tags.

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

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 = 4;

Returns
Type Description
PushFilter.Builder

getPushOrBuilder()

public PushFilterOrBuilder getPushOrBuilder()

Filter to match changes in refs like branches, tags.

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

Returns
Type Description
PushFilterOrBuilder

getRepository()

public String getRepository()

The resource name of the Repo API resource.

string repository = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

The resource name of the Repo API resource.

string repository = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for repository.

getRepositoryType()

public RepositoryEventConfig.RepositoryType getRepositoryType()

Output only. The type of the SCM vendor the repository points to.

.google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RepositoryEventConfig.RepositoryType

The repositoryType.

getRepositoryTypeValue()

public int getRepositoryTypeValue()

Output only. The type of the SCM vendor the repository points to.

.google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for repositoryType.

hasPullRequest()

public boolean hasPullRequest()

Filter to match changes in pull requests.

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

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 = 4;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePullRequest(PullRequestFilter value)

public RepositoryEventConfig.Builder mergePullRequest(PullRequestFilter value)

Filter to match changes in pull requests.

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

Parameter
Name Description
value PullRequestFilter
Returns
Type Description
RepositoryEventConfig.Builder

mergePush(PushFilter value)

public RepositoryEventConfig.Builder mergePush(PushFilter value)

Filter to match changes in refs like branches, tags.

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

Parameter
Name Description
value PushFilter
Returns
Type Description
RepositoryEventConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPullRequest(PullRequestFilter value)

public RepositoryEventConfig.Builder setPullRequest(PullRequestFilter value)

Filter to match changes in pull requests.

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

Parameter
Name Description
value PullRequestFilter
Returns
Type Description
RepositoryEventConfig.Builder

setPullRequest(PullRequestFilter.Builder builderForValue)

public RepositoryEventConfig.Builder setPullRequest(PullRequestFilter.Builder builderForValue)

Filter to match changes in pull requests.

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

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

setPush(PushFilter value)

public RepositoryEventConfig.Builder setPush(PushFilter value)

Filter to match changes in refs like branches, tags.

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

Parameter
Name Description
value PushFilter
Returns
Type Description
RepositoryEventConfig.Builder

setPush(PushFilter.Builder builderForValue)

public RepositoryEventConfig.Builder setPush(PushFilter.Builder builderForValue)

Filter to match changes in refs like branches, tags.

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

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

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

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

setRepository(String value)

public RepositoryEventConfig.Builder setRepository(String value)

The resource name of the Repo API resource.

string repository = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The repository to set.

Returns
Type Description
RepositoryEventConfig.Builder

This builder for chaining.

setRepositoryBytes(ByteString value)

public RepositoryEventConfig.Builder setRepositoryBytes(ByteString value)

The resource name of the Repo API resource.

string repository = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for repository to set.

Returns
Type Description
RepositoryEventConfig.Builder

This builder for chaining.

setRepositoryType(RepositoryEventConfig.RepositoryType value)

public RepositoryEventConfig.Builder setRepositoryType(RepositoryEventConfig.RepositoryType value)

Output only. The type of the SCM vendor the repository points to.

.google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value RepositoryEventConfig.RepositoryType

The repositoryType to set.

Returns
Type Description
RepositoryEventConfig.Builder

This builder for chaining.

setRepositoryTypeValue(int value)

public RepositoryEventConfig.Builder setRepositoryTypeValue(int value)

Output only. The type of the SCM vendor the repository points to.

.google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for repositoryType to set.

Returns
Type Description
RepositoryEventConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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