public static final class Type.Builder extends GeneratedMessageV3.Builder<Type.Builder> implements TypeOrBuilder
Type
indicates the type of a Cloud Spanner value, as might be stored in a
table cell or returned from an SQL query.
Protobuf type google.spanner.v1.Type
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Type.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Type buildPartial()
Returns
clear()
public Type.Builder clear()
Returns
Overrides
clearArrayElementType()
public Type.Builder clearArrayElementType()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
clearCode()
public Type.Builder clearCode()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public Type.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Type.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearStructType()
public Type.Builder clearStructType()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
clone()
public Type.Builder clone()
Returns
Overrides
getArrayElementType()
public Type getArrayElementType()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
Type | Description |
Type | The arrayElementType.
|
getArrayElementTypeBuilder()
public Type.Builder getArrayElementTypeBuilder()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
getArrayElementTypeOrBuilder()
public TypeOrBuilder getArrayElementTypeOrBuilder()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
getCode()
public TypeCode getCode()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getCodeValue()
public int getCodeValue()
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The enum numeric value on the wire for code.
|
getDefaultInstanceForType()
public Type getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getStructType()
public StructType getStructType()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
getStructTypeBuilder()
public StructType.Builder getStructTypeBuilder()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
getStructTypeOrBuilder()
public StructTypeOrBuilder getStructTypeOrBuilder()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
hasArrayElementType()
public boolean hasArrayElementType()
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Returns
Type | Description |
boolean | Whether the arrayElementType field is set.
|
hasStructType()
public boolean hasStructType()
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Returns
Type | Description |
boolean | Whether the structType field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeArrayElementType(Type value)
public Type.Builder mergeArrayElementType(Type value)
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Parameter
Returns
public Type.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Type.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Type other)
public Type.Builder mergeFrom(Type other)
Parameter
Returns
mergeStructType(StructType value)
public Type.Builder mergeStructType(StructType value)
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Type.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setArrayElementType(Type value)
public Type.Builder setArrayElementType(Type value)
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Parameter
Returns
setArrayElementType(Type.Builder builderForValue)
public Type.Builder setArrayElementType(Type.Builder builderForValue)
If code == ARRAY, then array_element_type
is the type of the array elements.
.google.spanner.v1.Type array_element_type = 2;
Parameter
Returns
setCode(TypeCode value)
public Type.Builder setCode(TypeCode value)
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | TypeCode
The code to set.
|
Returns
setCodeValue(int value)
public Type.Builder setCodeValue(int value)
Required. The TypeCode for this type.
.google.spanner.v1.TypeCode code = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | int
The enum numeric value on the wire for code to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Type.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Type.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setStructType(StructType value)
public Type.Builder setStructType(StructType value)
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Parameter
Returns
setStructType(StructType.Builder builderForValue)
public Type.Builder setStructType(StructType.Builder builderForValue)
If code == STRUCT, then struct_type
provides type information for the struct's fields.
.google.spanner.v1.StructType struct_type = 3;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Type.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides