public static final class SqlParameter.Builder extends GeneratedMessage.Builder<SqlParameter.Builder> implements SqlParameterOrBuilderRepresents a bind variable (parameter) for SQL execution.
Protobuf type google.cloud.oracledatabase.v1.SqlParameter
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SqlParameter.BuilderImplements
SqlParameterOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SqlParameter build()| Returns | |
|---|---|
| Type | Description |
SqlParameter |
|
buildPartial()
public SqlParameter buildPartial()| Returns | |
|---|---|
| Type | Description |
SqlParameter |
|
clear()
public SqlParameter.Builder clear()| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
|
clearName()
public SqlParameter.Builder clearName()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 |
SqlParameter.Builder |
This builder for chaining. |
clearTypeName()
public SqlParameter.Builder clearTypeName()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 |
SqlParameter.Builder |
This builder for chaining. |
clearValue()
public SqlParameter.Builder clearValue()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 |
SqlParameter.Builder |
|
getDefaultInstanceForType()
public SqlParameter getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SqlParameter |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
getValueBuilder()
public Value.Builder getValueBuilder()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 |
Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SqlParameter other)
public SqlParameter.Builder mergeFrom(SqlParameter other)| Parameter | |
|---|---|
| Name | Description |
other |
SqlParameter |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SqlParameter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SqlParameter.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
|
mergeValue(Value value)
public SqlParameter.Builder mergeValue(Value value)Required. Use protobuf.Value so clients can pass ints, bools, and strings natively.
.google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
|
setName(String value)
public SqlParameter.Builder setName(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SqlParameter.Builder setNameBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
This builder for chaining. |
setTypeName(String value)
public SqlParameter.Builder setTypeName(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe typeName to set. |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
This builder for chaining. |
setTypeNameBytes(ByteString value)
public SqlParameter.Builder setTypeNameBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for typeName to set. |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
This builder for chaining. |
setValue(Value value)
public SqlParameter.Builder setValue(Value value)Required. Use protobuf.Value so clients can pass ints, bools, and strings natively.
.google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
|
setValue(Value.Builder builderForValue)
public SqlParameter.Builder setValue(Value.Builder builderForValue)Required. Use protobuf.Value so clients can pass ints, bools, and strings natively.
.google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
SqlParameter.Builder |
|