Class StorageSource (2.38.0)

public final class StorageSource extends GeneratedMessageV3 implements StorageSourceOrBuilder

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

Protobuf type google.cloud.functions.v2.StorageSource

Static Fields

BUCKET_FIELD_NUMBER

public static final int BUCKET_FIELD_NUMBER
Field Value
TypeDescription
int

GENERATION_FIELD_NUMBER

public static final int GENERATION_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_FIELD_NUMBER

public static final int OBJECT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StorageSource getDefaultInstance()
Returns
TypeDescription
StorageSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static StorageSource.Builder newBuilder()
Returns
TypeDescription
StorageSource.Builder

newBuilder(StorageSource prototype)

public static StorageSource.Builder newBuilder(StorageSource prototype)
Parameter
NameDescription
prototypeStorageSource
Returns
TypeDescription
StorageSource.Builder

parseDelimitedFrom(InputStream input)

public static StorageSource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StorageSource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StorageSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StorageSource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StorageSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StorageSource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StorageSource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StorageSource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StorageSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StorageSource> parser()
Returns
TypeDescription
Parser<StorageSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBucket()

public String getBucket()

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

string bucket = 1;

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

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

string bucket = 1;

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public StorageSource getDefaultInstanceForType()
Returns
TypeDescription
StorageSource

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

The bytes for object.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StorageSource.Builder newBuilderForType()
Returns
TypeDescription
StorageSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StorageSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StorageSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StorageSource.Builder toBuilder()
Returns
TypeDescription
StorageSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException