public static final class ExportClusterRequest.SqlExportOptions.Builder extends GeneratedMessageV3.Builder<ExportClusterRequest.SqlExportOptions.Builder> implements ExportClusterRequest.SqlExportOptionsOrBuilderOptions for exporting data in SQL format.
Protobuf type google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExportClusterRequest.SqlExportOptions.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllTables(Iterable<String> values)
public ExportClusterRequest.SqlExportOptions.Builder addAllTables(Iterable<String> values)Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The tables to add. |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExportClusterRequest.SqlExportOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
addTables(String value)
public ExportClusterRequest.SqlExportOptions.Builder addTables(String value)Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tables to add. |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
addTablesBytes(ByteString value)
public ExportClusterRequest.SqlExportOptions.Builder addTablesBytes(ByteString value)Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the tables to add. |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
build()
public ExportClusterRequest.SqlExportOptions build()| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions |
|
buildPartial()
public ExportClusterRequest.SqlExportOptions buildPartial()| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions |
|
clear()
public ExportClusterRequest.SqlExportOptions.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
clearCleanTargetObjects()
public ExportClusterRequest.SqlExportOptions.Builder clearCleanTargetObjects()Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them.
optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ExportClusterRequest.SqlExportOptions.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
clearIfExistTargetObjects()
public ExportClusterRequest.SqlExportOptions.Builder clearIfExistTargetObjects()Optional. If true, use DROP ... IF EXISTS commands to check for the object's existence before dropping it in clean_target_objects mode.
optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ExportClusterRequest.SqlExportOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
clearSchemaOnly()
public ExportClusterRequest.SqlExportOptions.Builder clearSchemaOnly()Optional. If true, only export the schema.
optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
clearTables()
public ExportClusterRequest.SqlExportOptions.Builder clearTables()Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
clone()
public ExportClusterRequest.SqlExportOptions.Builder clone()| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
getCleanTargetObjects()
public boolean getCleanTargetObjects()Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them.
optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The cleanTargetObjects. |
getDefaultInstanceForType()
public ExportClusterRequest.SqlExportOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIfExistTargetObjects()
public boolean getIfExistTargetObjects()Optional. If true, use DROP ... IF EXISTS commands to check for the object's existence before dropping it in clean_target_objects mode.
optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The ifExistTargetObjects. |
getSchemaOnly()
public boolean getSchemaOnly()Optional. If true, only export the schema.
optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The schemaOnly. |
getTables(int index)
public String getTables(int index)Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The tables at the given index. |
getTablesBytes(int index)
public ByteString getTablesBytes(int index)Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the tables at the given index. |
getTablesCount()
public int getTablesCount()Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of tables. |
getTablesList()
public ProtocolStringList getTablesList()Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the tables. |
hasCleanTargetObjects()
public boolean hasCleanTargetObjects()Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them.
optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cleanTargetObjects field is set. |
hasIfExistTargetObjects()
public boolean hasIfExistTargetObjects()Optional. If true, use DROP ... IF EXISTS commands to check for the object's existence before dropping it in clean_target_objects mode.
optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ifExistTargetObjects field is set. |
hasSchemaOnly()
public boolean hasSchemaOnly()Optional. If true, only export the schema.
optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the schemaOnly field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExportClusterRequest.SqlExportOptions other)
public ExportClusterRequest.SqlExportOptions.Builder mergeFrom(ExportClusterRequest.SqlExportOptions other)| Parameter | |
|---|---|
| Name | Description |
other |
ExportClusterRequest.SqlExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExportClusterRequest.SqlExportOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExportClusterRequest.SqlExportOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExportClusterRequest.SqlExportOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
setCleanTargetObjects(boolean value)
public ExportClusterRequest.SqlExportOptions.Builder setCleanTargetObjects(boolean value)Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them.
optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe cleanTargetObjects to set. |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ExportClusterRequest.SqlExportOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
setIfExistTargetObjects(boolean value)
public ExportClusterRequest.SqlExportOptions.Builder setIfExistTargetObjects(boolean value)Optional. If true, use DROP ... IF EXISTS commands to check for the object's existence before dropping it in clean_target_objects mode.
optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe ifExistTargetObjects to set. |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExportClusterRequest.SqlExportOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|
setSchemaOnly(boolean value)
public ExportClusterRequest.SqlExportOptions.Builder setSchemaOnly(boolean value)Optional. If true, only export the schema.
optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe schemaOnly to set. |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
setTables(int index, String value)
public ExportClusterRequest.SqlExportOptions.Builder setTables(int index, String value)Optional. Tables to export from.
repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe tables to set. |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ExportClusterRequest.SqlExportOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportClusterRequest.SqlExportOptions.Builder |
|