Class GcsFileSpec (1.29.0)

public final class GcsFileSpec extends GeneratedMessageV3 implements GcsFileSpecOrBuilder

Specification of a single file in Cloud Storage.

Protobuf type google.cloud.datacatalog.v1.GcsFileSpec

Static Fields

FILE_PATH_FIELD_NUMBER

public static final int FILE_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_TIMESTAMPS_FIELD_NUMBER

public static final int GCS_TIMESTAMPS_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_BYTES_FIELD_NUMBER

public static final int SIZE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GcsFileSpec getDefaultInstance()
Returns
TypeDescription
GcsFileSpec

getDescriptor()

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

newBuilder()

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

newBuilder(GcsFileSpec prototype)

public static GcsFileSpec.Builder newBuilder(GcsFileSpec prototype)
Parameter
NameDescription
prototypeGcsFileSpec
Returns
TypeDescription
GcsFileSpec.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GcsFileSpec getDefaultInstanceForType()
Returns
TypeDescription
GcsFileSpec

getFilePath()

public String getFilePath()

Required. Full file path. Example: gs://bucket_name/a/b.txt.

string file_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The filePath.

getFilePathBytes()

public ByteString getFilePathBytes()

Required. Full file path. Example: gs://bucket_name/a/b.txt.

string file_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for filePath.

getGcsTimestamps()

public SystemTimestamps getGcsTimestamps()

Output only. Creation, modification, and expiration timestamps of a Cloud Storage file.

.google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SystemTimestamps

The gcsTimestamps.

getGcsTimestampsOrBuilder()

public SystemTimestampsOrBuilder getGcsTimestampsOrBuilder()

Output only. Creation, modification, and expiration timestamps of a Cloud Storage file.

.google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SystemTimestampsOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSizeBytes()

public long getSizeBytes()

Output only. File size in bytes.

int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The sizeBytes.

hasGcsTimestamps()

public boolean hasGcsTimestamps()

Output only. Creation, modification, and expiration timestamps of a Cloud Storage file.

.google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the gcsTimestamps field is set.

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 GcsFileSpec.Builder newBuilderForType()
Returns
TypeDescription
GcsFileSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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