Package com.google.spanner.executor.v1
Class Value.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
com.google.spanner.executor.v1.Value.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ValueOrBuilder,Cloneable
- Enclosing class:
- Value
public static final class Value.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
implements ValueOrBuilder
Value represents a single value that can be read or written to/from Spanner.Protobuf type
google.spanner.executor.v1.Value-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Type of array element.Array type value.Bool type value.Bytes type value, stored in CORD.Date type value.Double type value.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Int type value.If set, holds the sentinel value for the transaction CommitTimestamp.If is_null is set, then this value is null.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) String type value, stored in CORD.Struct type value.Timestamp type value.clone()Type of array element.Type of array element.Type of array element.Array type value.Array type value.Array type value.booleanBool type value.com.google.protobuf.ByteStringBytes type value, stored in CORD.intDate type value.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleDouble type value.longInt type value.booleanIf set, holds the sentinel value for the transaction CommitTimestamp.booleanIf is_null is set, then this value is null.String type value, stored in CORD.com.google.protobuf.ByteStringString type value, stored in CORD.Struct type value.Struct type value.Struct type value.com.google.protobuf.TimestampTimestamp type value.com.google.protobuf.Timestamp.BuilderTimestamp type value.com.google.protobuf.TimestampOrBuilderTimestamp type value.booleanType of array element.booleanArray type value.booleanBool type value.booleanBytes type value, stored in CORD.booleanDate type value.booleanDouble type value.booleanInt type value.booleanIf set, holds the sentinel value for the transaction CommitTimestamp.booleanIf is_null is set, then this value is null.booleanString type value, stored in CORD.booleanStruct type value.booleanTimestamp type value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeArrayType(Type value) Type of array element.mergeArrayValue(ValueList value) Array type value.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStructValue(ValueList value) Struct type value.mergeTimestampValue(com.google.protobuf.Timestamp value) Timestamp type value.final Value.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setArrayType(Type value) Type of array element.setArrayType(Type.Builder builderForValue) Type of array element.setArrayValue(ValueList value) Array type value.setArrayValue(ValueList.Builder builderForValue) Array type value.setBoolValue(boolean value) Bool type value.setBytesValue(com.google.protobuf.ByteString value) Bytes type value, stored in CORD.setDateDaysValue(int value) Date type value.setDoubleValue(double value) Double type value.setIntValue(long value) Int type value.setIsCommitTimestamp(boolean value) If set, holds the sentinel value for the transaction CommitTimestamp.setIsNull(boolean value) If is_null is set, then this value is null.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStringValue(String value) String type value, stored in CORD.setStringValueBytes(com.google.protobuf.ByteString value) String type value, stored in CORD.setStructValue(ValueList value) Struct type value.setStructValue(ValueList.Builder builderForValue) Struct type value.setTimestampValue(com.google.protobuf.Timestamp value) Timestamp type value.setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp type value.final Value.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
setRepeatedField
public Value.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
addRepeatedField
public Value.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Value.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeFrom
public Value.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Value.Builder>- Throws:
IOException
-
getValueTypeCase
- Specified by:
getValueTypeCasein interfaceValueOrBuilder
-
clearValueType
-
hasIsNull
public boolean hasIsNull()If is_null is set, then this value is null.
bool is_null = 1;- Specified by:
hasIsNullin interfaceValueOrBuilder- Returns:
- Whether the isNull field is set.
-
getIsNull
public boolean getIsNull()If is_null is set, then this value is null.
bool is_null = 1;- Specified by:
getIsNullin interfaceValueOrBuilder- Returns:
- The isNull.
-
setIsNull
If is_null is set, then this value is null.
bool is_null = 1;- Parameters:
value- The isNull to set.- Returns:
- This builder for chaining.
-
clearIsNull
If is_null is set, then this value is null.
bool is_null = 1;- Returns:
- This builder for chaining.
-
hasIntValue
public boolean hasIntValue()Int type value. It's used for all integer number types, like int32 and int64.
int64 int_value = 2;- Specified by:
hasIntValuein interfaceValueOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public long getIntValue()Int type value. It's used for all integer number types, like int32 and int64.
int64 int_value = 2;- Specified by:
getIntValuein interfaceValueOrBuilder- Returns:
- The intValue.
-
setIntValue
Int type value. It's used for all integer number types, like int32 and int64.
int64 int_value = 2;- Parameters:
value- The intValue to set.- Returns:
- This builder for chaining.
-
clearIntValue
Int type value. It's used for all integer number types, like int32 and int64.
int64 int_value = 2;- Returns:
- This builder for chaining.
-
hasBoolValue
public boolean hasBoolValue()Bool type value.
bool bool_value = 3;- Specified by:
hasBoolValuein interfaceValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Bool type value.
bool bool_value = 3;- Specified by:
getBoolValuein interfaceValueOrBuilder- Returns:
- The boolValue.
-
setBoolValue
Bool type value.
bool bool_value = 3;- Parameters:
value- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
Bool type value.
bool bool_value = 3;- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()Double type value. It's used for all float point types, like float and double.
double double_value = 4;- Specified by:
hasDoubleValuein interfaceValueOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()Double type value. It's used for all float point types, like float and double.
double double_value = 4;- Specified by:
getDoubleValuein interfaceValueOrBuilder- Returns:
- The doubleValue.
-
setDoubleValue
Double type value. It's used for all float point types, like float and double.
double double_value = 4;- Parameters:
value- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
Double type value. It's used for all float point types, like float and double.
double double_value = 4;- Returns:
- This builder for chaining.
-
hasBytesValue
public boolean hasBytesValue()Bytes type value, stored in CORD. It's also used for PROTO type value.
bytes bytes_value = 5;- Specified by:
hasBytesValuein interfaceValueOrBuilder- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()Bytes type value, stored in CORD. It's also used for PROTO type value.
bytes bytes_value = 5;- Specified by:
getBytesValuein interfaceValueOrBuilder- Returns:
- The bytesValue.
-
setBytesValue
Bytes type value, stored in CORD. It's also used for PROTO type value.
bytes bytes_value = 5;- Parameters:
value- The bytesValue to set.- Returns:
- This builder for chaining.
-
clearBytesValue
Bytes type value, stored in CORD. It's also used for PROTO type value.
bytes bytes_value = 5;- Returns:
- This builder for chaining.
-
hasStringValue
public boolean hasStringValue()String type value, stored in CORD.
string string_value = 6;- Specified by:
hasStringValuein interfaceValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
String type value, stored in CORD.
string string_value = 6;- Specified by:
getStringValuein interfaceValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()String type value, stored in CORD.
string string_value = 6;- Specified by:
getStringValueBytesin interfaceValueOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
String type value, stored in CORD.
string string_value = 6;- Parameters:
value- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
String type value, stored in CORD.
string string_value = 6;- Returns:
- This builder for chaining.
-
setStringValueBytes
String type value, stored in CORD.
string string_value = 6;- Parameters:
value- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
hasStructValue
public boolean hasStructValue()Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7;- Specified by:
hasStructValuein interfaceValueOrBuilder- Returns:
- Whether the structValue field is set.
-
getStructValue
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7;- Specified by:
getStructValuein interfaceValueOrBuilder- Returns:
- The structValue.
-
setStructValue
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7; -
setStructValue
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7; -
mergeStructValue
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7; -
clearStructValue
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7; -
getStructValueBuilder
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7; -
getStructValueOrBuilder
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7;- Specified by:
getStructValueOrBuilderin interfaceValueOrBuilder
-
hasTimestampValue
public boolean hasTimestampValue()Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8;- Specified by:
hasTimestampValuein interfaceValueOrBuilder- Returns:
- Whether the timestampValue field is set.
-
getTimestampValue
public com.google.protobuf.Timestamp getTimestampValue()Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8;- Specified by:
getTimestampValuein interfaceValueOrBuilder- Returns:
- The timestampValue.
-
setTimestampValue
Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8; -
setTimestampValue
Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8; -
mergeTimestampValue
Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8; -
clearTimestampValue
Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8; -
getTimestampValueBuilder
public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8; -
getTimestampValueOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8;- Specified by:
getTimestampValueOrBuilderin interfaceValueOrBuilder
-
hasDateDaysValue
public boolean hasDateDaysValue()Date type value. Date is specified as a number of days since Unix epoch.
int32 date_days_value = 9;- Specified by:
hasDateDaysValuein interfaceValueOrBuilder- Returns:
- Whether the dateDaysValue field is set.
-
getDateDaysValue
public int getDateDaysValue()Date type value. Date is specified as a number of days since Unix epoch.
int32 date_days_value = 9;- Specified by:
getDateDaysValuein interfaceValueOrBuilder- Returns:
- The dateDaysValue.
-
setDateDaysValue
Date type value. Date is specified as a number of days since Unix epoch.
int32 date_days_value = 9;- Parameters:
value- The dateDaysValue to set.- Returns:
- This builder for chaining.
-
clearDateDaysValue
Date type value. Date is specified as a number of days since Unix epoch.
int32 date_days_value = 9;- Returns:
- This builder for chaining.
-
hasIsCommitTimestamp
public boolean hasIsCommitTimestamp()If set, holds the sentinel value for the transaction CommitTimestamp.
bool is_commit_timestamp = 10;- Specified by:
hasIsCommitTimestampin interfaceValueOrBuilder- Returns:
- Whether the isCommitTimestamp field is set.
-
getIsCommitTimestamp
public boolean getIsCommitTimestamp()If set, holds the sentinel value for the transaction CommitTimestamp.
bool is_commit_timestamp = 10;- Specified by:
getIsCommitTimestampin interfaceValueOrBuilder- Returns:
- The isCommitTimestamp.
-
setIsCommitTimestamp
If set, holds the sentinel value for the transaction CommitTimestamp.
bool is_commit_timestamp = 10;- Parameters:
value- The isCommitTimestamp to set.- Returns:
- This builder for chaining.
-
clearIsCommitTimestamp
If set, holds the sentinel value for the transaction CommitTimestamp.
bool is_commit_timestamp = 10;- Returns:
- This builder for chaining.
-
hasArrayValue
public boolean hasArrayValue()Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11;- Specified by:
hasArrayValuein interfaceValueOrBuilder- Returns:
- Whether the arrayValue field is set.
-
getArrayValue
Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11;- Specified by:
getArrayValuein interfaceValueOrBuilder- Returns:
- The arrayValue.
-
setArrayValue
Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11; -
setArrayValue
Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11; -
mergeArrayValue
Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11; -
clearArrayValue
Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11; -
getArrayValueBuilder
Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11; -
getArrayValueOrBuilder
Array type value. The underlying Valuelist should have values that have the same type.
.google.spanner.executor.v1.ValueList array_value = 11;- Specified by:
getArrayValueOrBuilderin interfaceValueOrBuilder
-
hasArrayType
public boolean hasArrayType()Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12;- Specified by:
hasArrayTypein interfaceValueOrBuilder- Returns:
- Whether the arrayType field is set.
-
getArrayType
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12;- Specified by:
getArrayTypein interfaceValueOrBuilder- Returns:
- The arrayType.
-
setArrayType
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12; -
setArrayType
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12; -
mergeArrayType
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12; -
clearArrayType
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12; -
getArrayTypeBuilder
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12; -
getArrayTypeOrBuilder
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12;- Specified by:
getArrayTypeOrBuilderin interfaceValueOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-