Class DatabaseFlags.Builder (0.1.0)

public static final class DatabaseFlags.Builder extends GeneratedMessage.Builder<DatabaseFlags.Builder> implements DatabaseFlagsOrBuilder

Database flags for Cloud SQL instances.

Protobuf type google.cloud.sql.v1.DatabaseFlags

Static Methods

getDescriptor()

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

Methods

build()

public DatabaseFlags build()
Returns
Type Description
DatabaseFlags

buildPartial()

public DatabaseFlags buildPartial()
Returns
Type Description
DatabaseFlags

clear()

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

clearName()

public DatabaseFlags.Builder clearName()

The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation.

string name = 1;

Returns
Type Description
DatabaseFlags.Builder

This builder for chaining.

clearValue()

public DatabaseFlags.Builder clearValue()

The value of the flag. Boolean flags are set to on for true and off for false. This field must be omitted if the flag doesn't take a value.

string value = 2;

Returns
Type Description
DatabaseFlags.Builder

This builder for chaining.

getDefaultInstanceForType()

public DatabaseFlags getDefaultInstanceForType()
Returns
Type Description
DatabaseFlags

getDescriptorForType()

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

getName()

public String getName()

The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getValue()

public String getValue()

The value of the flag. Boolean flags are set to on for true and off for false. 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. Boolean flags are set to on for true and off for false. 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(DatabaseFlags other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public DatabaseFlags.Builder setName(String value)

The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DatabaseFlags.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DatabaseFlags.Builder setNameBytes(ByteString value)

The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DatabaseFlags.Builder

This builder for chaining.

setValue(String value)

public DatabaseFlags.Builder setValue(String value)

The value of the flag. Boolean flags are set to on for true and off for false. 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
DatabaseFlags.Builder

This builder for chaining.

setValueBytes(ByteString value)

public DatabaseFlags.Builder setValueBytes(ByteString value)

The value of the flag. Boolean flags are set to on for true and off for false. 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
DatabaseFlags.Builder

This builder for chaining.