Class SqlParameter (0.52.0)

public final class SqlParameter extends GeneratedMessage implements SqlParameterOrBuilder

Represents a bind variable (parameter) for SQL execution.

Protobuf type google.cloud.oracledatabase.v1.SqlParameter

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TYPE_NAME_FIELD_NUMBER

public static final int TYPE_NAME_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SqlParameter getDefaultInstance()
Returns
Type Description
SqlParameter

getDescriptor()

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

newBuilder()

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

newBuilder(SqlParameter prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SqlParameter getDefaultInstanceForType()
Returns
Type Description
SqlParameter

getName()

public String getName()

Optional. The name of the SQL bind parameter (excluding the leading colon, e.g. "id"). If omitted, parameters bind positionally based on their order in the list.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The name of the SQL bind parameter (excluding the leading colon, e.g. "id"). If omitted, parameters bind positionally based on their order in the list.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTypeName()

public String getTypeName()

Optional. Optional: Datatype hint for the parameter (e.g., "VARCHAR2", "NUMBER", "DATE", "TIMESTAMP"). If omitted, the Oracle driver will infer the type from the value string.

string type_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The typeName.

getTypeNameBytes()

public ByteString getTypeNameBytes()

Optional. Optional: Datatype hint for the parameter (e.g., "VARCHAR2", "NUMBER", "DATE", "TIMESTAMP"). If omitted, the Oracle driver will infer the type from the value string.

string type_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for typeName.

getValue()

public Value getValue()

Required. Use protobuf.Value so clients can pass ints, bools, and strings natively.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Value

The value.

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

Required. Use protobuf.Value so clients can pass ints, bools, and strings natively.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ValueOrBuilder

hasValue()

public boolean hasValue()

Required. Use protobuf.Value so clients can pass ints, bools, and strings natively.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the value 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 SqlParameter.Builder newBuilderForType()
Returns
Type Description
SqlParameter.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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