Class SyncFlags.Builder (0.1.0)

public static final class SyncFlags.Builder extends GeneratedMessage.Builder<SyncFlags.Builder> implements SyncFlagsOrBuilder

Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.

Protobuf type google.cloud.sql.v1beta4.SyncFlags

Implements

SyncFlagsOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public SyncFlags build()
Returns
Type Description
SyncFlags

buildPartial()

public SyncFlags buildPartial()
Returns
Type Description
SyncFlags

clear()

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

clearName()

public SyncFlags.Builder clearName()

The name of the flag.

string name = 1;

Returns
Type Description
SyncFlags.Builder

This builder for chaining.

clearValue()

public SyncFlags.Builder clearValue()

The value of the flag. This field must be omitted if the flag doesn't take a value.

string value = 2;

Returns
Type Description
SyncFlags.Builder

This builder for chaining.

getDefaultInstanceForType()

public SyncFlags getDefaultInstanceForType()
Returns
Type Description
SyncFlags

getDescriptorForType()

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

getName()

public String getName()

The name of the flag.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the flag.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getValue()

public String getValue()

The value of the flag. This field must be omitted if the flag doesn't take a value.

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the flag. This field must be omitted if the flag doesn't take a value.

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SyncFlags other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public SyncFlags.Builder setName(String value)

The name of the flag.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SyncFlags.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SyncFlags.Builder setNameBytes(ByteString value)

The name of the flag.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SyncFlags.Builder

This builder for chaining.

setValue(String value)

public SyncFlags.Builder setValue(String value)

The value of the flag. This field must be omitted if the flag doesn't take a value.

string value = 2;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
SyncFlags.Builder

This builder for chaining.

setValueBytes(ByteString value)

public SyncFlags.Builder setValueBytes(ByteString value)

The value of the flag. This field must be omitted if the flag doesn't take a value.

string value = 2;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
SyncFlags.Builder

This builder for chaining.