Package com.google.datastore.v1
Class PropertyTransform
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.datastore.v1.PropertyTransform
- All Implemented Interfaces:
PropertyTransformOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class PropertyTransform
extends com.google.protobuf.GeneratedMessageV3
implements PropertyTransformOrBuilder
A transformation of an entity property.Protobuf type
google.datastore.v1.PropertyTransform- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA transformation of an entity property.static enumA value that is calculated by the server.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAppends the given elements in order if they are not already present in the current property value.Appends the given elements in order if they are not already present in the current property value.static PropertyTransformstatic final com.google.protobuf.Descriptors.DescriptorAdds the given value to the property's current value.Adds the given value to the property's current value.Sets the property to the maximum of its current value and the given value.Sets the property to the maximum of its current value and the given value.Sets the property to the minimum of its current value and the given value.Sets the property to the minimum of its current value and the given value.com.google.protobuf.Parser<PropertyTransform>Optional.com.google.protobuf.ByteStringOptional.Removes all of the given elements from the array in the property.Removes all of the given elements from the array in the property.intSets the property to the given server value.intSets the property to the given server value.booleanAppends the given elements in order if they are not already present in the current property value.inthashCode()booleanAdds the given value to the property's current value.booleanSets the property to the maximum of its current value and the given value.booleanSets the property to the minimum of its current value and the given value.booleanRemoves all of the given elements from the array in the property.booleanSets the property to the given server value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic PropertyTransform.Builderstatic PropertyTransform.BuildernewBuilder(PropertyTransform prototype) protected PropertyTransform.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static PropertyTransformparseDelimitedFrom(InputStream input) static PropertyTransformparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PropertyTransformparseFrom(byte[] data) static PropertyTransformparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PropertyTransformparseFrom(com.google.protobuf.ByteString data) static PropertyTransformparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PropertyTransformparseFrom(com.google.protobuf.CodedInputStream input) static PropertyTransformparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PropertyTransformparseFrom(InputStream input) static PropertyTransformparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PropertyTransformparseFrom(ByteBuffer data) static PropertyTransformparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PropertyTransform>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PROPERTY_FIELD_NUMBER
public static final int PROPERTY_FIELD_NUMBER- See Also:
-
SET_TO_SERVER_VALUE_FIELD_NUMBER
public static final int SET_TO_SERVER_VALUE_FIELD_NUMBER- See Also:
-
INCREMENT_FIELD_NUMBER
public static final int INCREMENT_FIELD_NUMBER- See Also:
-
MAXIMUM_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER- See Also:
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER- See Also:
-
APPEND_MISSING_ELEMENTS_FIELD_NUMBER
public static final int APPEND_MISSING_ELEMENTS_FIELD_NUMBER- See Also:
-
REMOVE_ALL_FROM_ARRAY_FIELD_NUMBER
public static final int REMOVE_ALL_FROM_ARRAY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getTransformTypeCase
- Specified by:
getTransformTypeCasein interfacePropertyTransformOrBuilder
-
getProperty
Optional. The name of the property. Property paths (a list of property names separated by dots (`.`)) may be used to refer to properties inside entity values. For example `foo.bar` means the property `bar` inside the entity property `foo`. If a property name contains a dot `.` or a backlslash `\`, then that name must be escaped.
string property = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertyin interfacePropertyTransformOrBuilder- Returns:
- The property.
-
getPropertyBytes
public com.google.protobuf.ByteString getPropertyBytes()Optional. The name of the property. Property paths (a list of property names separated by dots (`.`)) may be used to refer to properties inside entity values. For example `foo.bar` means the property `bar` inside the entity property `foo`. If a property name contains a dot `.` or a backlslash `\`, then that name must be escaped.
string property = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertyBytesin interfacePropertyTransformOrBuilder- Returns:
- The bytes for property.
-
hasSetToServerValue
public boolean hasSetToServerValue()Sets the property to the given server value.
.google.datastore.v1.PropertyTransform.ServerValue set_to_server_value = 2;- Specified by:
hasSetToServerValuein interfacePropertyTransformOrBuilder- Returns:
- Whether the setToServerValue field is set.
-
getSetToServerValueValue
public int getSetToServerValueValue()Sets the property to the given server value.
.google.datastore.v1.PropertyTransform.ServerValue set_to_server_value = 2;- Specified by:
getSetToServerValueValuein interfacePropertyTransformOrBuilder- Returns:
- The enum numeric value on the wire for setToServerValue.
-
getSetToServerValue
Sets the property to the given server value.
.google.datastore.v1.PropertyTransform.ServerValue set_to_server_value = 2;- Specified by:
getSetToServerValuein interfacePropertyTransformOrBuilder- Returns:
- The setToServerValue.
-
hasIncrement
public boolean hasIncrement()Adds the given value to the property's current value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If either of the given value or the current property value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follows IEEE 754 semantics. If there is positive/negative integer overflow, the property is resolved to the largest magnitude positive/negative integer.
.google.datastore.v1.Value increment = 3;- Specified by:
hasIncrementin interfacePropertyTransformOrBuilder- Returns:
- Whether the increment field is set.
-
getIncrement
Adds the given value to the property's current value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If either of the given value or the current property value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follows IEEE 754 semantics. If there is positive/negative integer overflow, the property is resolved to the largest magnitude positive/negative integer.
.google.datastore.v1.Value increment = 3;- Specified by:
getIncrementin interfacePropertyTransformOrBuilder- Returns:
- The increment.
-
getIncrementOrBuilder
Adds the given value to the property's current value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If either of the given value or the current property value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follows IEEE 754 semantics. If there is positive/negative integer overflow, the property is resolved to the largest magnitude positive/negative integer.
.google.datastore.v1.Value increment = 3;- Specified by:
getIncrementOrBuilderin interfacePropertyTransformOrBuilder
-
hasMaximum
public boolean hasMaximum()Sets the property to the maximum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If a maximum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
.google.datastore.v1.Value maximum = 4;- Specified by:
hasMaximumin interfacePropertyTransformOrBuilder- Returns:
- Whether the maximum field is set.
-
getMaximum
Sets the property to the maximum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If a maximum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
.google.datastore.v1.Value maximum = 4;- Specified by:
getMaximumin interfacePropertyTransformOrBuilder- Returns:
- The maximum.
-
getMaximumOrBuilder
Sets the property to the maximum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If a maximum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
.google.datastore.v1.Value maximum = 4;- Specified by:
getMaximumOrBuilderin interfacePropertyTransformOrBuilder
-
hasMinimum
public boolean hasMinimum()Sets the property to the minimum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the input value. If a minimum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
.google.datastore.v1.Value minimum = 5;- Specified by:
hasMinimumin interfacePropertyTransformOrBuilder- Returns:
- Whether the minimum field is set.
-
getMinimum
Sets the property to the minimum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the input value. If a minimum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
.google.datastore.v1.Value minimum = 5;- Specified by:
getMinimumin interfacePropertyTransformOrBuilder- Returns:
- The minimum.
-
getMinimumOrBuilder
Sets the property to the minimum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the input value. If a minimum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
.google.datastore.v1.Value minimum = 5;- Specified by:
getMinimumOrBuilderin interfacePropertyTransformOrBuilder
-
hasAppendMissingElements
public boolean hasAppendMissingElements()Appends the given elements in order if they are not already present in the current property value. If the property is not an array, or if the property does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and the null value is equal to the null value. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform result will be the null value.
.google.datastore.v1.ArrayValue append_missing_elements = 6;- Specified by:
hasAppendMissingElementsin interfacePropertyTransformOrBuilder- Returns:
- Whether the appendMissingElements field is set.
-
getAppendMissingElements
Appends the given elements in order if they are not already present in the current property value. If the property is not an array, or if the property does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and the null value is equal to the null value. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform result will be the null value.
.google.datastore.v1.ArrayValue append_missing_elements = 6;- Specified by:
getAppendMissingElementsin interfacePropertyTransformOrBuilder- Returns:
- The appendMissingElements.
-
getAppendMissingElementsOrBuilder
Appends the given elements in order if they are not already present in the current property value. If the property is not an array, or if the property does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and the null value is equal to the null value. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform result will be the null value.
.google.datastore.v1.ArrayValue append_missing_elements = 6;- Specified by:
getAppendMissingElementsOrBuilderin interfacePropertyTransformOrBuilder
-
hasRemoveAllFromArray
public boolean hasRemoveAllFromArray()Removes all of the given elements from the array in the property. If the property is not an array, or if the property does not yet exist, it is set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and the null value is equal to the null value. This will remove all equivalent values if there are duplicates. The corresponding transform result will be the null value.
.google.datastore.v1.ArrayValue remove_all_from_array = 7;- Specified by:
hasRemoveAllFromArrayin interfacePropertyTransformOrBuilder- Returns:
- Whether the removeAllFromArray field is set.
-
getRemoveAllFromArray
Removes all of the given elements from the array in the property. If the property is not an array, or if the property does not yet exist, it is set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and the null value is equal to the null value. This will remove all equivalent values if there are duplicates. The corresponding transform result will be the null value.
.google.datastore.v1.ArrayValue remove_all_from_array = 7;- Specified by:
getRemoveAllFromArrayin interfacePropertyTransformOrBuilder- Returns:
- The removeAllFromArray.
-
getRemoveAllFromArrayOrBuilder
Removes all of the given elements from the array in the property. If the property is not an array, or if the property does not yet exist, it is set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and the null value is equal to the null value. This will remove all equivalent values if there are duplicates. The corresponding transform result will be the null value.
.google.datastore.v1.ArrayValue remove_all_from_array = 7;- Specified by:
getRemoveAllFromArrayOrBuilderin interfacePropertyTransformOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PropertyTransform parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PropertyTransform parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PropertyTransform parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PropertyTransform parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PropertyTransform parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PropertyTransform parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PropertyTransform parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PropertyTransform parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PropertyTransform parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PropertyTransform parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PropertyTransform.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-