Class TargetSpec.Builder (0.58.0)

public static final class TargetSpec.Builder extends GeneratedMessageV3.Builder<TargetSpec.Builder> implements TargetSpecOrBuilder

Represents one path to the location that holds target data.

Protobuf type google.cloud.bigquery.migration.v2.TargetSpec

Implements

TargetSpecOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetSpec build()
Returns
Type Description
TargetSpec

buildPartial()

public TargetSpec buildPartial()
Returns
Type Description
TargetSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRelativePath()

public TargetSpec.Builder clearRelativePath()

The relative path for the target data. Given source file base_uri/input/sql, the output would be target_base_uri/sql/relative_path/input.sql.

string relative_path = 1;

Returns
Type Description
TargetSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TargetSpec getDefaultInstanceForType()
Returns
Type Description
TargetSpec

getDescriptorForType()

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

getRelativePath()

public String getRelativePath()

The relative path for the target data. Given source file base_uri/input/sql, the output would be target_base_uri/sql/relative_path/input.sql.

string relative_path = 1;

Returns
Type Description
String

The relativePath.

getRelativePathBytes()

public ByteString getRelativePathBytes()

The relative path for the target data. Given source file base_uri/input/sql, the output would be target_base_uri/sql/relative_path/input.sql.

string relative_path = 1;

Returns
Type Description
ByteString

The bytes for relativePath.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TargetSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRelativePath(String value)

public TargetSpec.Builder setRelativePath(String value)

The relative path for the target data. Given source file base_uri/input/sql, the output would be target_base_uri/sql/relative_path/input.sql.

string relative_path = 1;

Parameter
Name Description
value String

The relativePath to set.

Returns
Type Description
TargetSpec.Builder

This builder for chaining.

setRelativePathBytes(ByteString value)

public TargetSpec.Builder setRelativePathBytes(ByteString value)

The relative path for the target data. Given source file base_uri/input/sql, the output would be target_base_uri/sql/relative_path/input.sql.

string relative_path = 1;

Parameter
Name Description
value ByteString

The bytes for relativePath to set.

Returns
Type Description
TargetSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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