Class MetadataExport.Builder (2.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetadataExport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetadataExport.Builder
Overrides

build()

public MetadataExport build()
Returns
TypeDescription
MetadataExport

buildPartial()

public MetadataExport buildPartial()
Returns
TypeDescription
MetadataExport

clear()

public MetadataExport.Builder clear()
Returns
TypeDescription
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
TypeDescription
MetadataExport.Builder

This builder for chaining.

clearDestination()

public MetadataExport.Builder clearDestination()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MetadataExport.Builder

clearField(Descriptors.FieldDescriptor field)

public MetadataExport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MetadataExport.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MetadataExport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MetadataExport.Builder

This builder for chaining.

clone()

public MetadataExport.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for databaseDumpType.

getDefaultInstanceForType()

public MetadataExport getDefaultInstanceForType()
Returns
TypeDescription
MetadataExport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public MetadataExport.DestinationCase getDestinationCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MetadataExport.Builder

mergeFrom(MetadataExport other)

public MetadataExport.Builder mergeFrom(MetadataExport other)
Parameter
NameDescription
otherMetadataExport
Returns
TypeDescription
MetadataExport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetadataExport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataExport.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MetadataExport.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MetadataExport.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetadataExport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDatabaseDumpSpec.Type

The databaseDumpType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The destinationGcsUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for destinationGcsUri to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MetadataExport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MetadataExport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetadataExport.Builder
Overrides

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

public MetadataExport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueMetadataExport.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
MetadataExport.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MetadataExport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetadataExport.Builder
Overrides