public static final class StructType.Field.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder> implements StructType.FieldOrBuilder
Message representing a single field of a struct.Protobuf type
google.spanner.v1.StructType.Field| Modifier and Type | Method and Description |
|---|---|
StructType.Field.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StructType.Field |
build() |
StructType.Field |
buildPartial() |
StructType.Field.Builder |
clear() |
StructType.Field.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StructType.Field.Builder |
clearName()
The name of the field.
|
StructType.Field.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StructType.Field.Builder |
clearType()
The type of the field.
|
StructType.Field.Builder |
clone() |
StructType.Field |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The name of the field.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the field.
|
Type |
getType()
The type of the field.
|
Type.Builder |
getTypeBuilder()
The type of the field.
|
TypeOrBuilder |
getTypeOrBuilder()
The type of the field.
|
boolean |
hasType()
The type of the field.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StructType.Field.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StructType.Field.Builder |
mergeFrom(com.google.protobuf.Message other) |
StructType.Field.Builder |
mergeFrom(StructType.Field other) |
StructType.Field.Builder |
mergeType(Type value)
The type of the field.
|
StructType.Field.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StructType.Field.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StructType.Field.Builder |
setName(String value)
The name of the field.
|
StructType.Field.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the field.
|
StructType.Field.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StructType.Field.Builder |
setType(Type.Builder builderForValue)
The type of the field.
|
StructType.Field.Builder |
setType(Type value)
The type of the field.
|
StructType.Field.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StructType.Field build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StructType.Field buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StructType.Field.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StructType.Field.Builder>public StructType.Field.Builder mergeFrom(StructType.Field other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public StructType.Field.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StructType.Field.Builder>IOExceptionpublic 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.FieldOrBuilderpublic com.google.protobuf.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.FieldOrBuilderpublic 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(com.google.protobuf.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.FieldOrBuilderpublic Type getType()
The type of the field.
.google.spanner.v1.Type type = 2;getType in interface StructType.FieldOrBuilderpublic 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.FieldOrBuilderpublic final StructType.Field.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>public final StructType.Field.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>Copyright © 2020 Google LLC. All rights reserved.