public static final class StructType.Field.Builder extends GeneratedMessageV3.Builder<StructType.Field.Builder> implements StructType.FieldOrBuilder
Message representing a single field of a struct.Protobuf type
google.spanner.v1.StructType.Field
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public StructType.Field build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public StructType.Field buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public StructType.Field.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<StructType.Field.Builder>
public StructType.Field.Builder mergeFrom(StructType.Field other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public StructType.Field.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<StructType.Field.Builder>
IOException
public String getName()
The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `"Word"` in the query `"SELECT 'hello' AS Word"`), or the column name (e.g., `"ColName"` in the query `"SELECT ColName FROM Table"`). Some columns might have an empty name (e.g., `"SELECT UPPER(ColName)"`). Note that a query result can contain multiple fields with the same name.
string name = 1;
getName
in interface StructType.FieldOrBuilder
public ByteString getNameBytes()
The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `"Word"` in the query `"SELECT 'hello' AS Word"`), or the column name (e.g., `"ColName"` in the query `"SELECT ColName FROM Table"`). Some columns might have an empty name (e.g., `"SELECT UPPER(ColName)"`). Note that a query result can contain multiple fields with the same name.
string name = 1;
getNameBytes
in interface StructType.FieldOrBuilder
public StructType.Field.Builder setName(String value)
The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `"Word"` in the query `"SELECT 'hello' AS Word"`), or the column name (e.g., `"ColName"` in the query `"SELECT ColName FROM Table"`). Some columns might have an empty name (e.g., `"SELECT UPPER(ColName)"`). Note that a query result can contain multiple fields with the same name.
string name = 1;
value
- The name to set.public StructType.Field.Builder clearName()
The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `"Word"` in the query `"SELECT 'hello' AS Word"`), or the column name (e.g., `"ColName"` in the query `"SELECT ColName FROM Table"`). Some columns might have an empty name (e.g., `"SELECT UPPER(ColName)"`). Note that a query result can contain multiple fields with the same name.
string name = 1;
public StructType.Field.Builder setNameBytes(ByteString value)
The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `"Word"` in the query `"SELECT 'hello' AS Word"`), or the column name (e.g., `"ColName"` in the query `"SELECT ColName FROM Table"`). Some columns might have an empty name (e.g., `"SELECT UPPER(ColName)"`). Note that a query result can contain multiple fields with the same name.
string name = 1;
value
- The bytes for name to set.public boolean hasType()
The type of the field.
.google.spanner.v1.Type type = 2;
hasType
in interface StructType.FieldOrBuilder
public Type getType()
The type of the field.
.google.spanner.v1.Type type = 2;
getType
in interface StructType.FieldOrBuilder
public StructType.Field.Builder setType(Type value)
The type of the field.
.google.spanner.v1.Type type = 2;
public StructType.Field.Builder setType(Type.Builder builderForValue)
The type of the field.
.google.spanner.v1.Type type = 2;
public StructType.Field.Builder mergeType(Type value)
The type of the field.
.google.spanner.v1.Type type = 2;
public StructType.Field.Builder clearType()
The type of the field.
.google.spanner.v1.Type type = 2;
public Type.Builder getTypeBuilder()
The type of the field.
.google.spanner.v1.Type type = 2;
public TypeOrBuilder getTypeOrBuilder()
The type of the field.
.google.spanner.v1.Type type = 2;
getTypeOrBuilder
in interface StructType.FieldOrBuilder
public final StructType.Field.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
public final StructType.Field.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<StructType.Field.Builder>
Copyright © 2022 Google LLC. All rights reserved.