com.google.datastore.v1.EntityOrBuilder Maven / Gradle / Ivy
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/datastore/v1/entity.proto
package com.google.datastore.v1;
public interface EntityOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.datastore.v1.Entity)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* 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;
*
* @return Whether the key field is set.
*/
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;
*
* @return The key.
*/
com.google.datastore.v1.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;
*/
com.google.datastore.v1.KeyOrBuilder getKeyOrBuilder();
/**
*
*
*
* 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;
*/
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;
*/
boolean containsProperties(java.lang.String key);
/** Use {@link #getPropertiesMap()} instead. */
@java.lang.Deprecated
java.util.Map getProperties();
/**
*
*
*
* 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;
*/
java.util.Map 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;
*/
/* nullable */
com.google.datastore.v1.Value getPropertiesOrDefault(
java.lang.String key,
/* nullable */
com.google.datastore.v1.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;
*/
com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy