Interface EntityOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Entity, Entity.Builder

    public interface EntityOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasKey

        boolean hasKey()
         The entity's key.
        
         An entity must have a key, unless otherwise documented (for example,
         an entity in `Value.entity_value` may have no key).
         An entity's kind is its key path's last element's kind,
         or null if it has no key.
         
        .google.datastore.v1.Key key = 1;
        Returns:
        Whether the key field is set.
      • getKey

        Key getKey()
         The entity's key.
        
         An entity must have a key, unless otherwise documented (for example,
         an entity in `Value.entity_value` may have no key).
         An entity's kind is its key path's last element's kind,
         or null if it has no key.
         
        .google.datastore.v1.Key key = 1;
        Returns:
        The key.
      • getKeyOrBuilder

        KeyOrBuilder getKeyOrBuilder()
         The entity's key.
        
         An entity must have a key, unless otherwise documented (for example,
         an entity in `Value.entity_value` may have no key).
         An entity's kind is its key path's last element's kind,
         or null if it has no key.
         
        .google.datastore.v1.Key key = 1;
      • getPropertiesCount

        int getPropertiesCount()
         The entity's properties.
         The map's keys are property names.
         A property name matching regex `__.*__` is reserved.
         A reserved property name is forbidden in certain documented contexts.
         The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
         be empty.
         
        map<string, .google.datastore.v1.Value> properties = 3;
      • containsProperties

        boolean containsProperties​(String key)
         The entity's properties.
         The map's keys are property names.
         A property name matching regex `__.*__` is reserved.
         A reserved property name is forbidden in certain documented contexts.
         The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
         be empty.
         
        map<string, .google.datastore.v1.Value> properties = 3;
      • getPropertiesMap

        Map<String,​Value> getPropertiesMap()
         The entity's properties.
         The map's keys are property names.
         A property name matching regex `__.*__` is reserved.
         A reserved property name is forbidden in certain documented contexts.
         The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
         be empty.
         
        map<string, .google.datastore.v1.Value> properties = 3;
      • getPropertiesOrDefault

        Value getPropertiesOrDefault​(String key,
                                     Value defaultValue)
         The entity's properties.
         The map's keys are property names.
         A property name matching regex `__.*__` is reserved.
         A reserved property name is forbidden in certain documented contexts.
         The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
         be empty.
         
        map<string, .google.datastore.v1.Value> properties = 3;
      • getPropertiesOrThrow

        Value getPropertiesOrThrow​(String key)
         The entity's properties.
         The map's keys are property names.
         A property name matching regex `__.*__` is reserved.
         A reserved property name is forbidden in certain documented contexts.
         The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
         be empty.
         
        map<string, .google.datastore.v1.Value> properties = 3;