Class RepoSource.Builder (2.36.0)

public static final class RepoSource.Builder extends GeneratedMessageV3.Builder<RepoSource.Builder> implements RepoSourceOrBuilder

Location of the source in a Google Cloud Source Repository.

Protobuf type google.cloud.functions.v2.RepoSource

Implements

RepoSourceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RepoSource build()
Returns
TypeDescription
RepoSource

buildPartial()

public RepoSource buildPartial()
Returns
TypeDescription
RepoSource

clear()

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

clearBranchName()

public RepoSource.Builder clearBranchName()

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string branch_name = 3;

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

clearCommitSha()

public RepoSource.Builder clearCommitSha()

Explicit commit SHA to build.

string commit_sha = 5;

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

clearDir()

public RepoSource.Builder clearDir()

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

string dir = 6;

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInvertRegex()

public RepoSource.Builder clearInvertRegex()

Only trigger a build if the revision regex does NOT match the revision regex.

bool invert_regex = 7;

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public RepoSource.Builder clearProjectId()

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

string project_id = 1;

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

clearRepoName()

public RepoSource.Builder clearRepoName()

Name of the Cloud Source Repository.

string repo_name = 2;

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

clearRevision()

public RepoSource.Builder clearRevision()
Returns
TypeDescription
RepoSource.Builder

clearTagName()

public RepoSource.Builder clearTagName()

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string tag_name = 4;

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

clone()

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

getBranchName()

public String getBranchName()

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string branch_name = 3;

Returns
TypeDescription
String

The branchName.

getBranchNameBytes()

public ByteString getBranchNameBytes()

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string branch_name = 3;

Returns
TypeDescription
ByteString

The bytes for branchName.

getCommitSha()

public String getCommitSha()

Explicit commit SHA to build.

string commit_sha = 5;

Returns
TypeDescription
String

The commitSha.

getCommitShaBytes()

public ByteString getCommitShaBytes()

Explicit commit SHA to build.

string commit_sha = 5;

Returns
TypeDescription
ByteString

The bytes for commitSha.

getDefaultInstanceForType()

public RepoSource getDefaultInstanceForType()
Returns
TypeDescription
RepoSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDir()

public String getDir()

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

string dir = 6;

Returns
TypeDescription
String

The dir.

getDirBytes()

public ByteString getDirBytes()

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

string dir = 6;

Returns
TypeDescription
ByteString

The bytes for dir.

getInvertRegex()

public boolean getInvertRegex()

Only trigger a build if the revision regex does NOT match the revision regex.

bool invert_regex = 7;

Returns
TypeDescription
boolean

The invertRegex.

getProjectId()

public String getProjectId()

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

getRepoName()

public String getRepoName()

Name of the Cloud Source Repository.

string repo_name = 2;

Returns
TypeDescription
String

The repoName.

getRepoNameBytes()

public ByteString getRepoNameBytes()

Name of the Cloud Source Repository.

string repo_name = 2;

Returns
TypeDescription
ByteString

The bytes for repoName.

getRevisionCase()

public RepoSource.RevisionCase getRevisionCase()
Returns
TypeDescription
RepoSource.RevisionCase

getTagName()

public String getTagName()

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string tag_name = 4;

Returns
TypeDescription
String

The tagName.

getTagNameBytes()

public ByteString getTagNameBytes()

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string tag_name = 4;

Returns
TypeDescription
ByteString

The bytes for tagName.

hasBranchName()

public boolean hasBranchName()

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string branch_name = 3;

Returns
TypeDescription
boolean

Whether the branchName field is set.

hasCommitSha()

public boolean hasCommitSha()

Explicit commit SHA to build.

string commit_sha = 5;

Returns
TypeDescription
boolean

Whether the commitSha field is set.

hasTagName()

public boolean hasTagName()

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string tag_name = 4;

Returns
TypeDescription
boolean

Whether the tagName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RepoSource other)

public RepoSource.Builder mergeFrom(RepoSource other)
Parameter
NameDescription
otherRepoSource
Returns
TypeDescription
RepoSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RepoSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RepoSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBranchName(String value)

public RepoSource.Builder setBranchName(String value)

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string branch_name = 3;

Parameter
NameDescription
valueString

The branchName to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setBranchNameBytes(ByteString value)

public RepoSource.Builder setBranchNameBytes(ByteString value)

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string branch_name = 3;

Parameter
NameDescription
valueByteString

The bytes for branchName to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setCommitSha(String value)

public RepoSource.Builder setCommitSha(String value)

Explicit commit SHA to build.

string commit_sha = 5;

Parameter
NameDescription
valueString

The commitSha to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setCommitShaBytes(ByteString value)

public RepoSource.Builder setCommitShaBytes(ByteString value)

Explicit commit SHA to build.

string commit_sha = 5;

Parameter
NameDescription
valueByteString

The bytes for commitSha to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setDir(String value)

public RepoSource.Builder setDir(String value)

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

string dir = 6;

Parameter
NameDescription
valueString

The dir to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setDirBytes(ByteString value)

public RepoSource.Builder setDirBytes(ByteString value)

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

string dir = 6;

Parameter
NameDescription
valueByteString

The bytes for dir to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInvertRegex(boolean value)

public RepoSource.Builder setInvertRegex(boolean value)

Only trigger a build if the revision regex does NOT match the revision regex.

bool invert_regex = 7;

Parameter
NameDescription
valueboolean

The invertRegex to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setProjectId(String value)

public RepoSource.Builder setProjectId(String value)

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

string project_id = 1;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public RepoSource.Builder setProjectIdBytes(ByteString value)

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

string project_id = 1;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

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

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

setRepoName(String value)

public RepoSource.Builder setRepoName(String value)

Name of the Cloud Source Repository.

string repo_name = 2;

Parameter
NameDescription
valueString

The repoName to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setRepoNameBytes(ByteString value)

public RepoSource.Builder setRepoNameBytes(ByteString value)

Name of the Cloud Source Repository.

string repo_name = 2;

Parameter
NameDescription
valueByteString

The bytes for repoName to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setTagName(String value)

public RepoSource.Builder setTagName(String value)

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string tag_name = 4;

Parameter
NameDescription
valueString

The tagName to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setTagNameBytes(ByteString value)

public RepoSource.Builder setTagNameBytes(ByteString value)

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

string tag_name = 4;

Parameter
NameDescription
valueByteString

The bytes for tagName to set.

Returns
TypeDescription
RepoSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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