Class GcsFileSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GcsFileSpec.Builder>
com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder
All Implemented Interfaces:
GcsFileSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GcsFileSpec

public static final class GcsFileSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<GcsFileSpec.Builder> implements GcsFileSpecOrBuilder
 Specifications of a single file in Cloud Storage.
 
Protobuf type google.cloud.datacatalog.v1beta1.GcsFileSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GcsFileSpec.Builder>
    • clear

      public GcsFileSpec.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GcsFileSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GcsFileSpec.Builder>
    • getDefaultInstanceForType

      public GcsFileSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GcsFileSpec build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GcsFileSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GcsFileSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GcsFileSpec.Builder>
    • mergeFrom

      public GcsFileSpec.Builder mergeFrom(GcsFileSpec other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GcsFileSpec.Builder>
    • mergeFrom

      public GcsFileSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GcsFileSpec.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getFilePath in interface GcsFileSpecOrBuilder
      Returns:
      The filePath.
    • getFilePathBytes

      public com.google.protobuf.ByteString getFilePathBytes()
       Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
       
      string file_path = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilePathBytes in interface GcsFileSpecOrBuilder
      Returns:
      The bytes for filePath.
    • setFilePath

      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];
      Parameters:
      value - The filePath to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setFilePathBytes

      public GcsFileSpec.Builder setFilePathBytes(com.google.protobuf.ByteString value)
       Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
       
      string file_path = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for filePath to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasGcsTimestamps in interface GcsFileSpecOrBuilder
      Returns:
      Whether the gcsTimestamps field is set.
    • 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];
      Specified by:
      getGcsTimestamps in interface GcsFileSpecOrBuilder
      Returns:
      The gcsTimestamps.
    • setGcsTimestamps

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

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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getGcsTimestampsOrBuilder in interface GcsFileSpecOrBuilder
    • getSizeBytes

      public long getSizeBytes()
       Output only. The size of the file, in bytes.
       
      int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSizeBytes in interface GcsFileSpecOrBuilder
      Returns:
      The sizeBytes.
    • setSizeBytes

      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];
      Parameters:
      value - The sizeBytes to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.