Class StorageSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StorageSource.Builder>
com.google.cloud.functions.v2alpha.StorageSource.Builder
- All Implemented Interfaces:
StorageSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StorageSource
public static final class StorageSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StorageSource.Builder>
implements StorageSourceOrBuilder
Location of the source in an archive file in Google Cloud Storage.Protobuf type
google.cloud.functions.v2alpha.StorageSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).Google Cloud Storage generation for the object.Google Cloud Storage object containing the source.When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).com.google.protobuf.ByteStringGoogle Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongGoogle Cloud Storage generation for the object.Google Cloud Storage object containing the source.com.google.protobuf.ByteStringGoogle Cloud Storage object containing the source.When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.com.google.protobuf.ByteStringWhen the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(StorageSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).setBucketBytes(com.google.protobuf.ByteString value) Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).setGeneration(long value) Google Cloud Storage generation for the object.Google Cloud Storage object containing the source.setObjectBytes(com.google.protobuf.ByteString value) Google Cloud Storage object containing the source.setSourceUploadUrl(String value) When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.setSourceUploadUrlBytes(com.google.protobuf.ByteString value) When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.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<StorageSource.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<StorageSource.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<StorageSource.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<StorageSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StorageSource.Builder>
-
mergeFrom
public StorageSource.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<StorageSource.Builder>- Throws:
IOException
-
getBucket
Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
string bucket = 1;- Specified by:
getBucketin interfaceStorageSourceOrBuilder- Returns:
- The bucket.
-
getBucketBytes
public com.google.protobuf.ByteString getBucketBytes()Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
string bucket = 1;- Specified by:
getBucketBytesin interfaceStorageSourceOrBuilder- Returns:
- The bytes for bucket.
-
setBucket
Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
string bucket = 1;- Parameters:
value- The bucket to set.- Returns:
- This builder for chaining.
-
clearBucket
Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
string bucket = 1;- Returns:
- This builder for chaining.
-
setBucketBytes
Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
string bucket = 1;- Parameters:
value- The bytes for bucket to set.- Returns:
- This builder for chaining.
-
getObject
Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
string object = 2;- Specified by:
getObjectin interfaceStorageSourceOrBuilder- Returns:
- The object.
-
getObjectBytes
public com.google.protobuf.ByteString getObjectBytes()Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
string object = 2;- Specified by:
getObjectBytesin interfaceStorageSourceOrBuilder- Returns:
- The bytes for object.
-
setObject
Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
string object = 2;- Parameters:
value- The object to set.- Returns:
- This builder for chaining.
-
clearObject
Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
string object = 2;- Returns:
- This builder for chaining.
-
setObjectBytes
Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
string object = 2;- Parameters:
value- The bytes for object to set.- Returns:
- This builder for chaining.
-
getGeneration
public long getGeneration()Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
int64 generation = 3;- Specified by:
getGenerationin interfaceStorageSourceOrBuilder- Returns:
- The generation.
-
setGeneration
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
int64 generation = 3;- Parameters:
value- The generation to set.- Returns:
- This builder for chaining.
-
clearGeneration
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
int64 generation = 3;- Returns:
- This builder for chaining.
-
getSourceUploadUrl
When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
string source_upload_url = 4;- Specified by:
getSourceUploadUrlin interfaceStorageSourceOrBuilder- Returns:
- The sourceUploadUrl.
-
getSourceUploadUrlBytes
public com.google.protobuf.ByteString getSourceUploadUrlBytes()When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
string source_upload_url = 4;- Specified by:
getSourceUploadUrlBytesin interfaceStorageSourceOrBuilder- Returns:
- The bytes for sourceUploadUrl.
-
setSourceUploadUrl
When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
string source_upload_url = 4;- Parameters:
value- The sourceUploadUrl to set.- Returns:
- This builder for chaining.
-
clearSourceUploadUrl
When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
string source_upload_url = 4;- Returns:
- This builder for chaining.
-
setSourceUploadUrlBytes
When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
string source_upload_url = 4;- Parameters:
value- The bytes for sourceUploadUrl to set.- Returns:
- This builder for chaining.
-