Class BaseEntity.Builder<K extends IncompleteKey,​B extends BaseEntity.Builder<K,​B>>

    • Method Detail

      • key

        protected K key()
      • setProperties

        protected B setProperties​(Map<String,​Value<?>> properties)
      • setKey

        public B setKey​(K key)
        Sets the key for the entity.
      • clear

        public B clear()
        Clears all the properties.
      • remove

        public B remove​(String name)
        Removes a property with the given name.
      • set

        public B set​(String name,
                     Value<?> value)
        Sets a property.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     String value)
        Sets a property of type StringValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     String first,
                     String second,
                     String... others)
        Sets a list property containing elements of type StringValue.
        Parameters:
        name - name of the property
        first - the first string in the list
        second - the second string in the list
        others - other strings in the list
      • set

        public B set​(String name,
                     long value)
        Sets a property of type LongValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     long first,
                     long second,
                     long... others)
        Sets a list property containing elements of type LongValue.
        Parameters:
        name - name of the property
        first - the first long in the list
        second - the second long in the list
        others - other longs in the list
      • set

        public B set​(String name,
                     double value)
        Sets a property of type DoubleValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     double first,
                     double second,
                     double... others)
        Sets a list property containing elements of type DoubleValue.
        Parameters:
        name - name of the property
        first - the first double in the list
        second - the second double in the list
        others - other doubles in the list
      • set

        public B set​(String name,
                     boolean value)
        Sets a property of type BooleanValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     boolean first,
                     boolean second,
                     boolean... others)
        Sets a list property containing elements of type BooleanValue.
        Parameters:
        name - name of the property
        first - the first boolean in the list
        second - the second boolean in the list
        others - other booleans in the list
      • set

        public B set​(String name,
                     com.google.cloud.Timestamp value)
        Sets a property of type TimestampValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     com.google.cloud.Timestamp first,
                     com.google.cloud.Timestamp second,
                     com.google.cloud.Timestamp... others)
        Sets a list property containing elements of type TimestampValue.
        Parameters:
        name - name of the property
        first - the first Timestamp in the list
        second - the second Timestamp in the list
        others - other Timestamps in the list
      • set

        public B set​(String name,
                     LatLng value)
        Sets a property of type LatLng.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     LatLng first,
                     LatLng second,
                     LatLng... others)
        Sets a list property containing elements of type LatLng.
        Parameters:
        name - name of the property
        first - the first LatLng in the list
        second - the second LatLng in the list
        others - other LatLngs in the list
      • set

        public B set​(String name,
                     Key value)
        Sets a property of type KeyValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     Key first,
                     Key second,
                     Key... others)
        Sets a list property containing elements of type KeyValue.
        Parameters:
        name - name of the property
        first - the first Key in the list
        second - the second Key in the list
        others - other Keys in the list
      • set

        public B set​(String name,
                     FullEntity<?> value)
        Sets a property of type EntityValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     List<? extends Value<?>> values)
        Sets a property of type ListValue.
        Parameters:
        name - name of the property
        values - list of values associated with the property
      • set

        public B set​(String name,
                     Value<?> first,
                     Value<?> second,
                     Value<?>... others)
        Sets a property of type ListValue.
        Parameters:
        name - name of the property
        first - the first value in the list
        second - the second value in the list
        others - other values in the list
      • set

        public B set​(String name,
                     Blob value)
        Sets a property of type BlobValue.
        Parameters:
        name - name of the property
        value - value associated with the property
      • set

        public B set​(String name,
                     Blob first,
                     Blob second,
                     Blob... others)
        Sets a list property containing elements of type BlobValue.
        Parameters:
        name - name of the property
        first - the first Blob in the list
        second - the second Blob in the list
        others - other Blobs in the list
      • setNull

        public B setNull​(String name)
        Sets a property of type NullValue.
        Parameters:
        name - name of the property