Class SourceProvenance.Builder (2.22.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.v2beta.SourceProvenance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SourceProvenance build()
Returns
TypeDescription
SourceProvenance

buildPartial()

public SourceProvenance buildPartial()
Returns
TypeDescription
SourceProvenance

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SourceProvenance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v2beta.RepoSource resolved_repo_source = 2;

Returns
TypeDescription
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.v2beta.StorageSource resolved_storage_source = 1;

Returns
TypeDescription
SourceProvenance.Builder

clone()

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

getDefaultInstanceForType()

public SourceProvenance getDefaultInstanceForType()
Returns
TypeDescription
SourceProvenance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResolvedRepoSource()

public RepoSource getResolvedRepoSource()

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

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

Returns
TypeDescription
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.v2beta.RepoSource resolved_repo_source = 2;

Returns
TypeDescription
RepoSource.Builder

getResolvedRepoSourceOrBuilder()

public RepoSourceOrBuilder getResolvedRepoSourceOrBuilder()

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

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

Returns
TypeDescription
RepoSourceOrBuilder

getResolvedStorageSource()

public StorageSource getResolvedStorageSource()

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

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

Returns
TypeDescription
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.v2beta.StorageSource resolved_storage_source = 1;

Returns
TypeDescription
StorageSource.Builder

getResolvedStorageSourceOrBuilder()

public StorageSourceOrBuilder getResolvedStorageSourceOrBuilder()

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

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

Returns
TypeDescription
StorageSourceOrBuilder

hasResolvedRepoSource()

public boolean hasResolvedRepoSource()

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

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

Returns
TypeDescription
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.v2beta.StorageSource resolved_storage_source = 1;

Returns
TypeDescription
boolean

Whether the resolvedStorageSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SourceProvenance other)

public SourceProvenance.Builder mergeFrom(SourceProvenance other)
Parameter
NameDescription
otherSourceProvenance
Returns
TypeDescription
SourceProvenance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SourceProvenance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v2beta.RepoSource resolved_repo_source = 2;

Parameter
NameDescription
valueRepoSource
Returns
TypeDescription
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.v2beta.StorageSource resolved_storage_source = 1;

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
SourceProvenance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SourceProvenance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v2beta.RepoSource resolved_repo_source = 2;

Parameter
NameDescription
valueRepoSource
Returns
TypeDescription
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.v2beta.RepoSource resolved_repo_source = 2;

Parameter
NameDescription
builderForValueRepoSource.Builder
Returns
TypeDescription
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.v2beta.StorageSource resolved_storage_source = 1;

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
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.v2beta.StorageSource resolved_storage_source = 1;

Parameter
NameDescription
builderForValueStorageSource.Builder
Returns
TypeDescription
SourceProvenance.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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