Class ColumnMetadata.Builder (6.58.0)

public static final class ColumnMetadata.Builder extends GeneratedMessageV3.Builder<ColumnMetadata.Builder> implements ColumnMetadataOrBuilder

ColumnMetadata represents metadata of a single column.

Protobuf type google.spanner.executor.v1.ColumnMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ColumnMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

build()

public ColumnMetadata build()
Returns
TypeDescription
ColumnMetadata

buildPartial()

public ColumnMetadata buildPartial()
Returns
TypeDescription
ColumnMetadata

clear()

public ColumnMetadata.Builder clear()
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ColumnMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

clearName()

public ColumnMetadata.Builder clearName()

Column name.

string name = 1;

Returns
TypeDescription
ColumnMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ColumnMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

clearType()

public ColumnMetadata.Builder clearType()

Column type.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
ColumnMetadata.Builder

clone()

public ColumnMetadata.Builder clone()
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

getDefaultInstanceForType()

public ColumnMetadata getDefaultInstanceForType()
Returns
TypeDescription
ColumnMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Column name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Column name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getType()

public Type getType()

Column type.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
Type

The type.

getTypeBuilder()

public Type.Builder getTypeBuilder()

Column type.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
Type.Builder

getTypeOrBuilder()

public TypeOrBuilder getTypeOrBuilder()

Column type.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
TypeOrBuilder

hasType()

public boolean hasType()

Column type.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ColumnMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ColumnMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

mergeFrom(ColumnMetadata other)

public ColumnMetadata.Builder mergeFrom(ColumnMetadata other)
Parameter
NameDescription
otherColumnMetadata
Returns
TypeDescription
ColumnMetadata.Builder

mergeType(Type value)

public ColumnMetadata.Builder mergeType(Type value)

Column type.

.google.spanner.v1.Type type = 2;

Parameter
NameDescription
valueType
Returns
TypeDescription
ColumnMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ColumnMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ColumnMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

setName(String value)

public ColumnMetadata.Builder setName(String value)

Column name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ColumnMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ColumnMetadata.Builder setNameBytes(ByteString value)

Column name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ColumnMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ColumnMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ColumnMetadata.Builder
Overrides

setType(Type value)

public ColumnMetadata.Builder setType(Type value)

Column type.

.google.spanner.v1.Type type = 2;

Parameter
NameDescription
valueType
Returns
TypeDescription
ColumnMetadata.Builder

setType(Type.Builder builderForValue)

public ColumnMetadata.Builder setType(Type.Builder builderForValue)

Column type.

.google.spanner.v1.Type type = 2;

Parameter
NameDescription
builderForValueType.Builder
Returns
TypeDescription
ColumnMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ColumnMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ColumnMetadata.Builder
Overrides