Package com.google.cloud.functions.v2
Interface SourceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Source,Source.Builder
@Generated
public interface SourceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionIf provided, get the source from GitHub repository.com.google.protobuf.ByteStringIf provided, get the source from GitHub repository.If provided, get the source from this location in a Cloud Source Repository.If provided, get the source from this location in a Cloud Source Repository.If provided, get the source from this location in Google Cloud Storage.If provided, get the source from this location in Google Cloud Storage.booleanIf provided, get the source from GitHub repository.booleanIf provided, get the source from this location in a Cloud Source Repository.booleanIf provided, get the source from this location in Google Cloud Storage.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasStorageSource
boolean hasStorageSource()If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2.StorageSource storage_source = 1;- Returns:
- Whether the storageSource field is set.
-
getStorageSource
StorageSource getStorageSource()If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2.StorageSource storage_source = 1;- Returns:
- The storageSource.
-
getStorageSourceOrBuilder
StorageSourceOrBuilder getStorageSourceOrBuilder()If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2.StorageSource storage_source = 1; -
hasRepoSource
boolean hasRepoSource()If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2.RepoSource repo_source = 2;- Returns:
- Whether the repoSource field is set.
-
getRepoSource
RepoSource getRepoSource()If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2.RepoSource repo_source = 2;- Returns:
- The repoSource.
-
getRepoSourceOrBuilder
RepoSourceOrBuilder getRepoSourceOrBuilder()If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2.RepoSource repo_source = 2; -
hasGitUri
boolean hasGitUri()If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
string git_uri = 3;- Returns:
- Whether the gitUri field is set.
-
getGitUri
String getGitUri()If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
string git_uri = 3;- Returns:
- The gitUri.
-
getGitUriBytes
com.google.protobuf.ByteString getGitUriBytes()If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
string git_uri = 3;- Returns:
- The bytes for gitUri.
-
getSourceCase
Source.SourceCase getSourceCase()
-