Class StorageSource (2.62.0)

publicfinalclassStorageSourceextendsGeneratedMessageV3implementsStorageSourceOrBuilder

Location of the source in an archive file in Google Cloud Storage.

Protobuf type google.cloud.functions.v2beta.StorageSource

Static Fields

BUCKET_FIELD_NUMBER

publicstaticfinalintBUCKET_FIELD_NUMBER
Field Value
TypeDescription
int

GENERATION_FIELD_NUMBER

publicstaticfinalintGENERATION_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_FIELD_NUMBER

publicstaticfinalintOBJECT_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_UPLOAD_URL_FIELD_NUMBER

publicstaticfinalintSOURCE_UPLOAD_URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticStorageSourcegetDefaultInstance()
Returns
TypeDescription
StorageSource

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticStorageSource.BuildernewBuilder()
Returns
TypeDescription
StorageSource.Builder

newBuilder(StorageSource prototype)

publicstaticStorageSource.BuildernewBuilder(StorageSourceprototype)
Parameter
NameDescription
prototypeStorageSource
Returns
TypeDescription
StorageSource.Builder

parseDelimitedFrom(InputStream input)

publicstaticStorageSourceparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticStorageSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticStorageSourceparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticStorageSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticStorageSourceparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticStorageSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticStorageSourceparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticStorageSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticStorageSourceparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticStorageSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticStorageSourceparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticStorageSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<StorageSource>parser()
Returns
TypeDescription
Parser<StorageSource>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBucket()

publicStringgetBucket()

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

string bucket = 1;

Returns
TypeDescription
String

The bucket.

getBucketBytes()

publicByteStringgetBucketBytes()

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

string bucket = 1;

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

publicStorageSourcegetDefaultInstanceForType()
Returns
TypeDescription
StorageSource

getGeneration()

publiclonggetGeneration()

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

int64 generation = 3;

Returns
TypeDescription
long

The generation.

getObject()

publicStringgetObject()

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
TypeDescription
String

The object.

getObjectBytes()

publicByteStringgetObjectBytes()

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
TypeDescription
ByteString

The bytes for object.

getParserForType()

publicParser<StorageSource>getParserForType()
Returns
TypeDescription
Parser<StorageSource>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceUploadUrl()

publicStringgetSourceUploadUrl()

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
TypeDescription
String

The sourceUploadUrl.

getSourceUploadUrlBytes()

publicByteStringgetSourceUploadUrlBytes()

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
TypeDescription
ByteString

The bytes for sourceUploadUrl.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicStorageSource.BuildernewBuilderForType()
Returns
TypeDescription
StorageSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedStorageSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StorageSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicStorageSource.BuildertoBuilder()
Returns
TypeDescription
StorageSource.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException