Class MetadataExport.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetadataExport.Builder>
com.google.cloud.metastore.v1beta.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.GeneratedMessage.Builder<MetadataExport.Builder> implements MetadataExportOrBuilder
 The details of a metadata export operation.
 
Protobuf type google.cloud.metastore.v1beta.MetadataExport
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public MetadataExport.Builder mergeFrom(MetadataExport other)
    • isInitialized

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

      public MetadataExport.DestinationCase getDestinationCase()
      Specified by:
      getDestinationCase in interface MetadataExportOrBuilder
    • clearDestination

      public MetadataExport.Builder clearDestination()
    • 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.v1beta.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.v1beta.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.v1beta.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface MetadataExportOrBuilder
      Returns:
      The state.
    • setState

       Output only. The current state of the export.
       
      .google.cloud.metastore.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.