genproto: google.golang.org/genproto/googleapis/datastore/v1 Index | Files

package datastore

import "google.golang.org/genproto/googleapis/datastore/v1"

Index

Package Files

datastore.pb.go entity.pb.go query.pb.go

Variables

var (
    CommitRequest_Mode_name = map[int32]string{
        0:  "MODE_UNSPECIFIED",
        1:  "TRANSACTIONAL",
        2:  "NON_TRANSACTIONAL",
    }
    CommitRequest_Mode_value = map[string]int32{
        "MODE_UNSPECIFIED":  0,
        "TRANSACTIONAL":     1,
        "NON_TRANSACTIONAL": 2,
    }
)

Enum value maps for CommitRequest_Mode.

var (
    ReadOptions_ReadConsistency_name = map[int32]string{
        0:  "READ_CONSISTENCY_UNSPECIFIED",
        1:  "STRONG",
        2:  "EVENTUAL",
    }
    ReadOptions_ReadConsistency_value = map[string]int32{
        "READ_CONSISTENCY_UNSPECIFIED": 0,
        "STRONG":                       1,
        "EVENTUAL":                     2,
    }
)

Enum value maps for ReadOptions_ReadConsistency.

var (
    EntityResult_ResultType_name = map[int32]string{
        0:  "RESULT_TYPE_UNSPECIFIED",
        1:  "FULL",
        2:  "PROJECTION",
        3:  "KEY_ONLY",
    }
    EntityResult_ResultType_value = map[string]int32{
        "RESULT_TYPE_UNSPECIFIED": 0,
        "FULL":                    1,
        "PROJECTION":              2,
        "KEY_ONLY":                3,
    }
)

Enum value maps for EntityResult_ResultType.

var (
    PropertyOrder_Direction_name = map[int32]string{
        0:  "DIRECTION_UNSPECIFIED",
        1:  "ASCENDING",
        2:  "DESCENDING",
    }
    PropertyOrder_Direction_value = map[string]int32{
        "DIRECTION_UNSPECIFIED": 0,
        "ASCENDING":             1,
        "DESCENDING":            2,
    }
)

Enum value maps for PropertyOrder_Direction.

var (
    CompositeFilter_Operator_name = map[int32]string{
        0:  "OPERATOR_UNSPECIFIED",
        1:  "AND",
    }
    CompositeFilter_Operator_value = map[string]int32{
        "OPERATOR_UNSPECIFIED": 0,
        "AND":                  1,
    }
)

Enum value maps for CompositeFilter_Operator.

var (
    PropertyFilter_Operator_name = map[int32]string{
        0:  "OPERATOR_UNSPECIFIED",
        1:  "LESS_THAN",
        2:  "LESS_THAN_OR_EQUAL",
        3:  "GREATER_THAN",
        4:  "GREATER_THAN_OR_EQUAL",
        5:  "EQUAL",
        11: "HAS_ANCESTOR",
    }
    PropertyFilter_Operator_value = map[string]int32{
        "OPERATOR_UNSPECIFIED":  0,
        "LESS_THAN":             1,
        "LESS_THAN_OR_EQUAL":    2,
        "GREATER_THAN":          3,
        "GREATER_THAN_OR_EQUAL": 4,
        "EQUAL":                 5,
        "HAS_ANCESTOR":          11,
    }
)

Enum value maps for PropertyFilter_Operator.

var (
    QueryResultBatch_MoreResultsType_name = map[int32]string{
        0:  "MORE_RESULTS_TYPE_UNSPECIFIED",
        1:  "NOT_FINISHED",
        2:  "MORE_RESULTS_AFTER_LIMIT",
        4:  "MORE_RESULTS_AFTER_CURSOR",
        3:  "NO_MORE_RESULTS",
    }
    QueryResultBatch_MoreResultsType_value = map[string]int32{
        "MORE_RESULTS_TYPE_UNSPECIFIED": 0,
        "NOT_FINISHED":                  1,
        "MORE_RESULTS_AFTER_LIMIT":      2,
        "MORE_RESULTS_AFTER_CURSOR":     4,
        "NO_MORE_RESULTS":               3,
    }
)

Enum value maps for QueryResultBatch_MoreResultsType.

var File_google_datastore_v1_datastore_proto protoreflect.FileDescriptor
var File_google_datastore_v1_entity_proto protoreflect.FileDescriptor
var File_google_datastore_v1_query_proto protoreflect.FileDescriptor

func RegisterDatastoreServer Uses

func RegisterDatastoreServer(s *grpc.Server, srv DatastoreServer)

type AllocateIdsRequest Uses

type AllocateIdsRequest struct {

    // Required. The ID of the project against which to make the request.
    ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // Required. A list of keys with incomplete key paths for which to allocate IDs.
    // No key may be reserved/read-only.
    Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
    // contains filtered or unexported fields
}

The request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].

func (*AllocateIdsRequest) Descriptor Uses

func (*AllocateIdsRequest) Descriptor() ([]byte, []int)

Deprecated: Use AllocateIdsRequest.ProtoReflect.Descriptor instead.

func (*AllocateIdsRequest) GetKeys Uses

func (x *AllocateIdsRequest) GetKeys() []*Key

func (*AllocateIdsRequest) GetProjectId Uses

func (x *AllocateIdsRequest) GetProjectId() string

func (*AllocateIdsRequest) ProtoMessage Uses

func (*AllocateIdsRequest) ProtoMessage()

func (*AllocateIdsRequest) ProtoReflect Uses

func (x *AllocateIdsRequest) ProtoReflect() protoreflect.Message

func (*AllocateIdsRequest) Reset Uses

func (x *AllocateIdsRequest) Reset()

func (*AllocateIdsRequest) String Uses

func (x *AllocateIdsRequest) String() string

type AllocateIdsResponse Uses

type AllocateIdsResponse struct {

    // The keys specified in the request (in the same order), each with
    // its key path completed with a newly allocated ID.
    Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
    // contains filtered or unexported fields
}

The response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].

func (*AllocateIdsResponse) Descriptor Uses

func (*AllocateIdsResponse) Descriptor() ([]byte, []int)

Deprecated: Use AllocateIdsResponse.ProtoReflect.Descriptor instead.

func (*AllocateIdsResponse) GetKeys Uses

func (x *AllocateIdsResponse) GetKeys() []*Key

func (*AllocateIdsResponse) ProtoMessage Uses

func (*AllocateIdsResponse) ProtoMessage()

func (*AllocateIdsResponse) ProtoReflect Uses

func (x *AllocateIdsResponse) ProtoReflect() protoreflect.Message

func (*AllocateIdsResponse) Reset Uses

func (x *AllocateIdsResponse) Reset()

func (*AllocateIdsResponse) String Uses

func (x *AllocateIdsResponse) String() string

type ArrayValue Uses

type ArrayValue struct {

    // Values in the array.
    // The order of values in an array is preserved as long as all values have
    // identical settings for 'exclude_from_indexes'.
    Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
    // contains filtered or unexported fields
}

An array value.

func (*ArrayValue) Descriptor Uses

func (*ArrayValue) Descriptor() ([]byte, []int)

Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead.

func (*ArrayValue) GetValues Uses

func (x *ArrayValue) GetValues() []*Value

func (*ArrayValue) ProtoMessage Uses

func (*ArrayValue) ProtoMessage()

func (*ArrayValue) ProtoReflect Uses

func (x *ArrayValue) ProtoReflect() protoreflect.Message

func (*ArrayValue) Reset Uses

func (x *ArrayValue) Reset()

func (*ArrayValue) String Uses

func (x *ArrayValue) String() string

type BeginTransactionRequest Uses

type BeginTransactionRequest struct {

    // Required. The ID of the project against which to make the request.
    ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // Options for a new transaction.
    TransactionOptions *TransactionOptions `protobuf:"bytes,10,opt,name=transaction_options,json=transactionOptions,proto3" json:"transaction_options,omitempty"`
    // contains filtered or unexported fields
}

The request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].

func (*BeginTransactionRequest) Descriptor Uses

func (*BeginTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use BeginTransactionRequest.ProtoReflect.Descriptor instead.

func (*BeginTransactionRequest) GetProjectId Uses

func (x *BeginTransactionRequest) GetProjectId() string

func (*BeginTransactionRequest) GetTransactionOptions Uses

func (x *BeginTransactionRequest) GetTransactionOptions() *TransactionOptions

func (*BeginTransactionRequest) ProtoMessage Uses

func (*BeginTransactionRequest) ProtoMessage()

func (*BeginTransactionRequest) ProtoReflect Uses

func (x *BeginTransactionRequest) ProtoReflect() protoreflect.Message

func (*BeginTransactionRequest) Reset Uses

func (x *BeginTransactionRequest) Reset()

func (*BeginTransactionRequest) String Uses

func (x *BeginTransactionRequest) String() string

type BeginTransactionResponse Uses

type BeginTransactionResponse struct {

    // The transaction identifier (always present).
    Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
    // contains filtered or unexported fields
}

The response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].

func (*BeginTransactionResponse) Descriptor Uses

func (*BeginTransactionResponse) Descriptor() ([]byte, []int)

Deprecated: Use BeginTransactionResponse.ProtoReflect.Descriptor instead.

func (*BeginTransactionResponse) GetTransaction Uses

func (x *BeginTransactionResponse) GetTransaction() []byte

func (*BeginTransactionResponse) ProtoMessage Uses

func (*BeginTransactionResponse) ProtoMessage()

func (*BeginTransactionResponse) ProtoReflect Uses

func (x *BeginTransactionResponse) ProtoReflect() protoreflect.Message

func (*BeginTransactionResponse) Reset Uses

func (x *BeginTransactionResponse) Reset()

func (*BeginTransactionResponse) String Uses

func (x *BeginTransactionResponse) String() string

type CommitRequest Uses

type CommitRequest struct {

    // Required. The ID of the project against which to make the request.
    ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // The type of commit to perform. Defaults to `TRANSACTIONAL`.
    Mode CommitRequest_Mode `protobuf:"varint,5,opt,name=mode,proto3,enum=google.datastore.v1.CommitRequest_Mode" json:"mode,omitempty"`
    // Must be set when mode is `TRANSACTIONAL`.
    //
    // Types that are assignable to TransactionSelector:
    //	*CommitRequest_Transaction
    TransactionSelector isCommitRequest_TransactionSelector `protobuf_oneof:"transaction_selector"`
    // The mutations to perform.
    //
    // When mode is `TRANSACTIONAL`, mutations affecting a single entity are
    // applied in order. The following sequences of mutations affecting a single
    // entity are not permitted in a single `Commit` request:
    //
    // - `insert` followed by `insert`
    // - `update` followed by `insert`
    // - `upsert` followed by `insert`
    // - `delete` followed by `update`
    //
    // When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
    // entity.
    Mutations []*Mutation `protobuf:"bytes,6,rep,name=mutations,proto3" json:"mutations,omitempty"`
    // contains filtered or unexported fields
}

The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].

func (*CommitRequest) Descriptor Uses

func (*CommitRequest) Descriptor() ([]byte, []int)

Deprecated: Use CommitRequest.ProtoReflect.Descriptor instead.

func (*CommitRequest) GetMode Uses

func (x *CommitRequest) GetMode() CommitRequest_Mode

func (*CommitRequest) GetMutations Uses

func (x *CommitRequest) GetMutations() []*Mutation

func (*CommitRequest) GetProjectId Uses

func (x *CommitRequest) GetProjectId() string

func (*CommitRequest) GetTransaction Uses

func (x *CommitRequest) GetTransaction() []byte

func (*CommitRequest) GetTransactionSelector Uses

func (m *CommitRequest) GetTransactionSelector() isCommitRequest_TransactionSelector

func (*CommitRequest) ProtoMessage Uses

func (*CommitRequest) ProtoMessage()

func (*CommitRequest) ProtoReflect Uses

func (x *CommitRequest) ProtoReflect() protoreflect.Message

func (*CommitRequest) Reset Uses

func (x *CommitRequest) Reset()

func (*CommitRequest) String Uses

func (x *CommitRequest) String() string

type CommitRequest_Mode Uses

type CommitRequest_Mode int32

The modes available for commits.

const (
    // Unspecified. This value must not be used.
    CommitRequest_MODE_UNSPECIFIED CommitRequest_Mode = 0
    // Transactional: The mutations are either all applied, or none are applied.
    // Learn about transactions
    // [here](https://cloud.google.com/datastore/docs/concepts/transactions).
    CommitRequest_TRANSACTIONAL CommitRequest_Mode = 1
    // Non-transactional: The mutations may not apply as all or none.
    CommitRequest_NON_TRANSACTIONAL CommitRequest_Mode = 2
)

func (CommitRequest_Mode) Descriptor Uses

func (CommitRequest_Mode) Descriptor() protoreflect.EnumDescriptor

func (CommitRequest_Mode) Enum Uses

func (x CommitRequest_Mode) Enum() *CommitRequest_Mode

func (CommitRequest_Mode) EnumDescriptor Uses

func (CommitRequest_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommitRequest_Mode.Descriptor instead.

func (CommitRequest_Mode) Number Uses

func (x CommitRequest_Mode) Number() protoreflect.EnumNumber

func (CommitRequest_Mode) String Uses

func (x CommitRequest_Mode) String() string

func (CommitRequest_Mode) Type Uses

func (CommitRequest_Mode) Type() protoreflect.EnumType

type CommitRequest_Transaction Uses

type CommitRequest_Transaction struct {
    // The identifier of the transaction associated with the commit. A
    // transaction identifier is returned by a call to
    // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3,oneof"`
}

type CommitResponse Uses

type CommitResponse struct {

    // The result of performing the mutations.
    // The i-th mutation result corresponds to the i-th mutation in the request.
    MutationResults []*MutationResult `protobuf:"bytes,3,rep,name=mutation_results,json=mutationResults,proto3" json:"mutation_results,omitempty"`
    // The number of index entries updated during the commit, or zero if none were
    // updated.
    IndexUpdates int32 `protobuf:"varint,4,opt,name=index_updates,json=indexUpdates,proto3" json:"index_updates,omitempty"`
    // contains filtered or unexported fields
}

The response for [Datastore.Commit][google.datastore.v1.Datastore.Commit].

func (*CommitResponse) Descriptor Uses

func (*CommitResponse) Descriptor() ([]byte, []int)

Deprecated: Use CommitResponse.ProtoReflect.Descriptor instead.

func (*CommitResponse) GetIndexUpdates Uses

func (x *CommitResponse) GetIndexUpdates() int32

func (*CommitResponse) GetMutationResults Uses

func (x *CommitResponse) GetMutationResults() []*MutationResult

func (*CommitResponse) ProtoMessage Uses

func (*CommitResponse) ProtoMessage()

func (*CommitResponse) ProtoReflect Uses

func (x *CommitResponse) ProtoReflect() protoreflect.Message

func (*CommitResponse) Reset Uses

func (x *CommitResponse) Reset()

func (*CommitResponse) String Uses

func (x *CommitResponse) String() string

type CompositeFilter Uses

type CompositeFilter struct {

    // The operator for combining multiple filters.
    Op  CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.datastore.v1.CompositeFilter_Operator" json:"op,omitempty"`
    // The list of filters to combine.
    // Must contain at least one filter.
    Filters []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
    // contains filtered or unexported fields
}

A filter that merges multiple other filters using the given operator.

func (*CompositeFilter) Descriptor Uses

func (*CompositeFilter) Descriptor() ([]byte, []int)

Deprecated: Use CompositeFilter.ProtoReflect.Descriptor instead.

func (*CompositeFilter) GetFilters Uses

func (x *CompositeFilter) GetFilters() []*Filter

func (*CompositeFilter) GetOp Uses

func (x *CompositeFilter) GetOp() CompositeFilter_Operator

func (*CompositeFilter) ProtoMessage Uses

func (*CompositeFilter) ProtoMessage()

func (*CompositeFilter) ProtoReflect Uses

func (x *CompositeFilter) ProtoReflect() protoreflect.Message

func (*CompositeFilter) Reset Uses

func (x *CompositeFilter) Reset()

func (*CompositeFilter) String Uses

func (x *CompositeFilter) String() string

type CompositeFilter_Operator Uses

type CompositeFilter_Operator int32

A composite filter operator.

const (
    // Unspecified. This value must not be used.
    CompositeFilter_OPERATOR_UNSPECIFIED CompositeFilter_Operator = 0
    // The results are required to satisfy each of the combined filters.
    CompositeFilter_AND CompositeFilter_Operator = 1
)

func (CompositeFilter_Operator) Descriptor Uses

func (CompositeFilter_Operator) Descriptor() protoreflect.EnumDescriptor

func (CompositeFilter_Operator) Enum Uses

func (x CompositeFilter_Operator) Enum() *CompositeFilter_Operator

func (CompositeFilter_Operator) EnumDescriptor Uses

func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use CompositeFilter_Operator.Descriptor instead.

func (CompositeFilter_Operator) Number Uses

func (x CompositeFilter_Operator) Number() protoreflect.EnumNumber

func (CompositeFilter_Operator) String Uses

func (x CompositeFilter_Operator) String() string

func (CompositeFilter_Operator) Type Uses

func (CompositeFilter_Operator) Type() protoreflect.EnumType

type DatastoreClient Uses

type DatastoreClient interface {
    // Looks up entities by key.
    Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error)
    // Queries for entities.
    RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (*RunQueryResponse, error)
    // Begins a new transaction.
    BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error)
    // Commits a transaction, optionally creating, deleting or modifying some
    // entities.
    Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
    // Rolls back a transaction.
    Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*RollbackResponse, error)
    // Allocates IDs for the given keys, which is useful for referencing an entity
    // before it is inserted.
    AllocateIds(ctx context.Context, in *AllocateIdsRequest, opts ...grpc.CallOption) (*AllocateIdsResponse, error)
    // Prevents the supplied keys' IDs from being auto-allocated by Cloud
    // Datastore.
    ReserveIds(ctx context.Context, in *ReserveIdsRequest, opts ...grpc.CallOption) (*ReserveIdsResponse, error)
}

DatastoreClient is the client API for Datastore service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDatastoreClient Uses

func NewDatastoreClient(cc grpc.ClientConnInterface) DatastoreClient

type DatastoreServer Uses

type DatastoreServer interface {
    // Looks up entities by key.
    Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
    // Queries for entities.
    RunQuery(context.Context, *RunQueryRequest) (*RunQueryResponse, error)
    // Begins a new transaction.
    BeginTransaction(context.Context, *BeginTransactionRequest) (*BeginTransactionResponse, error)
    // Commits a transaction, optionally creating, deleting or modifying some
    // entities.
    Commit(context.Context, *CommitRequest) (*CommitResponse, error)
    // Rolls back a transaction.
    Rollback(context.Context, *RollbackRequest) (*RollbackResponse, error)
    // Allocates IDs for the given keys, which is useful for referencing an entity
    // before it is inserted.
    AllocateIds(context.Context, *AllocateIdsRequest) (*AllocateIdsResponse, error)
    // Prevents the supplied keys' IDs from being auto-allocated by Cloud
    // Datastore.
    ReserveIds(context.Context, *ReserveIdsRequest) (*ReserveIdsResponse, error)
}

DatastoreServer is the server API for Datastore service.

type Entity Uses

type Entity struct {

    // 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.
    Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    // 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 name must not contain more than 500 characters.
    // The name cannot be `""`.
    Properties map[string]*Value `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // contains filtered or unexported fields
}

A Datastore data object.

An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message.

func (*Entity) Descriptor Uses

func (*Entity) Descriptor() ([]byte, []int)

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetKey Uses

func (x *Entity) GetKey() *Key

func (*Entity) GetProperties Uses

func (x *Entity) GetProperties() map[string]*Value

func (*Entity) ProtoMessage Uses

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect Uses

func (x *Entity) ProtoReflect() protoreflect.Message

func (*Entity) Reset Uses

func (x *Entity) Reset()

func (*Entity) String Uses

func (x *Entity) String() string

type EntityResult Uses

type EntityResult struct {

    // The resulting entity.
    Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
    // The version of the entity, a strictly positive number that monotonically
    // increases with changes to the entity.
    //
    // This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
    // results.
    //
    // For [missing][google.datastore.v1.LookupResponse.missing] entities in `LookupResponse`, this
    // is the version of the snapshot that was used to look up the entity, and it
    // is always set except for eventually consistent reads.
    Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
    // A cursor that points to the position after the result entity.
    // Set only when the `EntityResult` is part of a `QueryResultBatch` message.
    Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
    // contains filtered or unexported fields
}

The result of fetching an entity from Datastore.

func (*EntityResult) Descriptor Uses

func (*EntityResult) Descriptor() ([]byte, []int)

Deprecated: Use EntityResult.ProtoReflect.Descriptor instead.

func (*EntityResult) GetCursor Uses

func (x *EntityResult) GetCursor() []byte

func (*EntityResult) GetEntity Uses

func (x *EntityResult) GetEntity() *Entity

func (*EntityResult) GetVersion Uses

func (x *EntityResult) GetVersion() int64

func (*EntityResult) ProtoMessage Uses

func (*EntityResult) ProtoMessage()

func (*EntityResult) ProtoReflect Uses

func (x *EntityResult) ProtoReflect() protoreflect.Message

func (*EntityResult) Reset Uses

func (x *EntityResult) Reset()

func (*EntityResult) String Uses

func (x *EntityResult) String() string

type EntityResult_ResultType Uses

type EntityResult_ResultType int32

Specifies what data the 'entity' field contains. A `ResultType` is either implied (for example, in `LookupResponse.missing` from `datastore.proto`, it is always `KEY_ONLY`) or specified by context (for example, in message `QueryResultBatch`, field `entity_result_type` specifies a `ResultType` for all the values in field `entity_results`).

const (
    // Unspecified. This value is never used.
    EntityResult_RESULT_TYPE_UNSPECIFIED EntityResult_ResultType = 0
    // The key and properties.
    EntityResult_FULL EntityResult_ResultType = 1
    // A projected subset of properties. The entity may have no key.
    EntityResult_PROJECTION EntityResult_ResultType = 2
    // Only the key.
    EntityResult_KEY_ONLY EntityResult_ResultType = 3
)

func (EntityResult_ResultType) Descriptor Uses

func (EntityResult_ResultType) Descriptor() protoreflect.EnumDescriptor

func (EntityResult_ResultType) Enum Uses

func (x EntityResult_ResultType) Enum() *EntityResult_ResultType

func (EntityResult_ResultType) EnumDescriptor Uses

func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EntityResult_ResultType.Descriptor instead.

func (EntityResult_ResultType) Number Uses

func (x EntityResult_ResultType) Number() protoreflect.EnumNumber

func (EntityResult_ResultType) String Uses

func (x EntityResult_ResultType) String() string

func (EntityResult_ResultType) Type Uses

func (EntityResult_ResultType) Type() protoreflect.EnumType

type Filter Uses

type Filter struct {

    // The type of filter.
    //
    // Types that are assignable to FilterType:
    //	*Filter_CompositeFilter
    //	*Filter_PropertyFilter
    FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
    // contains filtered or unexported fields
}

A holder for any type of filter.

func (*Filter) Descriptor Uses

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetCompositeFilter Uses

func (x *Filter) GetCompositeFilter() *CompositeFilter

func (*Filter) GetFilterType Uses

func (m *Filter) GetFilterType() isFilter_FilterType

func (*Filter) GetPropertyFilter Uses

func (x *Filter) GetPropertyFilter() *PropertyFilter

func (*Filter) ProtoMessage Uses

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect Uses

func (x *Filter) ProtoReflect() protoreflect.Message

func (*Filter) Reset Uses

func (x *Filter) Reset()

func (*Filter) String Uses

func (x *Filter) String() string

type Filter_CompositeFilter Uses

type Filter_CompositeFilter struct {
    // A composite filter.
    CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"`
}

type Filter_PropertyFilter Uses

type Filter_PropertyFilter struct {
    // A filter on a property.
    PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,proto3,oneof"`
}

type GqlQuery Uses

type GqlQuery struct {

    // A string of the format described
    // [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
    QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"`
    // When false, the query string must not contain any literals and instead must
    // bind all values. For example,
    // `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
    // `SELECT * FROM Kind WHERE a = @value` is.
    AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals,proto3" json:"allow_literals,omitempty"`
    // For each non-reserved named binding site in the query string, there must be
    // a named parameter with that name, but not necessarily the inverse.
    //
    // Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
    // `__.*__`, and must not be `""`.
    NamedBindings map[string]*GqlQueryParameter `protobuf:"bytes,5,rep,name=named_bindings,json=namedBindings,proto3" json:"named_bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Numbered binding site @1 references the first numbered parameter,
    // effectively using 1-based indexing, rather than the usual 0.
    //
    // For each binding site numbered i in `query_string`, there must be an i-th
    // numbered parameter. The inverse must also be true.
    PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings,proto3" json:"positional_bindings,omitempty"`
    // contains filtered or unexported fields
}

A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).

func (*GqlQuery) Descriptor Uses

func (*GqlQuery) Descriptor() ([]byte, []int)

Deprecated: Use GqlQuery.ProtoReflect.Descriptor instead.

func (*GqlQuery) GetAllowLiterals Uses

func (x *GqlQuery) GetAllowLiterals() bool

func (*GqlQuery) GetNamedBindings Uses

func (x *GqlQuery) GetNamedBindings() map[string]*GqlQueryParameter

func (*GqlQuery) GetPositionalBindings Uses

func (x *GqlQuery) GetPositionalBindings() []*GqlQueryParameter

func (*GqlQuery) GetQueryString Uses

func (x *GqlQuery) GetQueryString() string

func (*GqlQuery) ProtoMessage Uses

func (*GqlQuery) ProtoMessage()

func (*GqlQuery) ProtoReflect Uses

func (x *GqlQuery) ProtoReflect() protoreflect.Message

func (*GqlQuery) Reset Uses

func (x *GqlQuery) Reset()

func (*GqlQuery) String Uses

func (x *GqlQuery) String() string

type GqlQueryParameter Uses

type GqlQueryParameter struct {

    // The type of parameter.
    //
    // Types that are assignable to ParameterType:
    //	*GqlQueryParameter_Value
    //	*GqlQueryParameter_Cursor
    ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
    // contains filtered or unexported fields
}

A binding parameter for a GQL query.

func (*GqlQueryParameter) Descriptor Uses

func (*GqlQueryParameter) Descriptor() ([]byte, []int)

Deprecated: Use GqlQueryParameter.ProtoReflect.Descriptor instead.

func (*GqlQueryParameter) GetCursor Uses

func (x *GqlQueryParameter) GetCursor() []byte

func (*GqlQueryParameter) GetParameterType Uses

func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType

func (*GqlQueryParameter) GetValue Uses

func (x *GqlQueryParameter) GetValue() *Value

func (*GqlQueryParameter) ProtoMessage Uses

func (*GqlQueryParameter) ProtoMessage()

func (*GqlQueryParameter) ProtoReflect Uses

func (x *GqlQueryParameter) ProtoReflect() protoreflect.Message

func (*GqlQueryParameter) Reset Uses

func (x *GqlQueryParameter) Reset()

func (*GqlQueryParameter) String Uses

func (x *GqlQueryParameter) String() string

type GqlQueryParameter_Cursor Uses

type GqlQueryParameter_Cursor struct {
    // A query cursor. Query cursors are returned in query
    // result batches.
    Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"`
}

type GqlQueryParameter_Value Uses

type GqlQueryParameter_Value struct {
    // A value parameter.
    Value *Value `protobuf:"bytes,2,opt,name=value,proto3,oneof"`
}

type Key Uses

type Key struct {

    // Entities are partitioned into subsets, currently identified by a project
    // ID and namespace ID.
    // Queries are scoped to a single partition.
    PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
    // The entity path.
    // An entity path consists of one or more elements composed of a kind and a
    // string or numerical identifier, which identify entities. The first
    // element identifies a _root entity_, the second element identifies
    // a _child_ of the root entity, the third element identifies a child of the
    // second entity, and so forth. The entities identified by all prefixes of
    // the path are called the element's _ancestors_.
    //
    // An entity path is always fully complete: *all* of the entity's ancestors
    // are required to be in the path along with the entity identifier itself.
    // The only exception is that in some documented cases, the identifier in the
    // last path element (for the entity) itself may be omitted. For example,
    // the last path element of the key of `Mutation.insert` may have no
    // identifier.
    //
    // A path can never be empty, and a path can have at most 100 elements.
    Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
    // contains filtered or unexported fields
}

A unique identifier for an entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.

func (*Key) Descriptor Uses

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetPartitionId Uses

func (x *Key) GetPartitionId() *PartitionId

func (*Key) GetPath Uses

func (x *Key) GetPath() []*Key_PathElement

func (*Key) ProtoMessage Uses

func (*Key) ProtoMessage()

func (*Key) ProtoReflect Uses

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset Uses

func (x *Key) Reset()

func (*Key) String Uses

func (x *Key) String() string

type Key_PathElement Uses

type Key_PathElement struct {

    // The kind of the entity.
    // A kind matching regex `__.*__` is reserved/read-only.
    // A kind must not contain more than 1500 bytes when UTF-8 encoded.
    // Cannot be `""`.
    Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
    // The type of ID.
    //
    // Types that are assignable to IdType:
    //	*Key_PathElement_Id
    //	*Key_PathElement_Name
    IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
    // contains filtered or unexported fields
}

A (kind, ID/name) pair used to construct a key path.

If either name or ID is set, the element is complete. If neither is set, the element is incomplete.

func (*Key_PathElement) Descriptor Uses

func (*Key_PathElement) Descriptor() ([]byte, []int)

Deprecated: Use Key_PathElement.ProtoReflect.Descriptor instead.

func (*Key_PathElement) GetId Uses

func (x *Key_PathElement) GetId() int64

func (*Key_PathElement) GetIdType Uses

func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType

func (*Key_PathElement) GetKind Uses

func (x *Key_PathElement) GetKind() string

func (*Key_PathElement) GetName Uses

func (x *Key_PathElement) GetName() string

func (*Key_PathElement) ProtoMessage Uses

func (*Key_PathElement) ProtoMessage()

func (*Key_PathElement) ProtoReflect Uses

func (x *Key_PathElement) ProtoReflect() protoreflect.Message

func (*Key_PathElement) Reset Uses

func (x *Key_PathElement) Reset()

func (*Key_PathElement) String Uses

func (x *Key_PathElement) String() string

type Key_PathElement_Id Uses

type Key_PathElement_Id struct {
    // The auto-allocated ID of the entity.
    // Never equal to zero. Values less than zero are discouraged and may not
    // be supported in the future.
    Id int64 `protobuf:"varint,2,opt,name=id,proto3,oneof"`
}

type Key_PathElement_Name Uses

type Key_PathElement_Name struct {
    // The name of the entity.
    // A name matching regex `__.*__` is reserved/read-only.
    // A name must not be more than 1500 bytes when UTF-8 encoded.
    // Cannot be `""`.
    Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
}

type KindExpression Uses

type KindExpression struct {

    // The name of the kind.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

A representation of a kind.

func (*KindExpression) Descriptor Uses

func (*KindExpression) Descriptor() ([]byte, []int)

Deprecated: Use KindExpression.ProtoReflect.Descriptor instead.

func (*KindExpression) GetName Uses

func (x *KindExpression) GetName() string

func (*KindExpression) ProtoMessage Uses

func (*KindExpression) ProtoMessage()

func (*KindExpression) ProtoReflect Uses

func (x *KindExpression) ProtoReflect() protoreflect.Message

func (*KindExpression) Reset Uses

func (x *KindExpression) Reset()

func (*KindExpression) String Uses

func (x *KindExpression) String() string

type LookupRequest Uses

type LookupRequest struct {

    // Required. The ID of the project against which to make the request.
    ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // The options for this lookup request.
    ReadOptions *ReadOptions `protobuf:"bytes,1,opt,name=read_options,json=readOptions,proto3" json:"read_options,omitempty"`
    // Required. Keys of entities to look up.
    Keys []*Key `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"`
    // contains filtered or unexported fields
}

The request for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].

func (*LookupRequest) Descriptor Uses

func (*LookupRequest) Descriptor() ([]byte, []int)

Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.

func (*LookupRequest) GetKeys Uses

func (x *LookupRequest) GetKeys() []*Key

func (*LookupRequest) GetProjectId Uses

func (x *LookupRequest) GetProjectId() string

func (*LookupRequest) GetReadOptions Uses

func (x *LookupRequest) GetReadOptions() *ReadOptions

func (*LookupRequest) ProtoMessage Uses

func (*LookupRequest) ProtoMessage()

func (*LookupRequest) ProtoReflect Uses

func (x *LookupRequest) ProtoReflect() protoreflect.Message

func (*LookupRequest) Reset Uses

func (x *LookupRequest) Reset()

func (*LookupRequest) String Uses

func (x *LookupRequest) String() string

type LookupResponse Uses

type LookupResponse struct {

    // Entities found as `ResultType.FULL` entities. The order of results in this
    // field is undefined and has no relation to the order of the keys in the
    // input.
    Found []*EntityResult `protobuf:"bytes,1,rep,name=found,proto3" json:"found,omitempty"`
    // Entities not found as `ResultType.KEY_ONLY` entities. The order of results
    // in this field is undefined and has no relation to the order of the keys
    // in the input.
    Missing []*EntityResult `protobuf:"bytes,2,rep,name=missing,proto3" json:"missing,omitempty"`
    // A list of keys that were not looked up due to resource constraints. The
    // order of results in this field is undefined and has no relation to the
    // order of the keys in the input.
    Deferred []*Key `protobuf:"bytes,3,rep,name=deferred,proto3" json:"deferred,omitempty"`
    // contains filtered or unexported fields
}

The response for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].

func (*LookupResponse) Descriptor Uses

func (*LookupResponse) Descriptor() ([]byte, []int)

Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.

func (*LookupResponse) GetDeferred Uses

func (x *LookupResponse) GetDeferred() []*Key

func (*LookupResponse) GetFound Uses

func (x *LookupResponse) GetFound() []*EntityResult

func (*LookupResponse) GetMissing Uses

func (x *LookupResponse) GetMissing() []*EntityResult

func (*LookupResponse) ProtoMessage Uses

func (*LookupResponse) ProtoMessage()

func (*LookupResponse) ProtoReflect Uses

func (x *LookupResponse) ProtoReflect() protoreflect.Message

func (*LookupResponse) Reset Uses

func (x *LookupResponse) Reset()

func (*LookupResponse) String Uses

func (x *LookupResponse) String() string

type Mutation Uses

type Mutation struct {

    // The mutation operation.
    //
    // For `insert`, `update`, and `upsert`:
    // - The entity's key must not be reserved/read-only.
    // - No property in the entity may have a reserved name,
    //   not even a property in an entity in a value.
    // - No value in the entity may have meaning 18,
    //   not even a value in an entity in another value.
    //
    // Types that are assignable to Operation:
    //	*Mutation_Insert
    //	*Mutation_Update
    //	*Mutation_Upsert
    //	*Mutation_Delete
    Operation isMutation_Operation `protobuf_oneof:"operation"`
    // When set, the server will detect whether or not this mutation conflicts
    // with the current version of the entity on the server. Conflicting mutations
    // are not applied, and are marked as such in MutationResult.
    //
    // Types that are assignable to ConflictDetectionStrategy:
    //	*Mutation_BaseVersion
    ConflictDetectionStrategy isMutation_ConflictDetectionStrategy `protobuf_oneof:"conflict_detection_strategy"`
    // contains filtered or unexported fields
}

A mutation to apply to an entity.

func (*Mutation) Descriptor Uses

func (*Mutation) Descriptor() ([]byte, []int)

Deprecated: Use Mutation.ProtoReflect.Descriptor instead.

func (*Mutation) GetBaseVersion Uses

func (x *Mutation) GetBaseVersion() int64

func (*Mutation) GetConflictDetectionStrategy Uses

func (m *Mutation) GetConflictDetectionStrategy() isMutation_ConflictDetectionStrategy

func (*Mutation) GetDelete Uses

func (x *Mutation) GetDelete() *Key

func (*Mutation) GetInsert Uses

func (x *Mutation) GetInsert() *Entity

func (*Mutation) GetOperation Uses

func (m *Mutation) GetOperation() isMutation_Operation

func (*Mutation) GetUpdate Uses

func (x *Mutation) GetUpdate() *Entity

func (*Mutation) GetUpsert Uses

func (x *Mutation) GetUpsert() *Entity

func (*Mutation) ProtoMessage Uses

func (*Mutation) ProtoMessage()

func (*Mutation) ProtoReflect Uses

func (x *Mutation) ProtoReflect() protoreflect.Message

func (*Mutation) Reset Uses

func (x *Mutation) Reset()

func (*Mutation) String Uses

func (x *Mutation) String() string

type MutationResult Uses

type MutationResult struct {

    // The automatically allocated key.
    // Set only when the mutation allocated a key.
    Key *Key `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
    // The version of the entity on the server after processing the mutation. If
    // the mutation doesn't change anything on the server, then the version will
    // be the version of the current entity or, if no entity is present, a version
    // that is strictly greater than the version of any previous entity and less
    // than the version of any possible future entity.
    Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
    // Whether a conflict was detected for this mutation. Always false when a
    // conflict detection strategy field is not set in the mutation.
    ConflictDetected bool `protobuf:"varint,5,opt,name=conflict_detected,json=conflictDetected,proto3" json:"conflict_detected,omitempty"`
    // contains filtered or unexported fields
}

The result of applying a mutation.

func (*MutationResult) Descriptor Uses

func (*MutationResult) Descriptor() ([]byte, []int)

Deprecated: Use MutationResult.ProtoReflect.Descriptor instead.

func (*MutationResult) GetConflictDetected Uses

func (x *MutationResult) GetConflictDetected() bool

func (*MutationResult) GetKey Uses

func (x *MutationResult) GetKey() *Key

func (*MutationResult) GetVersion Uses

func (x *MutationResult) GetVersion() int64

func (*MutationResult) ProtoMessage Uses

func (*MutationResult) ProtoMessage()

func (*MutationResult) ProtoReflect Uses

func (x *MutationResult) ProtoReflect() protoreflect.Message

func (*MutationResult) Reset Uses

func (x *MutationResult) Reset()

func (*MutationResult) String Uses

func (x *MutationResult) String() string

type Mutation_BaseVersion Uses

type Mutation_BaseVersion struct {
    // The version of the entity that this mutation is being applied to. If this
    // does not match the current version on the server, the mutation conflicts.
    BaseVersion int64 `protobuf:"varint,8,opt,name=base_version,json=baseVersion,proto3,oneof"`
}

type Mutation_Delete Uses

type Mutation_Delete struct {
    // The key of the entity to delete. The entity may or may not already exist.
    // Must have a complete key path and must not be reserved/read-only.
    Delete *Key `protobuf:"bytes,7,opt,name=delete,proto3,oneof"`
}

type Mutation_Insert Uses

type Mutation_Insert struct {
    // The entity to insert. The entity must not already exist.
    // The entity key's final path element may be incomplete.
    Insert *Entity `protobuf:"bytes,4,opt,name=insert,proto3,oneof"`
}

type Mutation_Update Uses

type Mutation_Update struct {
    // The entity to update. The entity must already exist.
    // Must have a complete key path.
    Update *Entity `protobuf:"bytes,5,opt,name=update,proto3,oneof"`
}

type Mutation_Upsert Uses

type Mutation_Upsert struct {
    // The entity to upsert. The entity may or may not already exist.
    // The entity key's final path element may be incomplete.
    Upsert *Entity `protobuf:"bytes,6,opt,name=upsert,proto3,oneof"`
}

type PartitionId Uses

type PartitionId struct {

    // The ID of the project to which the entities belong.
    ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // If not empty, the ID of the namespace to which the entities belong.
    NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
    // contains filtered or unexported fields
}

A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.

A partition ID contains several dimensions: project ID and namespace ID.

Partition dimensions:

- May be `""`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts.

Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state.

func (*PartitionId) Descriptor Uses

func (*PartitionId) Descriptor() ([]byte, []int)

Deprecated: Use PartitionId.ProtoReflect.Descriptor instead.

func (*PartitionId) GetNamespaceId Uses

func (x *PartitionId) GetNamespaceId() string

func (*PartitionId) GetProjectId Uses

func (x *PartitionId) GetProjectId() string

func (*PartitionId) ProtoMessage Uses

func (*PartitionId) ProtoMessage()

func (*PartitionId) ProtoReflect Uses

func (x *PartitionId) ProtoReflect() protoreflect.Message

func (*PartitionId) Reset Uses

func (x *PartitionId) Reset()

func (*PartitionId) String Uses

func (x *PartitionId) String() string

type Projection Uses

type Projection struct {

    // The property to project.
    Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
    // contains filtered or unexported fields
}

A representation of a property in a projection.

func (*Projection) Descriptor Uses

func (*Projection) Descriptor() ([]byte, []int)

Deprecated: Use Projection.ProtoReflect.Descriptor instead.

func (*Projection) GetProperty Uses

func (x *Projection) GetProperty() *PropertyReference

func (*Projection) ProtoMessage Uses

func (*Projection) ProtoMessage()

func (*Projection) ProtoReflect Uses

func (x *Projection) ProtoReflect() protoreflect.Message

func (*Projection) Reset Uses

func (x *Projection) Reset()

func (*Projection) String Uses

func (x *Projection) String() string

type PropertyFilter Uses

type PropertyFilter struct {

    // The property to filter by.
    Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
    // The operator to filter by.
    Op  PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.datastore.v1.PropertyFilter_Operator" json:"op,omitempty"`
    // The value to compare the property to.
    Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

A filter on a specific property.

func (*PropertyFilter) Descriptor Uses

func (*PropertyFilter) Descriptor() ([]byte, []int)

Deprecated: Use PropertyFilter.ProtoReflect.Descriptor instead.

func (*PropertyFilter) GetOp Uses

func (x *PropertyFilter) GetOp() PropertyFilter_Operator

func (*PropertyFilter) GetProperty Uses

func (x *PropertyFilter) GetProperty() *PropertyReference

func (*PropertyFilter) GetValue Uses

func (x *PropertyFilter) GetValue() *Value

func (*PropertyFilter) ProtoMessage Uses

func (*PropertyFilter) ProtoMessage()

func (*PropertyFilter) ProtoReflect Uses

func (x *PropertyFilter) ProtoReflect() protoreflect.Message

func (*PropertyFilter) Reset Uses

func (x *PropertyFilter) Reset()

func (*PropertyFilter) String Uses

func (x *PropertyFilter) String() string

type PropertyFilter_Operator Uses

type PropertyFilter_Operator int32

A property filter operator.

const (
    // Unspecified. This value must not be used.
    PropertyFilter_OPERATOR_UNSPECIFIED PropertyFilter_Operator = 0
    // Less than.
    PropertyFilter_LESS_THAN PropertyFilter_Operator = 1
    // Less than or equal.
    PropertyFilter_LESS_THAN_OR_EQUAL PropertyFilter_Operator = 2
    // Greater than.
    PropertyFilter_GREATER_THAN PropertyFilter_Operator = 3
    // Greater than or equal.
    PropertyFilter_GREATER_THAN_OR_EQUAL PropertyFilter_Operator = 4
    // Equal.
    PropertyFilter_EQUAL PropertyFilter_Operator = 5
    // Has ancestor.
    PropertyFilter_HAS_ANCESTOR PropertyFilter_Operator = 11
)

func (PropertyFilter_Operator) Descriptor Uses

func (PropertyFilter_Operator) Descriptor() protoreflect.EnumDescriptor

func (PropertyFilter_Operator) Enum Uses

func (x PropertyFilter_Operator) Enum() *PropertyFilter_Operator

func (PropertyFilter_Operator) EnumDescriptor Uses

func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use PropertyFilter_Operator.Descriptor instead.

func (PropertyFilter_Operator) Number Uses

func (x PropertyFilter_Operator) Number() protoreflect.EnumNumber

func (PropertyFilter_Operator) String Uses

func (x PropertyFilter_Operator) String() string

func (PropertyFilter_Operator) Type Uses

func (PropertyFilter_Operator) Type() protoreflect.EnumType

type PropertyOrder Uses

type PropertyOrder struct {

    // The property to order by.
    Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
    // The direction to order by. Defaults to `ASCENDING`.
    Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.v1.PropertyOrder_Direction" json:"direction,omitempty"`
    // contains filtered or unexported fields
}

The desired order for a specific property.

func (*PropertyOrder) Descriptor Uses

func (*PropertyOrder) Descriptor() ([]byte, []int)

Deprecated: Use PropertyOrder.ProtoReflect.Descriptor instead.

func (*PropertyOrder) GetDirection Uses

func (x *PropertyOrder) GetDirection() PropertyOrder_Direction

func (*PropertyOrder) GetProperty Uses

func (x *PropertyOrder) GetProperty() *PropertyReference

func (*PropertyOrder) ProtoMessage Uses

func (*PropertyOrder) ProtoMessage()

func (*PropertyOrder) ProtoReflect Uses

func (x *PropertyOrder) ProtoReflect() protoreflect.Message

func (*PropertyOrder) Reset Uses

func (x *PropertyOrder) Reset()

func (*PropertyOrder) String Uses

func (x *PropertyOrder) String() string

type PropertyOrder_Direction Uses

type PropertyOrder_Direction int32

The sort direction.

const (
    // Unspecified. This value must not be used.
    PropertyOrder_DIRECTION_UNSPECIFIED PropertyOrder_Direction = 0
    // Ascending.
    PropertyOrder_ASCENDING PropertyOrder_Direction = 1
    // Descending.
    PropertyOrder_DESCENDING PropertyOrder_Direction = 2
)

func (PropertyOrder_Direction) Descriptor Uses

func (PropertyOrder_Direction) Descriptor() protoreflect.EnumDescriptor

func (PropertyOrder_Direction) Enum Uses

func (x PropertyOrder_Direction) Enum() *PropertyOrder_Direction

func (PropertyOrder_Direction) EnumDescriptor Uses

func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use PropertyOrder_Direction.Descriptor instead.

func (PropertyOrder_Direction) Number Uses

func (x PropertyOrder_Direction) Number() protoreflect.EnumNumber

func (PropertyOrder_Direction) String Uses

func (x PropertyOrder_Direction) String() string

func (PropertyOrder_Direction) Type Uses

func (PropertyOrder_Direction) Type() protoreflect.EnumType

type PropertyReference Uses

type PropertyReference struct {

    // The name of the property.
    // If name includes "."s, it may be interpreted as a property name path.
    Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

A reference to a property relative to the kind expressions.

func (*PropertyReference) Descriptor Uses

func (*PropertyReference) Descriptor() ([]byte, []int)

Deprecated: Use PropertyReference.ProtoReflect.Descriptor instead.

func (*PropertyReference) GetName Uses

func (x *PropertyReference) GetName() string

func (*PropertyReference) ProtoMessage Uses

func (*PropertyReference) ProtoMessage()

func (*PropertyReference) ProtoReflect Uses

func (x *PropertyReference) ProtoReflect() protoreflect.Message

func (*PropertyReference) Reset Uses

func (x *PropertyReference) Reset()

func (*PropertyReference) String Uses

func (x *PropertyReference) String() string

type Query Uses

type Query struct {

    // The projection to return. Defaults to returning all properties.
    Projection []*Projection `protobuf:"bytes,2,rep,name=projection,proto3" json:"projection,omitempty"`
    // The kinds to query (if empty, returns entities of all kinds).
    // Currently at most 1 kind may be specified.
    Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind,proto3" json:"kind,omitempty"`
    // The filter to apply.
    Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
    // The order to apply to the query results (if empty, order is unspecified).
    Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order,proto3" json:"order,omitempty"`
    // The properties to make distinct. The query results will contain the first
    // result for each distinct combination of values for the given properties
    // (if empty, all results are returned).
    DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn,proto3" json:"distinct_on,omitempty"`
    // A starting point for the query results. Query cursors are
    // returned in query result batches and
    // [can only be used to continue the same
    // query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
    StartCursor []byte `protobuf:"bytes,7,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"`
    // An ending point for the query results. Query cursors are
    // returned in query result batches and
    // [can only be used to limit the same
    // query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
    EndCursor []byte `protobuf:"bytes,8,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
    // The number of results to skip. Applies before limit, but after all other
    // constraints. Optional. Must be >= 0 if specified.
    Offset int32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
    // The maximum number of results to return. Applies after all other
    // constraints. Optional.
    // Unspecified is interpreted as no limit.
    // Must be >= 0 if specified.
    Limit *wrappers.Int32Value `protobuf:"bytes,12,opt,name=limit,proto3" json:"limit,omitempty"`
    // contains filtered or unexported fields
}

A query for entities.

func (*Query) Descriptor Uses

func (*Query) Descriptor() ([]byte, []int)

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetDistinctOn Uses

func (x *Query) GetDistinctOn() []*PropertyReference

func (*Query) GetEndCursor Uses

func (x *Query) GetEndCursor() []byte

func (*Query) GetFilter Uses

func (x *Query) GetFilter() *Filter

func (*Query) GetKind Uses

func (x *Query) GetKind() []*KindExpression

func (*Query) GetLimit Uses

func (x *Query) GetLimit() *wrappers.Int32Value

func (*Query) GetOffset Uses

func (x *Query) GetOffset() int32

func (*Query) GetOrder Uses

func (x *Query) GetOrder() []*PropertyOrder

func (*Query) GetProjection Uses

func (x *Query) GetProjection() []*Projection

func (*Query) GetStartCursor Uses

func (x *Query) GetStartCursor() []byte

func (*Query) ProtoMessage Uses

func (*Query) ProtoMessage()

func (*Query) ProtoReflect Uses

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset Uses

func (x *Query) Reset()

func (*Query) String Uses

func (x *Query) String() string

type QueryResultBatch Uses

type QueryResultBatch struct {

    // The number of results skipped, typically because of an offset.
    SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"`
    // A cursor that points to the position after the last skipped result.
    // Will be set when `skipped_results` != 0.
    SkippedCursor []byte `protobuf:"bytes,3,opt,name=skipped_cursor,json=skippedCursor,proto3" json:"skipped_cursor,omitempty"`
    // The result type for every entity in `entity_results`.
    EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,proto3,enum=google.datastore.v1.EntityResult_ResultType" json:"entity_result_type,omitempty"`
    // The results for this batch.
    EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults,proto3" json:"entity_results,omitempty"`
    // A cursor that points to the position after the last result in the batch.
    EndCursor []byte `protobuf:"bytes,4,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
    // The state of the query after the current batch.
    MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,proto3,enum=google.datastore.v1.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"`
    // The version number of the snapshot this batch was returned from.
    // This applies to the range of results from the query's `start_cursor` (or
    // the beginning of the query if no cursor was given) to this batch's
    // `end_cursor` (not the query's `end_cursor`).
    //
    // In a single transaction, subsequent query result batches for the same query
    // can have a greater snapshot version number. Each batch's snapshot version
    // is valid for all preceding batches.
    // The value will be zero for eventually consistent queries.
    SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"`
    // contains filtered or unexported fields
}

A batch of results produced by a query.

func (*QueryResultBatch) Descriptor Uses

func (*QueryResultBatch) Descriptor() ([]byte, []int)

Deprecated: Use QueryResultBatch.ProtoReflect.Descriptor instead.

func (*QueryResultBatch) GetEndCursor Uses

func (x *QueryResultBatch) GetEndCursor() []byte

func (*QueryResultBatch) GetEntityResultType Uses

func (x *QueryResultBatch) GetEntityResultType() EntityResult_ResultType

func (*QueryResultBatch) GetEntityResults Uses

func (x *QueryResultBatch) GetEntityResults() []*EntityResult

func (*QueryResultBatch) GetMoreResults Uses

func (x *QueryResultBatch) GetMoreResults() QueryResultBatch_MoreResultsType

func (*QueryResultBatch) GetSkippedCursor Uses

func (x *QueryResultBatch) GetSkippedCursor() []byte

func (*QueryResultBatch) GetSkippedResults Uses

func (x *QueryResultBatch) GetSkippedResults() int32

func (*QueryResultBatch) GetSnapshotVersion Uses

func (x *QueryResultBatch) GetSnapshotVersion() int64

func (*QueryResultBatch) ProtoMessage Uses

func (*QueryResultBatch) ProtoMessage()

func (*QueryResultBatch) ProtoReflect Uses

func (x *QueryResultBatch) ProtoReflect() protoreflect.Message

func (*QueryResultBatch) Reset Uses

func (x *QueryResultBatch) Reset()

func (*QueryResultBatch) String Uses

func (x *QueryResultBatch) String() string

type QueryResultBatch_MoreResultsType Uses

type QueryResultBatch_MoreResultsType int32

The possible values for the `more_results` field.

const (
    // Unspecified. This value is never used.
    QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED QueryResultBatch_MoreResultsType = 0
    // There may be additional batches to fetch from this query.
    QueryResultBatch_NOT_FINISHED QueryResultBatch_MoreResultsType = 1
    // The query is finished, but there may be more results after the limit.
    QueryResultBatch_MORE_RESULTS_AFTER_LIMIT QueryResultBatch_MoreResultsType = 2
    // The query is finished, but there may be more results after the end
    // cursor.
    QueryResultBatch_MORE_RESULTS_AFTER_CURSOR QueryResultBatch_MoreResultsType = 4
    // The query is finished, and there are no more results.
    QueryResultBatch_NO_MORE_RESULTS QueryResultBatch_MoreResultsType = 3
)

func (QueryResultBatch_MoreResultsType) Descriptor Uses

func (QueryResultBatch_MoreResultsType) Descriptor() protoreflect.EnumDescriptor

func (QueryResultBatch_MoreResultsType) Enum Uses

func (x QueryResultBatch_MoreResultsType) Enum() *QueryResultBatch_MoreResultsType

func (QueryResultBatch_MoreResultsType) EnumDescriptor Uses

func (QueryResultBatch_MoreResultsType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryResultBatch_MoreResultsType.Descriptor instead.

func (QueryResultBatch_MoreResultsType) Number Uses

func (x QueryResultBatch_MoreResultsType) Number() protoreflect.EnumNumber

func (QueryResultBatch_MoreResultsType) String Uses

func (x QueryResultBatch_MoreResultsType) String() string

func (QueryResultBatch_MoreResultsType) Type Uses

func (QueryResultBatch_MoreResultsType) Type() protoreflect.EnumType

type ReadOptions Uses

type ReadOptions struct {

    // If not specified, lookups and ancestor queries default to
    // `read_consistency`=`STRONG`, global queries default to
    // `read_consistency`=`EVENTUAL`.
    //
    // Types that are assignable to ConsistencyType:
    //	*ReadOptions_ReadConsistency_
    //	*ReadOptions_Transaction
    ConsistencyType isReadOptions_ConsistencyType `protobuf_oneof:"consistency_type"`
    // contains filtered or unexported fields
}

The options shared by read requests.

func (*ReadOptions) Descriptor Uses

func (*ReadOptions) Descriptor() ([]byte, []int)

Deprecated: Use ReadOptions.ProtoReflect.Descriptor instead.

func (*ReadOptions) GetConsistencyType Uses

func (m *ReadOptions) GetConsistencyType() isReadOptions_ConsistencyType

func (*ReadOptions) GetReadConsistency Uses

func (x *ReadOptions) GetReadConsistency() ReadOptions_ReadConsistency

func (*ReadOptions) GetTransaction Uses

func (x *ReadOptions) GetTransaction() []byte

func (*ReadOptions) ProtoMessage Uses

func (*ReadOptions) ProtoMessage()

func (*ReadOptions) ProtoReflect Uses

func (x *ReadOptions) ProtoReflect() protoreflect.Message

func (*ReadOptions) Reset Uses

func (x *ReadOptions) Reset()

func (*ReadOptions) String Uses

func (x *ReadOptions) String() string

type ReadOptions_ReadConsistency Uses

type ReadOptions_ReadConsistency int32

The possible values for read consistencies.

const (
    // Unspecified. This value must not be used.
    ReadOptions_READ_CONSISTENCY_UNSPECIFIED ReadOptions_ReadConsistency = 0
    // Strong consistency.
    ReadOptions_STRONG ReadOptions_ReadConsistency = 1
    // Eventual consistency.
    ReadOptions_EVENTUAL ReadOptions_ReadConsistency = 2
)

func (ReadOptions_ReadConsistency) Descriptor Uses

func (ReadOptions_ReadConsistency) Descriptor() protoreflect.EnumDescriptor

func (ReadOptions_ReadConsistency) Enum Uses

func (x ReadOptions_ReadConsistency) Enum() *ReadOptions_ReadConsistency

func (ReadOptions_ReadConsistency) EnumDescriptor Uses

func (ReadOptions_ReadConsistency) EnumDescriptor() ([]byte, []int)

Deprecated: Use ReadOptions_ReadConsistency.Descriptor instead.

func (ReadOptions_ReadConsistency) Number Uses

func (x ReadOptions_ReadConsistency) Number() protoreflect.EnumNumber

func (ReadOptions_ReadConsistency) String Uses

func (x ReadOptions_ReadConsistency) String() string

func (ReadOptions_ReadConsistency) Type Uses

func (ReadOptions_ReadConsistency) Type() protoreflect.EnumType

type ReadOptions_ReadConsistency_ Uses

type ReadOptions_ReadConsistency_ struct {
    // The non-transactional read consistency to use.
    // Cannot be set to `STRONG` for global queries.
    ReadConsistency ReadOptions_ReadConsistency `protobuf:"varint,1,opt,name=read_consistency,json=readConsistency,proto3,enum=google.datastore.v1.ReadOptions_ReadConsistency,oneof"`
}

type ReadOptions_Transaction Uses

type ReadOptions_Transaction struct {
    // The identifier of the transaction in which to read. A
    // transaction identifier is returned by a call to
    // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3,oneof"`
}

type ReserveIdsRequest Uses

type ReserveIdsRequest struct {

    // Required. The ID of the project against which to make the request.
    ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // If not empty, the ID of the database against which to make the request.
    DatabaseId string `protobuf:"bytes,9,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
    // Required. A list of keys with complete key paths whose numeric IDs should not be
    // auto-allocated.
    Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
    // contains filtered or unexported fields
}

The request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].

func (*ReserveIdsRequest) Descriptor Uses

func (*ReserveIdsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReserveIdsRequest.ProtoReflect.Descriptor instead.

func (*ReserveIdsRequest) GetDatabaseId Uses

func (x *ReserveIdsRequest) GetDatabaseId() string

func (*ReserveIdsRequest) GetKeys Uses

func (x *ReserveIdsRequest) GetKeys() []*Key

func (*ReserveIdsRequest) GetProjectId Uses

func (x *ReserveIdsRequest) GetProjectId() string

func (*ReserveIdsRequest) ProtoMessage Uses

func (*ReserveIdsRequest) ProtoMessage()

func (*ReserveIdsRequest) ProtoReflect Uses

func (x *ReserveIdsRequest) ProtoReflect() protoreflect.Message

func (*ReserveIdsRequest) Reset Uses

func (x *ReserveIdsRequest) Reset()

func (*ReserveIdsRequest) String Uses

func (x *ReserveIdsRequest) String() string

type ReserveIdsResponse Uses

type ReserveIdsResponse struct {
    // contains filtered or unexported fields
}

The response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].

func (*ReserveIdsResponse) Descriptor Uses

func (*ReserveIdsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReserveIdsResponse.ProtoReflect.Descriptor instead.

func (*ReserveIdsResponse) ProtoMessage Uses

func (*ReserveIdsResponse) ProtoMessage()

func (*ReserveIdsResponse) ProtoReflect Uses

func (x *ReserveIdsResponse) ProtoReflect() protoreflect.Message

func (*ReserveIdsResponse) Reset Uses

func (x *ReserveIdsResponse) Reset()

func (*ReserveIdsResponse) String Uses

func (x *ReserveIdsResponse) String() string

type RollbackRequest Uses

type RollbackRequest struct {

    // Required. The ID of the project against which to make the request.
    ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // Required. The transaction identifier, returned by a call to
    // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
    Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
    // contains filtered or unexported fields
}

The request for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].

func (*RollbackRequest) Descriptor Uses

func (*RollbackRequest) Descriptor() ([]byte, []int)

Deprecated: Use RollbackRequest.ProtoReflect.Descriptor instead.

func (*RollbackRequest) GetProjectId Uses

func (x *RollbackRequest) GetProjectId() string

func (*RollbackRequest) GetTransaction Uses

func (x *RollbackRequest) GetTransaction() []byte

func (*RollbackRequest) ProtoMessage Uses

func (*RollbackRequest) ProtoMessage()

func (*RollbackRequest) ProtoReflect Uses

func (x *RollbackRequest) ProtoReflect() protoreflect.Message

func (*RollbackRequest) Reset Uses

func (x *RollbackRequest) Reset()

func (*RollbackRequest) String Uses

func (x *RollbackRequest) String() string

type RollbackResponse Uses

type RollbackResponse struct {
    // contains filtered or unexported fields
}

The response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. (an empty message).

func (*RollbackResponse) Descriptor Uses

func (*RollbackResponse) Descriptor() ([]byte, []int)

Deprecated: Use RollbackResponse.ProtoReflect.Descriptor instead.

func (*RollbackResponse) ProtoMessage Uses

func (*RollbackResponse) ProtoMessage()

func (*RollbackResponse) ProtoReflect Uses

func (x *RollbackResponse) ProtoReflect() protoreflect.Message

func (*RollbackResponse) Reset Uses

func (x *RollbackResponse) Reset()

func (*RollbackResponse) String Uses

func (x *RollbackResponse) String() string

type RunQueryRequest Uses

type RunQueryRequest struct {

    // Required. The ID of the project against which to make the request.
    ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // Entities are partitioned into subsets, identified by a partition ID.
    // Queries are scoped to a single partition.
    // This partition ID is normalized with the standard default context
    // partition ID.
    PartitionId *PartitionId `protobuf:"bytes,2,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
    // The options for this query.
    ReadOptions *ReadOptions `protobuf:"bytes,1,opt,name=read_options,json=readOptions,proto3" json:"read_options,omitempty"`
    // The type of query.
    //
    // Types that are assignable to QueryType:
    //	*RunQueryRequest_Query
    //	*RunQueryRequest_GqlQuery
    QueryType isRunQueryRequest_QueryType `protobuf_oneof:"query_type"`
    // contains filtered or unexported fields
}

The request for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].

func (*RunQueryRequest) Descriptor Uses

func (*RunQueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunQueryRequest.ProtoReflect.Descriptor instead.

func (*RunQueryRequest) GetGqlQuery Uses

func (x *RunQueryRequest) GetGqlQuery() *GqlQuery

func (*RunQueryRequest) GetPartitionId Uses

func (x *RunQueryRequest) GetPartitionId() *PartitionId

func (*RunQueryRequest) GetProjectId Uses

func (x *RunQueryRequest) GetProjectId() string

func (*RunQueryRequest) GetQuery Uses

func (x *RunQueryRequest) GetQuery() *Query

func (*RunQueryRequest) GetQueryType Uses

func (m *RunQueryRequest) GetQueryType() isRunQueryRequest_QueryType

func (*RunQueryRequest) GetReadOptions Uses

func (x *RunQueryRequest) GetReadOptions() *ReadOptions

func (*RunQueryRequest) ProtoMessage Uses

func (*RunQueryRequest) ProtoMessage()

func (*RunQueryRequest) ProtoReflect Uses

func (x *RunQueryRequest) ProtoReflect() protoreflect.Message

func (*RunQueryRequest) Reset Uses

func (x *RunQueryRequest) Reset()

func (*RunQueryRequest) String Uses

func (x *RunQueryRequest) String() string

type RunQueryRequest_GqlQuery Uses

type RunQueryRequest_GqlQuery struct {
    // The GQL query to run.
    GqlQuery *GqlQuery `protobuf:"bytes,7,opt,name=gql_query,json=gqlQuery,proto3,oneof"`
}

type RunQueryRequest_Query Uses

type RunQueryRequest_Query struct {
    // The query to run.
    Query *Query `protobuf:"bytes,3,opt,name=query,proto3,oneof"`
}

type RunQueryResponse Uses

type RunQueryResponse struct {

    // A batch of query results (always present).
    Batch *QueryResultBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"`
    // The parsed form of the `GqlQuery` from the request, if it was set.
    Query *Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
    // contains filtered or unexported fields
}

The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].

func (*RunQueryResponse) Descriptor Uses

func (*RunQueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use RunQueryResponse.ProtoReflect.Descriptor instead.

func (*RunQueryResponse) GetBatch Uses

func (x *RunQueryResponse) GetBatch() *QueryResultBatch

func (*RunQueryResponse) GetQuery Uses

func (x *RunQueryResponse) GetQuery() *Query

func (*RunQueryResponse) ProtoMessage Uses

func (*RunQueryResponse) ProtoMessage()

func (*RunQueryResponse) ProtoReflect Uses

func (x *RunQueryResponse) ProtoReflect() protoreflect.Message

func (*RunQueryResponse) Reset Uses

func (x *RunQueryResponse) Reset()

func (*RunQueryResponse) String Uses

func (x *RunQueryResponse) String() string

type TransactionOptions Uses

type TransactionOptions struct {

    // The `mode` of the transaction, indicating whether write operations are
    // supported.
    //
    // Types that are assignable to Mode:
    //	*TransactionOptions_ReadWrite_
    //	*TransactionOptions_ReadOnly_
    Mode isTransactionOptions_Mode `protobuf_oneof:"mode"`
    // contains filtered or unexported fields
}

Options for beginning a new transaction.

Transactions can be created explicitly with calls to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction] or implicitly by setting [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] in read requests.

func (*TransactionOptions) Descriptor Uses

func (*TransactionOptions) Descriptor() ([]byte, []int)

Deprecated: Use TransactionOptions.ProtoReflect.Descriptor instead.

func (*TransactionOptions) GetMode Uses

func (m *TransactionOptions) GetMode() isTransactionOptions_Mode

func (*TransactionOptions) GetReadOnly Uses

func (x *TransactionOptions) GetReadOnly() *TransactionOptions_ReadOnly

func (*TransactionOptions) GetReadWrite Uses

func (x *TransactionOptions) GetReadWrite() *TransactionOptions_ReadWrite

func (*TransactionOptions) ProtoMessage Uses

func (*TransactionOptions) ProtoMessage()

func (*TransactionOptions) ProtoReflect Uses

func (x *TransactionOptions) ProtoReflect() protoreflect.Message

func (*TransactionOptions) Reset Uses

func (x *TransactionOptions) Reset()

func (*TransactionOptions) String Uses

func (x *TransactionOptions) String() string

type TransactionOptions_ReadOnly Uses

type TransactionOptions_ReadOnly struct {
    // contains filtered or unexported fields
}

Options specific to read-only transactions.

func (*TransactionOptions_ReadOnly) Descriptor Uses

func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int)

Deprecated: Use TransactionOptions_ReadOnly.ProtoReflect.Descriptor instead.

func (*TransactionOptions_ReadOnly) ProtoMessage Uses

func (*TransactionOptions_ReadOnly) ProtoMessage()

func (*TransactionOptions_ReadOnly) ProtoReflect Uses

func (x *TransactionOptions_ReadOnly) ProtoReflect() protoreflect.Message

func (*TransactionOptions_ReadOnly) Reset Uses

func (x *TransactionOptions_ReadOnly) Reset()

func (*TransactionOptions_ReadOnly) String Uses

func (x *TransactionOptions_ReadOnly) String() string

type TransactionOptions_ReadOnly_ Uses

type TransactionOptions_ReadOnly_ struct {
    // The transaction should only allow reads.
    ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"`
}

type TransactionOptions_ReadWrite Uses

type TransactionOptions_ReadWrite struct {

    // The transaction identifier of the transaction being retried.
    PreviousTransaction []byte `protobuf:"bytes,1,opt,name=previous_transaction,json=previousTransaction,proto3" json:"previous_transaction,omitempty"`
    // contains filtered or unexported fields
}

Options specific to read / write transactions.

func (*TransactionOptions_ReadWrite) Descriptor Uses

func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int)

Deprecated: Use TransactionOptions_ReadWrite.ProtoReflect.Descriptor instead.

func (*TransactionOptions_ReadWrite) GetPreviousTransaction Uses

func (x *TransactionOptions_ReadWrite) GetPreviousTransaction() []byte

func (*TransactionOptions_ReadWrite) ProtoMessage Uses

func (*TransactionOptions_ReadWrite) ProtoMessage()

func (*TransactionOptions_ReadWrite) ProtoReflect Uses

func (x *TransactionOptions_ReadWrite) ProtoReflect() protoreflect.Message

func (*TransactionOptions_ReadWrite) Reset Uses

func (x *TransactionOptions_ReadWrite) Reset()

func (*TransactionOptions_ReadWrite) String Uses

func (x *TransactionOptions_ReadWrite) String() string

type TransactionOptions_ReadWrite_ Uses

type TransactionOptions_ReadWrite_ struct {
    // The transaction should allow both reads and writes.
    ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,1,opt,name=read_write,json=readWrite,proto3,oneof"`
}

type UnimplementedDatastoreServer Uses

type UnimplementedDatastoreServer struct {
}

UnimplementedDatastoreServer can be embedded to have forward compatible implementations.

func (*UnimplementedDatastoreServer) AllocateIds Uses

func (*UnimplementedDatastoreServer) AllocateIds(context.Context, *AllocateIdsRequest) (*AllocateIdsResponse, error)

func (*UnimplementedDatastoreServer) BeginTransaction Uses

func (*UnimplementedDatastoreServer) BeginTransaction(context.Context, *BeginTransactionRequest) (*BeginTransactionResponse, error)

func (*UnimplementedDatastoreServer) Commit Uses

func (*UnimplementedDatastoreServer) Commit(context.Context, *CommitRequest) (*CommitResponse, error)

func (*UnimplementedDatastoreServer) Lookup Uses

func (*UnimplementedDatastoreServer) Lookup(context.Context, *LookupRequest) (*LookupResponse, error)

func (*UnimplementedDatastoreServer) ReserveIds Uses

func (*UnimplementedDatastoreServer) ReserveIds(context.Context, *ReserveIdsRequest) (*ReserveIdsResponse, error)

func (*UnimplementedDatastoreServer) Rollback Uses

func (*UnimplementedDatastoreServer) Rollback(context.Context, *RollbackRequest) (*RollbackResponse, error)

func (*UnimplementedDatastoreServer) RunQuery Uses

func (*UnimplementedDatastoreServer) RunQuery(context.Context, *RunQueryRequest) (*RunQueryResponse, error)

type Value Uses

type Value struct {

    // Must have a value set.
    //
    // Types that are assignable to ValueType:
    //	*Value_NullValue
    //	*Value_BooleanValue
    //	*Value_IntegerValue
    //	*Value_DoubleValue
    //	*Value_TimestampValue
    //	*Value_KeyValue
    //	*Value_StringValue
    //	*Value_BlobValue
    //	*Value_GeoPointValue
    //	*Value_EntityValue
    //	*Value_ArrayValue
    ValueType isValue_ValueType `protobuf_oneof:"value_type"`
    // The `meaning` field should only be populated for backwards compatibility.
    Meaning int32 `protobuf:"varint,14,opt,name=meaning,proto3" json:"meaning,omitempty"`
    // If the value should be excluded from all indexes including those defined
    // explicitly.
    ExcludeFromIndexes bool `protobuf:"varint,19,opt,name=exclude_from_indexes,json=excludeFromIndexes,proto3" json:"exclude_from_indexes,omitempty"`
    // contains filtered or unexported fields
}

A message that can hold any of the supported value types and associated metadata.

func (*Value) Descriptor Uses

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetArrayValue Uses

func (x *Value) GetArrayValue() *ArrayValue

func (*Value) GetBlobValue Uses

func (x *Value) GetBlobValue() []byte

func (*Value) GetBooleanValue Uses

func (x *Value) GetBooleanValue() bool

func (*Value) GetDoubleValue Uses

func (x *Value) GetDoubleValue() float64

func (*Value) GetEntityValue Uses

func (x *Value) GetEntityValue() *Entity

func (*Value) GetExcludeFromIndexes Uses

func (x *Value) GetExcludeFromIndexes() bool

func (*Value) GetGeoPointValue Uses

func (x *Value) GetGeoPointValue() *latlng.LatLng

func (*Value) GetIntegerValue Uses

func (x *Value) GetIntegerValue() int64

func (*Value) GetKeyValue Uses

func (x *Value) GetKeyValue() *Key

func (*Value) GetMeaning Uses

func (x *Value) GetMeaning() int32

func (*Value) GetNullValue Uses

func (x *Value) GetNullValue() _struct.NullValue

func (*Value) GetStringValue Uses

func (x *Value) GetStringValue() string

func (*Value) GetTimestampValue Uses

func (x *Value) GetTimestampValue() *timestamp.Timestamp

func (*Value) GetValueType Uses

func (m *Value) GetValueType() isValue_ValueType

func (*Value) ProtoMessage Uses

func (*Value) ProtoMessage()

func (*Value) ProtoReflect Uses

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset Uses

func (x *Value) Reset()

func (*Value) String Uses

func (x *Value) String() string

type Value_ArrayValue Uses

type Value_ArrayValue struct {
    // An array value.
    // Cannot contain another array value.
    // A `Value` instance that sets field `array_value` must not set fields
    // `meaning` or `exclude_from_indexes`.
    ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof"`
}

type Value_BlobValue Uses

type Value_BlobValue struct {
    // A blob value.
    // May have at most 1,000,000 bytes.
    // When `exclude_from_indexes` is false, may have at most 1500 bytes.
    // In JSON requests, must be base64-encoded.
    BlobValue []byte `protobuf:"bytes,18,opt,name=blob_value,json=blobValue,proto3,oneof"`
}

type Value_BooleanValue Uses

type Value_BooleanValue struct {
    // A boolean value.
    BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}

type Value_DoubleValue Uses

type Value_DoubleValue struct {
    // A double value.
    DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type Value_EntityValue Uses

type Value_EntityValue struct {
    // An entity value.
    //
    // - May have no key.
    // - May have a key with an incomplete key path.
    // - May have a reserved/read-only key.
    EntityValue *Entity `protobuf:"bytes,6,opt,name=entity_value,json=entityValue,proto3,oneof"`
}

type Value_GeoPointValue Uses

type Value_GeoPointValue struct {
    // A geo point value representing a point on the surface of Earth.
    GeoPointValue *latlng.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"`
}

type Value_IntegerValue Uses

type Value_IntegerValue struct {
    // An integer value.
    IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"`
}

type Value_KeyValue Uses

type Value_KeyValue struct {
    // A key value.
    KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,proto3,oneof"`
}

type Value_NullValue Uses

type Value_NullValue struct {
    // A null value.
    NullValue _struct.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
}

type Value_StringValue Uses

type Value_StringValue struct {
    // A UTF-8 encoded string value.
    // When `exclude_from_indexes` is false (it is indexed), may have at most
    // 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
    StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Value_TimestampValue Uses

type Value_TimestampValue struct {
    // A timestamp value.
    // When stored in the Datastore, precise only to microseconds;
    // any additional precision is rounded down.
    TimestampValue *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
}

Package datastore imports 14 packages (graph) and is imported by 12 packages. Updated 2020-06-16. Refresh now. Tools for package owners.