Class 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.GeneratedMessageV3.Builder<GcsFileSpec.Builder>
    implements GcsFileSpecOrBuilder
     Specifications of a single file in Cloud Storage.
     
    Protobuf type google.cloud.datacatalog.v1beta1.GcsFileSpec
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public GcsFileSpec.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.Builder>
      • setField

        public GcsFileSpec.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.Builder>
      • clearField

        public GcsFileSpec.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.Builder>
      • clearOneof

        public GcsFileSpec.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.Builder>
      • setRepeatedField

        public GcsFileSpec.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.Builder>
      • addRepeatedField

        public GcsFileSpec.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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];
      • 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.
      • setUnknownFields

        public final GcsFileSpec.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.Builder>
      • mergeUnknownFields

        public final GcsFileSpec.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GcsFileSpec.Builder>