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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Source.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Source buildPartial()
Returns
clear()
public Source.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Source.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Source.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearSource()
public Source.Builder clearSource()
Returns
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
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
clone()
public Source.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Source getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
getSourceCase()
public Source.SourceCase getSourceCase()
Returns
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
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
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
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
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
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
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
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the storageSourceManifest field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Source other)
public Source.Builder mergeFrom(Source other)
Parameter
Returns
public Source.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Source.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
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
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Source.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Source.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Source.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Source.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides