Class Source.Builder (3.23.0)

public static final class Source.Builder extends GeneratedMessageV3.Builder<Source.Builder> implements SourceOrBuilder

Location of the source in a supported storage service.

Protobuf type google.devtools.cloudbuild.v1.Source

Implements

SourceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Source build()
Returns
TypeDescription
Source

buildPartial()

public Source buildPartial()
Returns
TypeDescription
Source

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGitSource()

public Source.Builder clearGitSource()

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Returns
TypeDescription
Source.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRepoSource()

public Source.Builder clearRepoSource()

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Returns
TypeDescription
Source.Builder

clearSource()

public Source.Builder clearSource()
Returns
TypeDescription
Source.Builder

clearStorageSource()

public Source.Builder clearStorageSource()

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Returns
TypeDescription
Source.Builder

clearStorageSourceManifest()

public Source.Builder clearStorageSourceManifest()

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Returns
TypeDescription
Source.Builder

clone()

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

getDefaultInstanceForType()

public Source getDefaultInstanceForType()
Returns
TypeDescription
Source

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGitSource()

public GitSource getGitSource()

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Returns
TypeDescription
GitSource

The gitSource.

getGitSourceBuilder()

public GitSource.Builder getGitSourceBuilder()

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Returns
TypeDescription
GitSource.Builder

getGitSourceOrBuilder()

public GitSourceOrBuilder getGitSourceOrBuilder()

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Returns
TypeDescription
GitSourceOrBuilder

getRepoSource()

public RepoSource getRepoSource()

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Returns
TypeDescription
RepoSource

The repoSource.

getRepoSourceBuilder()

public RepoSource.Builder getRepoSourceBuilder()

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Returns
TypeDescription
RepoSource.Builder

getRepoSourceOrBuilder()

public RepoSourceOrBuilder getRepoSourceOrBuilder()

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Returns
TypeDescription
RepoSourceOrBuilder

getSourceCase()

public Source.SourceCase getSourceCase()
Returns
TypeDescription
Source.SourceCase

getStorageSource()

public StorageSource getStorageSource()

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Returns
TypeDescription
StorageSource

The storageSource.

getStorageSourceBuilder()

public StorageSource.Builder getStorageSourceBuilder()

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Returns
TypeDescription
StorageSource.Builder

getStorageSourceManifest()

public StorageSourceManifest getStorageSourceManifest()

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Returns
TypeDescription
StorageSourceManifest

The storageSourceManifest.

getStorageSourceManifestBuilder()

public StorageSourceManifest.Builder getStorageSourceManifestBuilder()

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Returns
TypeDescription
StorageSourceManifest.Builder

getStorageSourceManifestOrBuilder()

public StorageSourceManifestOrBuilder getStorageSourceManifestOrBuilder()

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Returns
TypeDescription
StorageSourceManifestOrBuilder

getStorageSourceOrBuilder()

public StorageSourceOrBuilder getStorageSourceOrBuilder()

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Returns
TypeDescription
StorageSourceOrBuilder

hasGitSource()

public boolean hasGitSource()

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Returns
TypeDescription
boolean

Whether the gitSource field is set.

hasRepoSource()

public boolean hasRepoSource()

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Returns
TypeDescription
boolean

Whether the repoSource field is set.

hasStorageSource()

public boolean hasStorageSource()

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Returns
TypeDescription
boolean

Whether the storageSource field is set.

hasStorageSourceManifest()

public boolean hasStorageSourceManifest()

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Returns
TypeDescription
boolean

Whether the storageSourceManifest field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Source other)

public Source.Builder mergeFrom(Source other)
Parameter
NameDescription
otherSource
Returns
TypeDescription
Source.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGitSource(GitSource value)

public Source.Builder mergeGitSource(GitSource value)

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Parameter
NameDescription
valueGitSource
Returns
TypeDescription
Source.Builder

mergeRepoSource(RepoSource value)

public Source.Builder mergeRepoSource(RepoSource value)

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Parameter
NameDescription
valueRepoSource
Returns
TypeDescription
Source.Builder

mergeStorageSource(StorageSource value)

public Source.Builder mergeStorageSource(StorageSource value)

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
Source.Builder

mergeStorageSourceManifest(StorageSourceManifest value)

public Source.Builder mergeStorageSourceManifest(StorageSourceManifest value)

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Parameter
NameDescription
valueStorageSourceManifest
Returns
TypeDescription
Source.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGitSource(GitSource value)

public Source.Builder setGitSource(GitSource value)

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Parameter
NameDescription
valueGitSource
Returns
TypeDescription
Source.Builder

setGitSource(GitSource.Builder builderForValue)

public Source.Builder setGitSource(GitSource.Builder builderForValue)

If provided, get the source from this Git repository.

.google.devtools.cloudbuild.v1.GitSource git_source = 5;

Parameter
NameDescription
builderForValueGitSource.Builder
Returns
TypeDescription
Source.Builder

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

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

setRepoSource(RepoSource value)

public Source.Builder setRepoSource(RepoSource value)

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Parameter
NameDescription
valueRepoSource
Returns
TypeDescription
Source.Builder

setRepoSource(RepoSource.Builder builderForValue)

public Source.Builder setRepoSource(RepoSource.Builder builderForValue)

If provided, get the source from this location in a Cloud Source Repository.

.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;

Parameter
NameDescription
builderForValueRepoSource.Builder
Returns
TypeDescription
Source.Builder

setStorageSource(StorageSource value)

public Source.Builder setStorageSource(StorageSource value)

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Parameter
NameDescription
valueStorageSource
Returns
TypeDescription
Source.Builder

setStorageSource(StorageSource.Builder builderForValue)

public Source.Builder setStorageSource(StorageSource.Builder builderForValue)

If provided, get the source from this location in Google Cloud Storage.

.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;

Parameter
NameDescription
builderForValueStorageSource.Builder
Returns
TypeDescription
Source.Builder

setStorageSourceManifest(StorageSourceManifest value)

public Source.Builder setStorageSourceManifest(StorageSourceManifest value)

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Parameter
NameDescription
valueStorageSourceManifest
Returns
TypeDescription
Source.Builder

setStorageSourceManifest(StorageSourceManifest.Builder builderForValue)

public Source.Builder setStorageSourceManifest(StorageSourceManifest.Builder builderForValue)

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description here.

.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;

Parameter
NameDescription
builderForValueStorageSourceManifest.Builder
Returns
TypeDescription
Source.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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