Class MetadataExport.Builder (2.47.0)

public static final class MetadataExport.Builder extends GeneratedMessageV3.Builder<MetadataExport.Builder> implements MetadataExportOrBuilder

The details of a metadata export operation.

Protobuf type google.cloud.metastore.v1.MetadataExport

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetadataExport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MetadataExport.Builder
Overrides

build()

public MetadataExport build()
Returns
Type Description
MetadataExport

buildPartial()

public MetadataExport buildPartial()
Returns
Type Description
MetadataExport

clear()

public MetadataExport.Builder clear()
Returns
Type Description
MetadataExport.Builder
Overrides

clearDatabaseDumpType()

public MetadataExport.Builder clearDatabaseDumpType()

Output only. The type of the database dump.

.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

clearDestination()

public MetadataExport.Builder clearDestination()
Returns
Type Description
MetadataExport.Builder

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
Type Description
MetadataExport.Builder

This builder for chaining.

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

Returns
Type Description
MetadataExport.Builder

clearField(Descriptors.FieldDescriptor field)

public MetadataExport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MetadataExport.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MetadataExport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MetadataExport.Builder
Overrides

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

Returns
Type Description
MetadataExport.Builder

clearState()

public MetadataExport.Builder clearState()

Output only. The current state of the export.

.google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

clone()

public MetadataExport.Builder clone()
Returns
Type Description
MetadataExport.Builder
Overrides

getDatabaseDumpType()

public DatabaseDumpSpec.Type getDatabaseDumpType()

Output only. The type of the database dump.

.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DatabaseDumpSpec.Type

The databaseDumpType.

getDatabaseDumpTypeValue()

public int getDatabaseDumpTypeValue()

Output only. The type of the database dump.

.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for databaseDumpType.

getDefaultInstanceForType()

public MetadataExport getDefaultInstanceForType()
Returns
Type Description
MetadataExport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationCase()

public MetadataExport.DestinationCase getDestinationCase()
Returns
Type Description
MetadataExport.DestinationCase

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

Returns
Type Description
String

The destinationGcsUri.

getDestinationGcsUriBytes()

public 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];

Returns
Type Description
ByteString

The bytes for destinationGcsUri.

getEndTime()

public Timestamp getEndTime()

Output only. The time when the export ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The time when the export ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time when the export ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Output only. The time when the export started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The time when the export started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The time when the export started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public MetadataExport.State getState()

Output only. The current state of the export.

.google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MetadataExport.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the export.

.google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

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

Returns
Type Description
boolean

Whether the destinationGcsUri field is set.

hasEndTime()

public boolean hasEndTime()

Output only. The time when the export ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The time when the export started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public MetadataExport.Builder mergeEndTime(Timestamp value)

Output only. The time when the export ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetadataExport.Builder

mergeFrom(MetadataExport other)

public MetadataExport.Builder mergeFrom(MetadataExport other)
Parameter
Name Description
other MetadataExport
Returns
Type Description
MetadataExport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetadataExport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetadataExport.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MetadataExport.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MetadataExport.Builder
Overrides

mergeStartTime(Timestamp value)

public MetadataExport.Builder mergeStartTime(Timestamp value)

Output only. The time when the export started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetadataExport.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetadataExport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetadataExport.Builder
Overrides

setDatabaseDumpType(DatabaseDumpSpec.Type value)

public MetadataExport.Builder setDatabaseDumpType(DatabaseDumpSpec.Type value)

Output only. The type of the database dump.

.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DatabaseDumpSpec.Type

The databaseDumpType to set.

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

setDatabaseDumpTypeValue(int value)

public MetadataExport.Builder setDatabaseDumpTypeValue(int value)

Output only. The type of the database dump.

.google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for databaseDumpType to set.

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

setDestinationGcsUri(String value)

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

Parameter
Name Description
value String

The destinationGcsUri to set.

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

setDestinationGcsUriBytes(ByteString value)

public MetadataExport.Builder setDestinationGcsUriBytes(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];

Parameter
Name Description
value ByteString

The bytes for destinationGcsUri to set.

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

setEndTime(Timestamp value)

public MetadataExport.Builder setEndTime(Timestamp value)

Output only. The time when the export ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetadataExport.Builder

setEndTime(Timestamp.Builder builderForValue)

public MetadataExport.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The time when the export ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MetadataExport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MetadataExport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MetadataExport.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MetadataExport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MetadataExport.Builder
Overrides

setStartTime(Timestamp value)

public MetadataExport.Builder setStartTime(Timestamp value)

Output only. The time when the export started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetadataExport.Builder

setStartTime(Timestamp.Builder builderForValue)

public MetadataExport.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The time when the export started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MetadataExport.Builder

setState(MetadataExport.State value)

public MetadataExport.Builder setState(MetadataExport.State value)

Output only. The current state of the export.

.google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MetadataExport.State

The state to set.

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

setStateValue(int value)

public MetadataExport.Builder setStateValue(int value)

Output only. The current state of the export.

.google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
MetadataExport.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MetadataExport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetadataExport.Builder
Overrides