Class SourceProvenance.Builder (2.53.0)

public static final class SourceProvenance.Builder extends GeneratedMessageV3.Builder<SourceProvenance.Builder> implements SourceProvenanceOrBuilder

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

Protobuf type google.cloud.functions.v2.SourceProvenance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SourceProvenance build()
Returns
Type Description
SourceProvenance

buildPartial()

public SourceProvenance buildPartial()
Returns
Type Description
SourceProvenance

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGitUri()

public SourceProvenance.Builder clearGitUri()

A copy of the build's source.git_uri, if exists, with any commits resolved.

string git_uri = 3;

Returns
Type Description
SourceProvenance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResolvedRepoSource()

public SourceProvenance.Builder clearResolvedRepoSource()

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Returns
Type Description
SourceProvenance.Builder

clearResolvedStorageSource()

public SourceProvenance.Builder clearResolvedStorageSource()

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Returns
Type Description
SourceProvenance.Builder

clone()

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

getDefaultInstanceForType()

public SourceProvenance getDefaultInstanceForType()
Returns
Type Description
SourceProvenance

getDescriptorForType()

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

getGitUri()

public String getGitUri()

A copy of the build's source.git_uri, if exists, with any commits resolved.

string git_uri = 3;

Returns
Type Description
String

The gitUri.

getGitUriBytes()

public ByteString getGitUriBytes()

A copy of the build's source.git_uri, if exists, with any commits resolved.

string git_uri = 3;

Returns
Type Description
ByteString

The bytes for gitUri.

getResolvedRepoSource()

public RepoSource getResolvedRepoSource()

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Returns
Type Description
RepoSource

The resolvedRepoSource.

getResolvedRepoSourceBuilder()

public RepoSource.Builder getResolvedRepoSourceBuilder()

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Returns
Type Description
RepoSource.Builder

getResolvedRepoSourceOrBuilder()

public RepoSourceOrBuilder getResolvedRepoSourceOrBuilder()

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Returns
Type Description
RepoSourceOrBuilder

getResolvedStorageSource()

public StorageSource getResolvedStorageSource()

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Returns
Type Description
StorageSource

The resolvedStorageSource.

getResolvedStorageSourceBuilder()

public StorageSource.Builder getResolvedStorageSourceBuilder()

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Returns
Type Description
StorageSource.Builder

getResolvedStorageSourceOrBuilder()

public StorageSourceOrBuilder getResolvedStorageSourceOrBuilder()

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Returns
Type Description
StorageSourceOrBuilder

hasResolvedRepoSource()

public boolean hasResolvedRepoSource()

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Returns
Type Description
boolean

Whether the resolvedRepoSource field is set.

hasResolvedStorageSource()

public boolean hasResolvedStorageSource()

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Returns
Type Description
boolean

Whether the resolvedStorageSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceProvenance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResolvedRepoSource(RepoSource value)

public SourceProvenance.Builder mergeResolvedRepoSource(RepoSource value)

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Parameter
Name Description
value RepoSource
Returns
Type Description
SourceProvenance.Builder

mergeResolvedStorageSource(StorageSource value)

public SourceProvenance.Builder mergeResolvedStorageSource(StorageSource value)

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Parameter
Name Description
value StorageSource
Returns
Type Description
SourceProvenance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGitUri(String value)

public SourceProvenance.Builder setGitUri(String value)

A copy of the build's source.git_uri, if exists, with any commits resolved.

string git_uri = 3;

Parameter
Name Description
value String

The gitUri to set.

Returns
Type Description
SourceProvenance.Builder

This builder for chaining.

setGitUriBytes(ByteString value)

public SourceProvenance.Builder setGitUriBytes(ByteString value)

A copy of the build's source.git_uri, if exists, with any commits resolved.

string git_uri = 3;

Parameter
Name Description
value ByteString

The bytes for gitUri to set.

Returns
Type Description
SourceProvenance.Builder

This builder for chaining.

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

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

setResolvedRepoSource(RepoSource value)

public SourceProvenance.Builder setResolvedRepoSource(RepoSource value)

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Parameter
Name Description
value RepoSource
Returns
Type Description
SourceProvenance.Builder

setResolvedRepoSource(RepoSource.Builder builderForValue)

public SourceProvenance.Builder setResolvedRepoSource(RepoSource.Builder builderForValue)

A copy of the build's source.repo_source, if exists, with any revisions resolved.

.google.cloud.functions.v2.RepoSource resolved_repo_source = 2;

Parameter
Name Description
builderForValue RepoSource.Builder
Returns
Type Description
SourceProvenance.Builder

setResolvedStorageSource(StorageSource value)

public SourceProvenance.Builder setResolvedStorageSource(StorageSource value)

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Parameter
Name Description
value StorageSource
Returns
Type Description
SourceProvenance.Builder

setResolvedStorageSource(StorageSource.Builder builderForValue)

public SourceProvenance.Builder setResolvedStorageSource(StorageSource.Builder builderForValue)

A copy of the build's source.storage_source, if exists, with any generations resolved.

.google.cloud.functions.v2.StorageSource resolved_storage_source = 1;

Parameter
Name Description
builderForValue StorageSource.Builder
Returns
Type Description
SourceProvenance.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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