Class MetadataExport.Builder

  • All Implemented Interfaces:
    MetadataExportOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    MetadataExport

    public static final class MetadataExport.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MetadataExport.Builder>
    implements MetadataExportOrBuilder
     The details of a metadata export operation.
     
    Protobuf type google.cloud.metastore.v1alpha.MetadataExport
    • 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<MetadataExport.Builder>
      • clear

        public MetadataExport.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<MetadataExport.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<MetadataExport.Builder>
      • getDefaultInstanceForType

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

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

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

        public MetadataExport.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<MetadataExport.Builder>
      • setField

        public MetadataExport.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<MetadataExport.Builder>
      • clearField

        public MetadataExport.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<MetadataExport.Builder>
      • clearOneof

        public MetadataExport.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<MetadataExport.Builder>
      • setRepeatedField

        public MetadataExport.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<MetadataExport.Builder>
      • addRepeatedField

        public MetadataExport.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<MetadataExport.Builder>
      • mergeFrom

        public MetadataExport.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<MetadataExport.Builder>
      • isInitialized

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

        public MetadataExport.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<MetadataExport.Builder>
        Throws:
        IOException
      • hasDestinationGcsUri

        public boolean hasDestinationGcsUri()
         Output only. A Cloud Storage URI of a folder that metadata are exported
         to, in the form of
         `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where
         `<export_folder>` is automatically generated.
         
        string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDestinationGcsUri in interface MetadataExportOrBuilder
        Returns:
        Whether the destinationGcsUri field is set.
      • getDestinationGcsUri

        public String getDestinationGcsUri()
         Output only. A Cloud Storage URI of a folder that metadata are exported
         to, in the form of
         `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where
         `<export_folder>` is automatically generated.
         
        string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDestinationGcsUri in interface MetadataExportOrBuilder
        Returns:
        The destinationGcsUri.
      • getDestinationGcsUriBytes

        public com.google.protobuf.ByteString getDestinationGcsUriBytes()
         Output only. A Cloud Storage URI of a folder that metadata are exported
         to, in the form of
         `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where
         `<export_folder>` is automatically generated.
         
        string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDestinationGcsUriBytes in interface MetadataExportOrBuilder
        Returns:
        The bytes for destinationGcsUri.
      • setDestinationGcsUri

        public MetadataExport.Builder setDestinationGcsUri​(String value)
         Output only. A Cloud Storage URI of a folder that metadata are exported
         to, in the form of
         `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where
         `<export_folder>` is automatically generated.
         
        string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The destinationGcsUri to set.
        Returns:
        This builder for chaining.
      • clearDestinationGcsUri

        public MetadataExport.Builder clearDestinationGcsUri()
         Output only. A Cloud Storage URI of a folder that metadata are exported
         to, in the form of
         `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where
         `<export_folder>` is automatically generated.
         
        string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setDestinationGcsUriBytes

        public MetadataExport.Builder setDestinationGcsUriBytes​(com.google.protobuf.ByteString value)
         Output only. A Cloud Storage URI of a folder that metadata are exported
         to, in the form of
         `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where
         `<export_folder>` is automatically generated.
         
        string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for destinationGcsUri to set.
        Returns:
        This builder for chaining.
      • hasStartTime

        public boolean hasStartTime()
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStartTime in interface MetadataExportOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStartTime in interface MetadataExportOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public MetadataExport.Builder setStartTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStartTime

        public MetadataExport.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStartTime

        public MetadataExport.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStartTime

        public MetadataExport.Builder clearStartTime()
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Output only. The time when the export started.
         
        .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStartTimeOrBuilder in interface MetadataExportOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEndTime in interface MetadataExportOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTime in interface MetadataExportOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public MetadataExport.Builder setEndTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEndTime

        public MetadataExport.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEndTime

        public MetadataExport.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEndTime

        public MetadataExport.Builder clearEndTime()
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Output only. The time when the export ended.
         
        .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTimeOrBuilder in interface MetadataExportOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. The current state of the export.
         
        .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface MetadataExportOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public MetadataExport.Builder setStateValue​(int value)
         Output only. The current state of the export.
         
        .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public MetadataExport.State getState()
         Output only. The current state of the export.
         
        .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface MetadataExportOrBuilder
        Returns:
        The state.
      • setState

        public MetadataExport.Builder setState​(MetadataExport.State value)
         Output only. The current state of the export.
         
        .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public MetadataExport.Builder clearState()
         Output only. The current state of the export.
         
        .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getDatabaseDumpTypeValue

        public int getDatabaseDumpTypeValue()
         Output only. The type of the database dump.
         
        .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDatabaseDumpTypeValue in interface MetadataExportOrBuilder
        Returns:
        The enum numeric value on the wire for databaseDumpType.
      • setDatabaseDumpTypeValue

        public MetadataExport.Builder setDatabaseDumpTypeValue​(int value)
         Output only. The type of the database dump.
         
        .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for databaseDumpType to set.
        Returns:
        This builder for chaining.
      • getDatabaseDumpType

        public DatabaseDumpSpec.Type getDatabaseDumpType()
         Output only. The type of the database dump.
         
        .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDatabaseDumpType in interface MetadataExportOrBuilder
        Returns:
        The databaseDumpType.
      • setDatabaseDumpType

        public MetadataExport.Builder setDatabaseDumpType​(DatabaseDumpSpec.Type value)
         Output only. The type of the database dump.
         
        .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The databaseDumpType to set.
        Returns:
        This builder for chaining.
      • clearDatabaseDumpType

        public MetadataExport.Builder clearDatabaseDumpType()
         Output only. The type of the database dump.
         
        .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MetadataExport.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<MetadataExport.Builder>
      • mergeUnknownFields

        public final MetadataExport.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<MetadataExport.Builder>