Class PreCheckResponse (0.1.0)

public final class PreCheckResponse extends GeneratedMessage implements PreCheckResponseOrBuilder

Structured PreCheckResponse containing message, type, and required actions.

Protobuf type google.cloud.sql.v1.PreCheckResponse

Static Fields

ACTIONS_REQUIRED_FIELD_NUMBER

public static final int ACTIONS_REQUIRED_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_TYPE_FIELD_NUMBER

public static final int MESSAGE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PreCheckResponse getDefaultInstance()
Returns
Type Description
PreCheckResponse

getDescriptor()

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

newBuilder()

public static PreCheckResponse.Builder newBuilder()
Returns
Type Description
PreCheckResponse.Builder

newBuilder(PreCheckResponse prototype)

public static PreCheckResponse.Builder newBuilder(PreCheckResponse prototype)
Parameter
Name Description
prototype PreCheckResponse
Returns
Type Description
PreCheckResponse.Builder

parseDelimitedFrom(InputStream input)

public static PreCheckResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreCheckResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PreCheckResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PreCheckResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PreCheckResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PreCheckResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PreCheckResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PreCheckResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PreCheckResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreCheckResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PreCheckResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PreCheckResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreCheckResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PreCheckResponse> parser()
Returns
Type Description
Parser<PreCheckResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<PreCheckResponse> getParserForType()
Returns
Type Description
Parser<PreCheckResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PreCheckResponse.Builder newBuilderForType()
Returns
Type Description
PreCheckResponse.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PreCheckResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PreCheckResponse.Builder
Overrides

toBuilder()

public PreCheckResponse.Builder toBuilder()
Returns
Type Description
PreCheckResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException