Class GcsFileSpec.Builder (1.24.0)

public static final class GcsFileSpec.Builder extends GeneratedMessageV3.Builder<GcsFileSpec.Builder> implements GcsFileSpecOrBuilder

Specification of a single file in Cloud Storage.

Protobuf type google.cloud.datacatalog.v1.GcsFileSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GcsFileSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

build()

public GcsFileSpec build()
Returns
TypeDescription
GcsFileSpec

buildPartial()

public GcsFileSpec buildPartial()
Returns
TypeDescription
GcsFileSpec

clear()

public GcsFileSpec.Builder clear()
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GcsFileSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

clearFilePath()

public GcsFileSpec.Builder clearFilePath()

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

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

Returns
TypeDescription
GcsFileSpec.Builder

This builder for chaining.

clearGcsTimestamps()

public GcsFileSpec.Builder clearGcsTimestamps()

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
GcsFileSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GcsFileSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

clearSizeBytes()

public GcsFileSpec.Builder clearSizeBytes()

Output only. File size in bytes.

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

Returns
TypeDescription
GcsFileSpec.Builder

This builder for chaining.

clone()

public GcsFileSpec.Builder clone()
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

getDefaultInstanceForType()

public GcsFileSpec getDefaultInstanceForType()
Returns
TypeDescription
GcsFileSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getGcsTimestampsBuilder()

public SystemTimestamps.Builder getGcsTimestampsBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GcsFileSpec other)

public GcsFileSpec.Builder mergeFrom(GcsFileSpec other)
Parameter
NameDescription
otherGcsFileSpec
Returns
TypeDescription
GcsFileSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GcsFileSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsFileSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GcsFileSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

mergeGcsTimestamps(SystemTimestamps value)

public GcsFileSpec.Builder mergeGcsTimestamps(SystemTimestamps value)

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];

Parameter
NameDescription
valueSystemTimestamps
Returns
TypeDescription
GcsFileSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GcsFileSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GcsFileSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

setFilePath(String value)

public GcsFileSpec.Builder setFilePath(String value)

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

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

Parameter
NameDescription
valueString

The filePath to set.

Returns
TypeDescription
GcsFileSpec.Builder

This builder for chaining.

setFilePathBytes(ByteString value)

public GcsFileSpec.Builder setFilePathBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for filePath to set.

Returns
TypeDescription
GcsFileSpec.Builder

This builder for chaining.

setGcsTimestamps(SystemTimestamps value)

public GcsFileSpec.Builder setGcsTimestamps(SystemTimestamps value)

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];

Parameter
NameDescription
valueSystemTimestamps
Returns
TypeDescription
GcsFileSpec.Builder

setGcsTimestamps(SystemTimestamps.Builder builderForValue)

public GcsFileSpec.Builder setGcsTimestamps(SystemTimestamps.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueSystemTimestamps.Builder
Returns
TypeDescription
GcsFileSpec.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GcsFileSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GcsFileSpec.Builder
Overrides

setSizeBytes(long value)

public GcsFileSpec.Builder setSizeBytes(long value)

Output only. File size in bytes.

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

Parameter
NameDescription
valuelong

The sizeBytes to set.

Returns
TypeDescription
GcsFileSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GcsFileSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GcsFileSpec.Builder
Overrides