Send feedback
Class GcsFileSpec.Builder (1.8.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.8.1 keyboard_arrow_down
public static final class GcsFileSpec . Builder extends GeneratedMessageV3 . Builder<GcsFileSpec . Builder > implements GcsFileSpecOrBuilder
Specifications of a single file in Cloud Storage.
Protobuf type google.cloud.datacatalog.v1beta1.GcsFileSpec
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GcsFileSpec . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public GcsFileSpec build ()
Returns
buildPartial()
public GcsFileSpec buildPartial ()
Returns
clear()
public GcsFileSpec . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GcsFileSpec . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearFilePath()
public GcsFileSpec . Builder clearFilePath ()
Required. The full file path. Example: gs://bucket_name/a/b.txt
.
string file_path = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearGcsTimestamps()
public GcsFileSpec . Builder clearGcsTimestamps ()
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GcsFileSpec . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearSizeBytes()
public GcsFileSpec . Builder clearSizeBytes ()
Output only. The size of the file, in bytes.
int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clone()
public GcsFileSpec . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public GcsFileSpec getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getFilePath()
public String getFilePath ()
Required. The full file path. Example: gs://bucket_name/a/b.txt
.
string file_path = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description String The filePath.
getFilePathBytes()
public ByteString getFilePathBytes ()
Required. The full file path. Example: gs://bucket_name/a/b.txt
.
string file_path = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getGcsTimestamps()
public SystemTimestamps getGcsTimestamps ()
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getGcsTimestampsBuilder()
public SystemTimestamps . Builder getGcsTimestampsBuilder ()
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getGcsTimestampsOrBuilder()
public SystemTimestampsOrBuilder getGcsTimestampsOrBuilder ()
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getSizeBytes()
public long getSizeBytes ()
Output only. The size of the file, in bytes.
int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type Description long The sizeBytes.
hasGcsTimestamps()
public boolean hasGcsTimestamps ()
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type Description boolean Whether the gcsTimestamps field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(GcsFileSpec other)
public GcsFileSpec . Builder mergeFrom ( GcsFileSpec other )
Parameter
Returns
public GcsFileSpec . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GcsFileSpec . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeGcsTimestamps(SystemTimestamps value)
public GcsFileSpec . Builder mergeGcsTimestamps ( SystemTimestamps value )
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GcsFileSpec . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GcsFileSpec . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setFilePath(String value)
public GcsFileSpec . Builder setFilePath ( String value )
Required. The full file path. Example: gs://bucket_name/a/b.txt
.
string file_path = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value String
The filePath to set.
Returns
setFilePathBytes(ByteString value)
public GcsFileSpec . Builder setFilePathBytes ( ByteString value )
Required. The full file path. Example: gs://bucket_name/a/b.txt
.
string file_path = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value ByteString
The bytes for filePath to set.
Returns
setGcsTimestamps(SystemTimestamps value)
public GcsFileSpec . Builder setGcsTimestamps ( SystemTimestamps value )
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
setGcsTimestamps(SystemTimestamps.Builder builderForValue)
public GcsFileSpec . Builder setGcsTimestamps ( SystemTimestamps . Builder builderForValue )
Output only. Timestamps about the Cloud Storage file.
.google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GcsFileSpec . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setSizeBytes(long value)
public GcsFileSpec . Builder setSizeBytes ( long value )
Output only. The size of the file, in bytes.
int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name Description value long
The sizeBytes to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final GcsFileSpec . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]