Class PreCheckResponse.Builder (0.1.0)

public static final class PreCheckResponse.Builder extends GeneratedMessage.Builder<PreCheckResponse.Builder> implements PreCheckResponseOrBuilder

Structured PreCheckResponse containing message, type, and required actions.

Protobuf type google.cloud.sql.v1.PreCheckResponse

Static Methods

getDescriptor()

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

Methods

addActionsRequired(String value)

public PreCheckResponse.Builder addActionsRequired(String value)

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Parameter
Name Description
value String

The actionsRequired to add.

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

addActionsRequiredBytes(ByteString value)

public PreCheckResponse.Builder addActionsRequiredBytes(ByteString value)

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Parameter
Name Description
value ByteString

The bytes of the actionsRequired to add.

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

addAllActionsRequired(Iterable<String> values)

public PreCheckResponse.Builder addAllActionsRequired(Iterable<String> values)

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Parameter
Name Description
values Iterable<String>

The actionsRequired to add.

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

build()

public PreCheckResponse build()
Returns
Type Description
PreCheckResponse

buildPartial()

public PreCheckResponse buildPartial()
Returns
Type Description
PreCheckResponse

clear()

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

clearActionsRequired()

public PreCheckResponse.Builder clearActionsRequired()

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

clearMessage()

public PreCheckResponse.Builder clearMessage()

The message to be displayed to the user.

optional string message = 2;

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

clearMessageType()

public PreCheckResponse.Builder clearMessageType()

The type of message whether it is an info, warning, or error.

optional .google.cloud.sql.v1.PreCheckResponse.MessageType message_type = 3;

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

getActionsRequired(int index)

public String getActionsRequired(int index)

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The actionsRequired at the given index.

getActionsRequiredBytes(int index)

public ByteString getActionsRequiredBytes(int index)

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the actionsRequired at the given index.

getActionsRequiredCount()

public int getActionsRequiredCount()

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Returns
Type Description
int

The count of actionsRequired.

getActionsRequiredList()

public ProtocolStringList getActionsRequiredList()

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Returns
Type Description
ProtocolStringList

A list containing the actionsRequired.

getDefaultInstanceForType()

public PreCheckResponse getDefaultInstanceForType()
Returns
Type Description
PreCheckResponse

getDescriptorForType()

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

getMessage()

public String getMessage()

The message to be displayed to the user.

optional string message = 2;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The message to be displayed to the user.

optional string message = 2;

Returns
Type Description
ByteString

The bytes for message.

getMessageType()

public PreCheckResponse.MessageType getMessageType()

The type of message whether it is an info, warning, or error.

optional .google.cloud.sql.v1.PreCheckResponse.MessageType message_type = 3;

Returns
Type Description
PreCheckResponse.MessageType

The messageType.

getMessageTypeValue()

public int getMessageTypeValue()

The type of message whether it is an info, warning, or error.

optional .google.cloud.sql.v1.PreCheckResponse.MessageType message_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for messageType.

hasMessage()

public boolean hasMessage()

The message to be displayed to the user.

optional string message = 2;

Returns
Type Description
boolean

Whether the message field is set.

hasMessageType()

public boolean hasMessageType()

The type of message whether it is an info, warning, or error.

optional .google.cloud.sql.v1.PreCheckResponse.MessageType message_type = 3;

Returns
Type Description
boolean

Whether the messageType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PreCheckResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setActionsRequired(int index, String value)

public PreCheckResponse.Builder setActionsRequired(int index, String value)

The actions that the user needs to take. Use repeated for multiple actions.

repeated string actions_required = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The actionsRequired to set.

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

setMessage(String value)

public PreCheckResponse.Builder setMessage(String value)

The message to be displayed to the user.

optional string message = 2;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public PreCheckResponse.Builder setMessageBytes(ByteString value)

The message to be displayed to the user.

optional string message = 2;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

setMessageType(PreCheckResponse.MessageType value)

public PreCheckResponse.Builder setMessageType(PreCheckResponse.MessageType value)

The type of message whether it is an info, warning, or error.

optional .google.cloud.sql.v1.PreCheckResponse.MessageType message_type = 3;

Parameter
Name Description
value PreCheckResponse.MessageType

The messageType to set.

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.

setMessageTypeValue(int value)

public PreCheckResponse.Builder setMessageTypeValue(int value)

The type of message whether it is an info, warning, or error.

optional .google.cloud.sql.v1.PreCheckResponse.MessageType message_type = 3;

Parameter
Name Description
value int

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

Returns
Type Description
PreCheckResponse.Builder

This builder for chaining.