Class RepositoryEventConfig.Builder (3.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RepositoryEventConfig build()
Returns
TypeDescription
RepositoryEventConfig

buildPartial()

public RepositoryEventConfig buildPartial()
Returns
TypeDescription
RepositoryEventConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RepositoryEventConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RepositoryEventConfig.Builder
Overrides

clearFilter()

public RepositoryEventConfig.Builder clearFilter()
Returns
TypeDescription
RepositoryEventConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RepositoryEventConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RepositoryEventConfig.Builder
Overrides

clearPullRequest()

public RepositoryEventConfig.Builder clearPullRequest()

Filter to match changes in pull requests.

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

Returns
TypeDescription
RepositoryEventConfig.Builder

clearPush()

public RepositoryEventConfig.Builder clearPush()

Filter to match changes in refs like branches, tags.

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

Returns
TypeDescription
RepositoryEventConfig.Builder

clearRepository()

public RepositoryEventConfig.Builder clearRepository()

The resource name of the Repo API resource.

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RepositoryEventConfig getDefaultInstanceForType()
Returns
TypeDescription
RepositoryEventConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFilterCase()

public RepositoryEventConfig.FilterCase getFilterCase()
Returns
TypeDescription
RepositoryEventConfig.FilterCase

getPullRequest()

public PullRequestFilter getPullRequest()

Filter to match changes in pull requests.

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

Returns
TypeDescription
PullRequestFilter

The pullRequest.

getPullRequestBuilder()

public PullRequestFilter.Builder getPullRequestBuilder()

Filter to match changes in pull requests.

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

Returns
TypeDescription
PullRequestFilter.Builder

getPullRequestOrBuilder()

public PullRequestFilterOrBuilder getPullRequestOrBuilder()

Filter to match changes in pull requests.

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

Returns
TypeDescription
PullRequestFilterOrBuilder

getPush()

public PushFilter getPush()

Filter to match changes in refs like branches, tags.

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

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

Returns
TypeDescription
PushFilter.Builder

getPushOrBuilder()

public PushFilterOrBuilder getPushOrBuilder()

Filter to match changes in refs like branches, tags.

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

Returns
TypeDescription
PushFilterOrBuilder

getRepository()

public String getRepository()

The resource name of the Repo API resource.

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

Returns
TypeDescription
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

The resource name of the Repo API resource.

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

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

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

public RepositoryEventConfig.Builder mergeFrom(RepositoryEventConfig other)
Parameter
NameDescription
otherRepositoryEventConfig
Returns
TypeDescription
RepositoryEventConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RepositoryEventConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePullRequestFilter
Returns
TypeDescription
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
NameDescription
builderForValuePullRequestFilter.Builder
Returns
TypeDescription
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
NameDescription
valuePushFilter
Returns
TypeDescription
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
NameDescription
builderForValuePushFilter.Builder
Returns
TypeDescription
RepositoryEventConfig.Builder

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

public RepositoryEventConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The repository to set.

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

The bytes for repository to set.

Returns
TypeDescription
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
NameDescription
valueRepositoryEventConfig.RepositoryType

The repositoryType to set.

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

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

Returns
TypeDescription
RepositoryEventConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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