Class SqlResult.Column.Builder (0.52.0)

public static final class SqlResult.Column.Builder extends GeneratedMessage.Builder<SqlResult.Column.Builder> implements SqlResult.ColumnOrBuilder

Contains the name and datatype of a column in a SQL Result.

Protobuf type google.cloud.oracledatabase.v1.SqlResult.Column

Static Methods

getDescriptor()

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

Methods

build()

public SqlResult.Column build()
Returns
Type Description
SqlResult.Column

buildPartial()

public SqlResult.Column buildPartial()
Returns
Type Description
SqlResult.Column

clear()

public SqlResult.Column.Builder clear()
Returns
Type Description
SqlResult.Column.Builder
Overrides

clearName()

public SqlResult.Column.Builder clearName()

Required. Name of the column.

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

Returns
Type Description
SqlResult.Column.Builder

This builder for chaining.

clearType()

public SqlResult.Column.Builder clearType()

Required. Database-specific type name (e.g., "VARCHAR2(255)", "NUMBER", "DATE", "CLOB")

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SqlResult.Column.Builder

This builder for chaining.

getDefaultInstanceForType()

public SqlResult.Column getDefaultInstanceForType()
Returns
Type Description
SqlResult.Column

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the column.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the column.

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

Returns
Type Description
ByteString

The bytes for name.

getType()

public String getType()

Required. Database-specific type name (e.g., "VARCHAR2(255)", "NUMBER", "DATE", "CLOB")

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Required. Database-specific type name (e.g., "VARCHAR2(255)", "NUMBER", "DATE", "CLOB")

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SqlResult.Column other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public SqlResult.Column.Builder setName(String value)

Required. Name of the column.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SqlResult.Column.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SqlResult.Column.Builder setNameBytes(ByteString value)

Required. Name of the column.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SqlResult.Column.Builder

This builder for chaining.

setType(String value)

public SqlResult.Column.Builder setType(String value)

Required. Database-specific type name (e.g., "VARCHAR2(255)", "NUMBER", "DATE", "CLOB")

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
SqlResult.Column.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public SqlResult.Column.Builder setTypeBytes(ByteString value)

Required. Database-specific type name (e.g., "VARCHAR2(255)", "NUMBER", "DATE", "CLOB")

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
SqlResult.Column.Builder

This builder for chaining.