public static final class StorageSource.Builder extends GeneratedMessageV3.Builder<StorageSource.Builder> implements StorageSourceOrBuilder
Location of the source in an archive file in Google Cloud Storage.
Protobuf type google.cloud.functions.v2.StorageSource
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 StorageSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StorageSource build()
Returns
buildPartial()
public StorageSource buildPartial()
Returns
clear()
public StorageSource.Builder clear()
Returns
Overrides
clearBucket()
public StorageSource.Builder clearBucket()
Returns
clearField(Descriptors.FieldDescriptor field)
public StorageSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGeneration()
public StorageSource.Builder clearGeneration()
Google Cloud Storage generation for the object. If the generation is
omitted, the latest generation will be used.
int64 generation = 3;
Returns
clearObject()
public StorageSource.Builder 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
clearOneof(Descriptors.OneofDescriptor oneof)
public StorageSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public StorageSource.Builder clone()
Returns
Overrides
getBucket()
public String getBucket()
Returns
Type | Description |
String | The bucket.
|
getBucketBytes()
public ByteString getBucketBytes()
Returns
getDefaultInstanceForType()
public StorageSource getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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;
Returns
Type | Description |
long | The generation.
|
getObject()
public String 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;
Returns
Type | Description |
String | The object.
|
getObjectBytes()
public 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;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StorageSource other)
public StorageSource.Builder mergeFrom(StorageSource other)
Parameter
Returns
public StorageSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StorageSource.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StorageSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setBucket(String value)
public StorageSource.Builder setBucket(String value)
Parameter
Name | Description |
value | String
The bucket to set.
|
Returns
setBucketBytes(ByteString value)
public StorageSource.Builder setBucketBytes(ByteString value)
Parameter
Name | Description |
value | ByteString
The bytes for bucket to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StorageSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGeneration(long value)
public StorageSource.Builder setGeneration(long value)
Google Cloud Storage generation for the object. If the generation is
omitted, the latest generation will be used.
int64 generation = 3;
Parameter
Name | Description |
value | long
The generation to set.
|
Returns
setObject(String value)
public StorageSource.Builder setObject(String value)
Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz
) containing source to
build.
string object = 2;
Parameter
Name | Description |
value | String
The object to set.
|
Returns
setObjectBytes(ByteString value)
public StorageSource.Builder setObjectBytes(ByteString value)
Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz
) containing source to
build.
string object = 2;
Parameter
Name | Description |
value | ByteString
The bytes for object to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StorageSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StorageSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides