Class Source.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
com.google.cloud.functions.v2beta.Source.Builder
- All Implemented Interfaces:
SourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Source
public static final class Source.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
implements SourceOrBuilder
The location of the function source code.Protobuf type
google.cloud.functions.v2beta.Source-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If 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 Google Cloud Storage.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf 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 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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRepoSource(RepoSource value) If provided, get the source from this location in a Cloud Source Repository.mergeStorageSource(StorageSource value) If provided, get the source from this location in Google Cloud Storage.If provided, get the source from GitHub repository.setGitUriBytes(com.google.protobuf.ByteString value) If provided, get the source from GitHub repository.setRepoSource(RepoSource value) If provided, get the source from this location in a Cloud Source Repository.setRepoSource(RepoSource.Builder builderForValue) If provided, get the source from this location in a Cloud Source Repository.setStorageSource(StorageSource value) If provided, get the source from this location in Google Cloud Storage.setStorageSource(StorageSource.Builder builderForValue) If provided, get the source from this location in Google Cloud Storage.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Source.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
mergeFrom
public Source.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Source.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceSourceOrBuilder
-
clearSource
-
hasStorageSource
public boolean hasStorageSource()If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1;- Specified by:
hasStorageSourcein interfaceSourceOrBuilder- Returns:
- Whether the storageSource field is set.
-
getStorageSource
If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1;- Specified by:
getStorageSourcein interfaceSourceOrBuilder- Returns:
- The storageSource.
-
setStorageSource
If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1; -
setStorageSource
If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1; -
mergeStorageSource
If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1; -
clearStorageSource
If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1; -
getStorageSourceBuilder
If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1; -
getStorageSourceOrBuilder
If provided, get the source from this location in Google Cloud Storage.
.google.cloud.functions.v2beta.StorageSource storage_source = 1;- Specified by:
getStorageSourceOrBuilderin interfaceSourceOrBuilder
-
hasRepoSource
public boolean hasRepoSource()If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2;- Specified by:
hasRepoSourcein interfaceSourceOrBuilder- Returns:
- Whether the repoSource field is set.
-
getRepoSource
If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2;- Specified by:
getRepoSourcein interfaceSourceOrBuilder- Returns:
- The repoSource.
-
setRepoSource
If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2; -
setRepoSource
If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2; -
mergeRepoSource
If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2; -
clearRepoSource
If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2; -
getRepoSourceBuilder
If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2; -
getRepoSourceOrBuilder
If provided, get the source from this location in a Cloud Source Repository.
.google.cloud.functions.v2beta.RepoSource repo_source = 2;- Specified by:
getRepoSourceOrBuilderin interfaceSourceOrBuilder
-
hasGitUri
public 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;- Specified by:
hasGitUriin interfaceSourceOrBuilder- Returns:
- Whether the gitUri field is set.
-
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;- Specified by:
getGitUriin interfaceSourceOrBuilder- Returns:
- The gitUri.
-
getGitUriBytes
public 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;- Specified by:
getGitUriBytesin interfaceSourceOrBuilder- Returns:
- The bytes for gitUri.
-
setGitUri
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;- Parameters:
value- The gitUri to set.- Returns:
- This builder for chaining.
-
clearGitUri
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:
- This builder for chaining.
-
setGitUriBytes
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;- Parameters:
value- The bytes for gitUri to set.- Returns:
- This builder for chaining.
-