package conformance
import "cloud.google.com/go/firestore/internal/conformance"
Index ¶
- Variables
- type Clause
- func (*Clause) Descriptor() ([]byte, []int)
- func (m *Clause) GetClause() isClause_Clause
- func (x *Clause) GetEndAt() *Cursor
- func (x *Clause) GetEndBefore() *Cursor
- func (x *Clause) GetLimit() int32
- func (x *Clause) GetOffset() int32
- func (x *Clause) GetOrderBy() *OrderBy
- func (x *Clause) GetSelect() *Select
- func (x *Clause) GetStartAfter() *Cursor
- func (x *Clause) GetStartAt() *Cursor
- func (x *Clause) GetWhere() *Where
- func (*Clause) ProtoMessage()
- func (x *Clause) ProtoReflect() protoreflect.Message
- func (x *Clause) Reset()
- func (x *Clause) String() string
- type Clause_EndAt
- type Clause_EndBefore
- type Clause_Limit
- type Clause_Offset
- type Clause_OrderBy
- type Clause_Select
- type Clause_StartAfter
- type Clause_StartAt
- type Clause_Where
- type CreateTest
- func (*CreateTest) Descriptor() ([]byte, []int)
- func (x *CreateTest) GetDocRefPath() string
- func (x *CreateTest) GetIsError() bool
- func (x *CreateTest) GetJsonData() string
- func (x *CreateTest) GetRequest() *firestorepb.CommitRequest
- func (*CreateTest) ProtoMessage()
- func (x *CreateTest) ProtoReflect() protoreflect.Message
- func (x *CreateTest) Reset()
- func (x *CreateTest) String() string
- type Cursor
- func (*Cursor) Descriptor() ([]byte, []int)
- func (x *Cursor) GetDocSnapshot() *DocSnapshot
- func (x *Cursor) GetJsonValues() []string
- func (*Cursor) ProtoMessage()
- func (x *Cursor) ProtoReflect() protoreflect.Message
- func (x *Cursor) Reset()
- func (x *Cursor) String() string
- type DeleteTest
- func (*DeleteTest) Descriptor() ([]byte, []int)
- func (x *DeleteTest) GetDocRefPath() string
- func (x *DeleteTest) GetIsError() bool
- func (x *DeleteTest) GetPrecondition() *firestorepb.Precondition
- func (x *DeleteTest) GetRequest() *firestorepb.CommitRequest
- func (*DeleteTest) ProtoMessage()
- func (x *DeleteTest) ProtoReflect() protoreflect.Message
- func (x *DeleteTest) Reset()
- func (x *DeleteTest) String() string
- type DocChange
- func (*DocChange) Descriptor() ([]byte, []int)
- func (x *DocChange) GetDoc() *firestorepb.Document
- func (x *DocChange) GetKind() DocChange_Kind
- func (x *DocChange) GetNewIndex() int32
- func (x *DocChange) GetOldIndex() int32
- func (*DocChange) ProtoMessage()
- func (x *DocChange) ProtoReflect() protoreflect.Message
- func (x *DocChange) Reset()
- func (x *DocChange) String() string
- type DocChange_Kind
- func (DocChange_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x DocChange_Kind) Enum() *DocChange_Kind
- func (DocChange_Kind) EnumDescriptor() ([]byte, []int)
- func (x DocChange_Kind) Number() protoreflect.EnumNumber
- func (x DocChange_Kind) String() string
- func (DocChange_Kind) Type() protoreflect.EnumType
- type DocSnapshot
- func (*DocSnapshot) Descriptor() ([]byte, []int)
- func (x *DocSnapshot) GetJsonData() string
- func (x *DocSnapshot) GetPath() string
- func (*DocSnapshot) ProtoMessage()
- func (x *DocSnapshot) ProtoReflect() protoreflect.Message
- func (x *DocSnapshot) Reset()
- func (x *DocSnapshot) String() string
- type FieldPath
- func (*FieldPath) Descriptor() ([]byte, []int)
- func (x *FieldPath) GetField() []string
- func (*FieldPath) ProtoMessage()
- func (x *FieldPath) ProtoReflect() protoreflect.Message
- func (x *FieldPath) Reset()
- func (x *FieldPath) String() string
- type GetTest
- func (*GetTest) Descriptor() ([]byte, []int)
- func (x *GetTest) GetDocRefPath() string
- func (x *GetTest) GetRequest() *firestorepb.GetDocumentRequest
- func (*GetTest) ProtoMessage()
- func (x *GetTest) ProtoReflect() protoreflect.Message
- func (x *GetTest) Reset()
- func (x *GetTest) String() string
- type ListenTest
- func (*ListenTest) Descriptor() ([]byte, []int)
- func (x *ListenTest) GetIsError() bool
- func (x *ListenTest) GetResponses() []*firestorepb.ListenResponse
- func (x *ListenTest) GetSnapshots() []*Snapshot
- func (*ListenTest) ProtoMessage()
- func (x *ListenTest) ProtoReflect() protoreflect.Message
- func (x *ListenTest) Reset()
- func (x *ListenTest) String() string
- type OrderBy
- func (*OrderBy) Descriptor() ([]byte, []int)
- func (x *OrderBy) GetDirection() string
- func (x *OrderBy) GetPath() *FieldPath
- func (*OrderBy) ProtoMessage()
- func (x *OrderBy) ProtoReflect() protoreflect.Message
- func (x *OrderBy) Reset()
- func (x *OrderBy) String() string
- type QueryTest
- func (*QueryTest) Descriptor() ([]byte, []int)
- func (x *QueryTest) GetClauses() []*Clause
- func (x *QueryTest) GetCollPath() string
- func (x *QueryTest) GetIsError() bool
- func (x *QueryTest) GetQuery() *firestorepb.StructuredQuery
- func (*QueryTest) ProtoMessage()
- func (x *QueryTest) ProtoReflect() protoreflect.Message
- func (x *QueryTest) Reset()
- func (x *QueryTest) String() string
- type Select
- func (*Select) Descriptor() ([]byte, []int)
- func (x *Select) GetFields() []*FieldPath
- func (*Select) ProtoMessage()
- func (x *Select) ProtoReflect() protoreflect.Message
- func (x *Select) Reset()
- func (x *Select) String() string
- type SetOption
- func (*SetOption) Descriptor() ([]byte, []int)
- func (x *SetOption) GetAll() bool
- func (x *SetOption) GetFields() []*FieldPath
- func (*SetOption) ProtoMessage()
- func (x *SetOption) ProtoReflect() protoreflect.Message
- func (x *SetOption) Reset()
- func (x *SetOption) String() string
- type SetTest
- func (*SetTest) Descriptor() ([]byte, []int)
- func (x *SetTest) GetDocRefPath() string
- func (x *SetTest) GetIsError() bool
- func (x *SetTest) GetJsonData() string
- func (x *SetTest) GetOption() *SetOption
- func (x *SetTest) GetRequest() *firestorepb.CommitRequest
- func (*SetTest) ProtoMessage()
- func (x *SetTest) ProtoReflect() protoreflect.Message
- func (x *SetTest) Reset()
- func (x *SetTest) String() string
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)
- func (x *Snapshot) GetChanges() []*DocChange
- func (x *Snapshot) GetDocs() []*firestorepb.Document
- func (x *Snapshot) GetReadTime() *timestamppb.Timestamp
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
- type Test
- func (*Test) Descriptor() ([]byte, []int)
- func (x *Test) GetComment() string
- func (x *Test) GetCreate() *CreateTest
- func (x *Test) GetDelete() *DeleteTest
- func (x *Test) GetDescription() string
- func (x *Test) GetGet() *GetTest
- func (x *Test) GetListen() *ListenTest
- func (x *Test) GetQuery() *QueryTest
- func (x *Test) GetSet() *SetTest
- func (m *Test) GetTest() isTest_Test
- func (x *Test) GetUpdate() *UpdateTest
- func (x *Test) GetUpdatePaths() *UpdatePathsTest
- func (*Test) ProtoMessage()
- func (x *Test) ProtoReflect() protoreflect.Message
- func (x *Test) Reset()
- func (x *Test) String() string
- type TestFile
- func (*TestFile) Descriptor() ([]byte, []int)
- func (x *TestFile) GetTests() []*Test
- func (*TestFile) ProtoMessage()
- func (x *TestFile) ProtoReflect() protoreflect.Message
- func (x *TestFile) Reset()
- func (x *TestFile) String() string
- type Test_Create
- type Test_Delete
- type Test_Get
- type Test_Listen
- type Test_Query
- type Test_Set
- type Test_Update
- type Test_UpdatePaths
- type UpdatePathsTest
- func (*UpdatePathsTest) Descriptor() ([]byte, []int)
- func (x *UpdatePathsTest) GetDocRefPath() string
- func (x *UpdatePathsTest) GetFieldPaths() []*FieldPath
- func (x *UpdatePathsTest) GetIsError() bool
- func (x *UpdatePathsTest) GetJsonValues() []string
- func (x *UpdatePathsTest) GetPrecondition() *firestorepb.Precondition
- func (x *UpdatePathsTest) GetRequest() *firestorepb.CommitRequest
- func (*UpdatePathsTest) ProtoMessage()
- func (x *UpdatePathsTest) ProtoReflect() protoreflect.Message
- func (x *UpdatePathsTest) Reset()
- func (x *UpdatePathsTest) String() string
- type UpdateTest
- func (*UpdateTest) Descriptor() ([]byte, []int)
- func (x *UpdateTest) GetDocRefPath() string
- func (x *UpdateTest) GetIsError() bool
- func (x *UpdateTest) GetJsonData() string
- func (x *UpdateTest) GetPrecondition() *firestorepb.Precondition
- func (x *UpdateTest) GetRequest() *firestorepb.CommitRequest
- func (*UpdateTest) ProtoMessage()
- func (x *UpdateTest) ProtoReflect() protoreflect.Message
- func (x *UpdateTest) Reset()
- func (x *UpdateTest) String() string
- type Where
Variables ¶
var ( DocChange_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "ADDED", 2: "REMOVED", 3: "MODIFIED", } DocChange_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "ADDED": 1, "REMOVED": 2, "MODIFIED": 3, } )
Enum value maps for DocChange_Kind.
var File_tests_proto protoreflect.FileDescriptor
Types ¶
type Clause ¶
type Clause struct { // Types that are assignable to Clause: // // *Clause_Select // *Clause_Where // *Clause_OrderBy // *Clause_Offset // *Clause_Limit // *Clause_StartAt // *Clause_StartAfter // *Clause_EndAt // *Clause_EndBefore Clause isClause_Clause `protobuf_oneof:"clause"` // contains filtered or unexported fields }
func (*Clause) Descriptor ¶
Deprecated: Use Clause.ProtoReflect.Descriptor instead.
func (*Clause) GetClause ¶
func (m *Clause) GetClause() isClause_Clause
func (*Clause) GetEndAt ¶
func (*Clause) GetEndBefore ¶
func (*Clause) GetLimit ¶
func (*Clause) GetOffset ¶
func (*Clause) GetOrderBy ¶
func (*Clause) GetSelect ¶
func (*Clause) GetStartAfter ¶
func (*Clause) GetStartAt ¶
func (*Clause) GetWhere ¶
func (*Clause) ProtoMessage ¶
func (*Clause) ProtoMessage()
func (*Clause) ProtoReflect ¶
func (x *Clause) ProtoReflect() protoreflect.Message
func (*Clause) Reset ¶
func (x *Clause) Reset()
func (*Clause) String ¶
type Clause_EndAt ¶
type Clause_EndAt struct { EndAt *Cursor `protobuf:"bytes,8,opt,name=end_at,json=endAt,proto3,oneof"` }
type Clause_EndBefore ¶
type Clause_EndBefore struct { EndBefore *Cursor `protobuf:"bytes,9,opt,name=end_before,json=endBefore,proto3,oneof"` }
type Clause_Limit ¶
type Clause_Limit struct { Limit int32 `protobuf:"varint,5,opt,name=limit,proto3,oneof"` }
type Clause_Offset ¶
type Clause_Offset struct { Offset int32 `protobuf:"varint,4,opt,name=offset,proto3,oneof"` }
type Clause_OrderBy ¶
type Clause_OrderBy struct { OrderBy *OrderBy `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3,oneof"` }
type Clause_Select ¶
type Clause_Select struct { Select *Select `protobuf:"bytes,1,opt,name=select,proto3,oneof"` }
type Clause_StartAfter ¶
type Clause_StartAfter struct { StartAfter *Cursor `protobuf:"bytes,7,opt,name=start_after,json=startAfter,proto3,oneof"` }
type Clause_StartAt ¶
type Clause_StartAt struct { StartAt *Cursor `protobuf:"bytes,6,opt,name=start_at,json=startAt,proto3,oneof"` }
type Clause_Where ¶
type Clause_Where struct { Where *Where `protobuf:"bytes,2,opt,name=where,proto3,oneof"` }
type CreateTest ¶
type CreateTest struct { // The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d" DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath,proto3" json:"doc_ref_path,omitempty"` // The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp" // denote the two special sentinel values. Values that could be interpreted as integers // (i.e. digit strings) should be treated as integers. JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // The request that the call should generate. Request *firestorepb.CommitRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // If true, the call should result in an error without generating a request. // If this is true, request should not be set. IsError bool `protobuf:"varint,4,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"` // contains filtered or unexported fields }
Call to DocumentRef.Create.
func (*CreateTest) Descriptor ¶
func (*CreateTest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTest.ProtoReflect.Descriptor instead.
func (*CreateTest) GetDocRefPath ¶
func (x *CreateTest) GetDocRefPath() string
func (*CreateTest) GetIsError ¶
func (x *CreateTest) GetIsError() bool
func (*CreateTest) GetJsonData ¶
func (x *CreateTest) GetJsonData() string
func (*CreateTest) GetRequest ¶
func (x *CreateTest) GetRequest() *firestorepb.CommitRequest
func (*CreateTest) ProtoMessage ¶
func (*CreateTest) ProtoMessage()
func (*CreateTest) ProtoReflect ¶
func (x *CreateTest) ProtoReflect() protoreflect.Message
func (*CreateTest) Reset ¶
func (x *CreateTest) Reset()
func (*CreateTest) String ¶
func (x *CreateTest) String() string
type Cursor ¶
type Cursor struct { // one of: DocSnapshot *DocSnapshot `protobuf:"bytes,1,opt,name=doc_snapshot,json=docSnapshot,proto3" json:"doc_snapshot,omitempty"` JsonValues []string `protobuf:"bytes,2,rep,name=json_values,json=jsonValues,proto3" json:"json_values,omitempty"` // contains filtered or unexported fields }
func (*Cursor) Descriptor ¶
Deprecated: Use Cursor.ProtoReflect.Descriptor instead.
func (*Cursor) GetDocSnapshot ¶
func (x *Cursor) GetDocSnapshot() *DocSnapshot
func (*Cursor) GetJsonValues ¶
func (*Cursor) ProtoMessage ¶
func (*Cursor) ProtoMessage()
func (*Cursor) ProtoReflect ¶
func (x *Cursor) ProtoReflect() protoreflect.Message
func (*Cursor) Reset ¶
func (x *Cursor) Reset()
func (*Cursor) String ¶
type DeleteTest ¶
type DeleteTest struct { DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath,proto3" json:"doc_ref_path,omitempty"` // path of doc Precondition *firestorepb.Precondition `protobuf:"bytes,2,opt,name=precondition,proto3" json:"precondition,omitempty"` Request *firestorepb.CommitRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // expected rquest IsError bool `protobuf:"varint,4,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"` // call signals an error // contains filtered or unexported fields }
A call to DocmentRef.Delete
func (*DeleteTest) Descriptor ¶
func (*DeleteTest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTest.ProtoReflect.Descriptor instead.
func (*DeleteTest) GetDocRefPath ¶
func (x *DeleteTest) GetDocRefPath() string
func (*DeleteTest) GetIsError ¶
func (x *DeleteTest) GetIsError() bool
func (*DeleteTest) GetPrecondition ¶
func (x *DeleteTest) GetPrecondition() *firestorepb.Precondition
func (*DeleteTest) GetRequest ¶
func (x *DeleteTest) GetRequest() *firestorepb.CommitRequest
func (*DeleteTest) ProtoMessage ¶
func (*DeleteTest) ProtoMessage()
func (*DeleteTest) ProtoReflect ¶
func (x *DeleteTest) ProtoReflect() protoreflect.Message
func (*DeleteTest) Reset ¶
func (x *DeleteTest) Reset()
func (*DeleteTest) String ¶
func (x *DeleteTest) String() string
type DocChange ¶
type DocChange struct { Kind DocChange_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.cloud.conformance.firestore.v1.DocChange_Kind" json:"kind,omitempty"` Doc *firestorepb.Document `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"` OldIndex int32 `protobuf:"varint,3,opt,name=old_index,json=oldIndex,proto3" json:"old_index,omitempty"` NewIndex int32 `protobuf:"varint,4,opt,name=new_index,json=newIndex,proto3" json:"new_index,omitempty"` // contains filtered or unexported fields }
func (*DocChange) Descriptor ¶
Deprecated: Use DocChange.ProtoReflect.Descriptor instead.
func (*DocChange) GetDoc ¶
func (x *DocChange) GetDoc() *firestorepb.Document
func (*DocChange) GetKind ¶
func (x *DocChange) GetKind() DocChange_Kind
func (*DocChange) GetNewIndex ¶
func (*DocChange) GetOldIndex ¶
func (*DocChange) ProtoMessage ¶
func (*DocChange) ProtoMessage()
func (*DocChange) ProtoReflect ¶
func (x *DocChange) ProtoReflect() protoreflect.Message
func (*DocChange) Reset ¶
func (x *DocChange) Reset()
func (*DocChange) String ¶
type DocChange_Kind ¶
type DocChange_Kind int32
const ( DocChange_KIND_UNSPECIFIED DocChange_Kind = 0 DocChange_ADDED DocChange_Kind = 1 DocChange_REMOVED DocChange_Kind = 2 DocChange_MODIFIED DocChange_Kind = 3 )
func (DocChange_Kind) Descriptor ¶
func (DocChange_Kind) Descriptor() protoreflect.EnumDescriptor
func (DocChange_Kind) Enum ¶
func (x DocChange_Kind) Enum() *DocChange_Kind
func (DocChange_Kind) EnumDescriptor ¶
func (DocChange_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use DocChange_Kind.Descriptor instead.
func (DocChange_Kind) Number ¶
func (x DocChange_Kind) Number() protoreflect.EnumNumber
func (DocChange_Kind) String ¶
func (x DocChange_Kind) String() string
func (DocChange_Kind) Type ¶
func (DocChange_Kind) Type() protoreflect.EnumType
type DocSnapshot ¶
type DocSnapshot struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // contains filtered or unexported fields }
func (*DocSnapshot) Descriptor ¶
func (*DocSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use DocSnapshot.ProtoReflect.Descriptor instead.
func (*DocSnapshot) GetJsonData ¶
func (x *DocSnapshot) GetJsonData() string
func (*DocSnapshot) GetPath ¶
func (x *DocSnapshot) GetPath() string
func (*DocSnapshot) ProtoMessage ¶
func (*DocSnapshot) ProtoMessage()
func (*DocSnapshot) ProtoReflect ¶
func (x *DocSnapshot) ProtoReflect() protoreflect.Message
func (*DocSnapshot) Reset ¶
func (x *DocSnapshot) Reset()
func (*DocSnapshot) String ¶
func (x *DocSnapshot) String() string
type FieldPath ¶
type FieldPath struct { Field []string `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"` // contains filtered or unexported fields }
func (*FieldPath) Descriptor ¶
Deprecated: Use FieldPath.ProtoReflect.Descriptor instead.
func (*FieldPath) GetField ¶
func (*FieldPath) ProtoMessage ¶
func (*FieldPath) ProtoMessage()
func (*FieldPath) ProtoReflect ¶
func (x *FieldPath) ProtoReflect() protoreflect.Message
func (*FieldPath) Reset ¶
func (x *FieldPath) Reset()
func (*FieldPath) String ¶
type GetTest ¶
type GetTest struct { // The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d" DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath,proto3" json:"doc_ref_path,omitempty"` // The request that the call should send to the Firestore service. Request *firestorepb.GetDocumentRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
Call to the DocumentRef.Get method.
func (*GetTest) Descriptor ¶
Deprecated: Use GetTest.ProtoReflect.Descriptor instead.
func (*GetTest) GetDocRefPath ¶
func (*GetTest) GetRequest ¶
func (x *GetTest) GetRequest() *firestorepb.GetDocumentRequest
func (*GetTest) ProtoMessage ¶
func (*GetTest) ProtoMessage()
func (*GetTest) ProtoReflect ¶
func (x *GetTest) ProtoReflect() protoreflect.Message
func (*GetTest) Reset ¶
func (x *GetTest) Reset()
func (*GetTest) String ¶
type ListenTest ¶
type ListenTest struct { Responses []*firestorepb.ListenResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` Snapshots []*Snapshot `protobuf:"bytes,2,rep,name=snapshots,proto3" json:"snapshots,omitempty"` IsError bool `protobuf:"varint,3,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"` // contains filtered or unexported fields }
A test of the Listen streaming RPC (a.k.a. FireStore watch). If the sequence of responses is provided to the implementation, it should produce the sequence of snapshots. If is_error is true, an error should occur after the snapshots.
The tests assume that the query is Collection("projects/projectID/databases/(default)/documents/C").OrderBy("a", Ascending)
The watch target ID used in these tests is 1. Test interpreters should either change their client's ID for testing, or change the ID in the tests before running them.
func (*ListenTest) Descriptor ¶
func (*ListenTest) Descriptor() ([]byte, []int)
Deprecated: Use ListenTest.ProtoReflect.Descriptor instead.
func (*ListenTest) GetIsError ¶
func (x *ListenTest) GetIsError() bool
func (*ListenTest) GetResponses ¶
func (x *ListenTest) GetResponses() []*firestorepb.ListenResponse
func (*ListenTest) GetSnapshots ¶
func (x *ListenTest) GetSnapshots() []*Snapshot
func (*ListenTest) ProtoMessage ¶
func (*ListenTest) ProtoMessage()
func (*ListenTest) ProtoReflect ¶
func (x *ListenTest) ProtoReflect() protoreflect.Message
func (*ListenTest) Reset ¶
func (x *ListenTest) Reset()
func (*ListenTest) String ¶
func (x *ListenTest) String() string
type OrderBy ¶
type OrderBy struct { Path *FieldPath `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Direction string `protobuf:"bytes,2,opt,name=direction,proto3" json:"direction,omitempty"` // "asc" or "desc" // contains filtered or unexported fields }
func (*OrderBy) Descriptor ¶
Deprecated: Use OrderBy.ProtoReflect.Descriptor instead.
func (*OrderBy) GetDirection ¶
func (*OrderBy) GetPath ¶
func (*OrderBy) ProtoMessage ¶
func (*OrderBy) ProtoMessage()
func (*OrderBy) ProtoReflect ¶
func (x *OrderBy) ProtoReflect() protoreflect.Message
func (*OrderBy) Reset ¶
func (x *OrderBy) Reset()
func (*OrderBy) String ¶
type QueryTest ¶
type QueryTest struct { CollPath string `protobuf:"bytes,1,opt,name=coll_path,json=collPath,proto3" json:"coll_path,omitempty"` // path of collection, e.g. "projects/projectID/databases/(default)/documents/C" Clauses []*Clause `protobuf:"bytes,2,rep,name=clauses,proto3" json:"clauses,omitempty"` Query *firestorepb.StructuredQuery `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` IsError bool `protobuf:"varint,4,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"` // contains filtered or unexported fields }
func (*QueryTest) Descriptor ¶
Deprecated: Use QueryTest.ProtoReflect.Descriptor instead.
func (*QueryTest) GetClauses ¶
func (*QueryTest) GetCollPath ¶
func (*QueryTest) GetIsError ¶
func (*QueryTest) GetQuery ¶
func (x *QueryTest) GetQuery() *firestorepb.StructuredQuery
func (*QueryTest) ProtoMessage ¶
func (*QueryTest) ProtoMessage()
func (*QueryTest) ProtoReflect ¶
func (x *QueryTest) ProtoReflect() protoreflect.Message
func (*QueryTest) Reset ¶
func (x *QueryTest) Reset()
func (*QueryTest) String ¶
type Select ¶
type Select struct { Fields []*FieldPath `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*Select) Descriptor ¶
Deprecated: Use Select.ProtoReflect.Descriptor instead.
func (*Select) GetFields ¶
func (*Select) ProtoMessage ¶
func (*Select) ProtoMessage()
func (*Select) ProtoReflect ¶
func (x *Select) ProtoReflect() protoreflect.Message
func (*Select) Reset ¶
func (x *Select) Reset()
func (*Select) String ¶
type SetOption ¶
type SetOption struct { All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` // if true, merge all fields ("fields" is ignored). Fields []*FieldPath `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` // field paths for a Merge option // contains filtered or unexported fields }
An option to the DocumentRef.Set call.
func (*SetOption) Descriptor ¶
Deprecated: Use SetOption.ProtoReflect.Descriptor instead.
func (*SetOption) GetAll ¶
func (*SetOption) GetFields ¶
func (*SetOption) ProtoMessage ¶
func (*SetOption) ProtoMessage()
func (*SetOption) ProtoReflect ¶
func (x *SetOption) ProtoReflect() protoreflect.Message
func (*SetOption) Reset ¶
func (x *SetOption) Reset()
func (*SetOption) String ¶
type SetTest ¶
type SetTest struct { DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath,proto3" json:"doc_ref_path,omitempty"` // path of doc Option *SetOption `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"` // option to the Set call, if any JsonData string `protobuf:"bytes,3,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // data (see CreateTest.json_data) Request *firestorepb.CommitRequest `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` // expected request IsError bool `protobuf:"varint,5,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"` // call signals an error // contains filtered or unexported fields }
A call to DocumentRef.Set.
func (*SetTest) Descriptor ¶
Deprecated: Use SetTest.ProtoReflect.Descriptor instead.
func (*SetTest) GetDocRefPath ¶
func (*SetTest) GetIsError ¶
func (*SetTest) GetJsonData ¶
func (*SetTest) GetOption ¶
func (*SetTest) GetRequest ¶
func (x *SetTest) GetRequest() *firestorepb.CommitRequest
func (*SetTest) ProtoMessage ¶
func (*SetTest) ProtoMessage()
func (*SetTest) ProtoReflect ¶
func (x *SetTest) ProtoReflect() protoreflect.Message
func (*SetTest) Reset ¶
func (x *SetTest) Reset()
func (*SetTest) String ¶
type Snapshot ¶
type Snapshot struct { Docs []*firestorepb.Document `protobuf:"bytes,1,rep,name=docs,proto3" json:"docs,omitempty"` Changes []*DocChange `protobuf:"bytes,2,rep,name=changes,proto3" json:"changes,omitempty"` ReadTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // contains filtered or unexported fields }
func (*Snapshot) Descriptor ¶
Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.
func (*Snapshot) GetChanges ¶
func (*Snapshot) GetDocs ¶
func (x *Snapshot) GetDocs() []*firestorepb.Document
func (*Snapshot) GetReadTime ¶
func (x *Snapshot) GetReadTime() *timestamppb.Timestamp
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message
func (*Snapshot) Reset ¶
func (x *Snapshot) Reset()
func (*Snapshot) String ¶
type Test ¶
type Test struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // short description of the test Comment string `protobuf:"bytes,10,opt,name=comment,proto3" json:"comment,omitempty"` // a comment describing the behavior being tested // Types that are assignable to Test: // // *Test_Get // *Test_Create // *Test_Set // *Test_Update // *Test_UpdatePaths // *Test_Delete // *Test_Query // *Test_Listen Test isTest_Test `protobuf_oneof:"test"` // contains filtered or unexported fields }
A Test describes a single client method call and its expected result.
func (*Test) Descriptor ¶
Deprecated: Use Test.ProtoReflect.Descriptor instead.
func (*Test) GetComment ¶
func (*Test) GetCreate ¶
func (x *Test) GetCreate() *CreateTest
func (*Test) GetDelete ¶
func (x *Test) GetDelete() *DeleteTest
func (*Test) GetDescription ¶
func (*Test) GetGet ¶
func (*Test) GetListen ¶
func (x *Test) GetListen() *ListenTest
func (*Test) GetQuery ¶
func (*Test) GetSet ¶
func (*Test) GetTest ¶
func (m *Test) GetTest() isTest_Test
func (*Test) GetUpdate ¶
func (x *Test) GetUpdate() *UpdateTest
func (*Test) GetUpdatePaths ¶
func (x *Test) GetUpdatePaths() *UpdatePathsTest
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
func (*Test) ProtoReflect ¶
func (x *Test) ProtoReflect() protoreflect.Message
func (*Test) Reset ¶
func (x *Test) Reset()
func (*Test) String ¶
type TestFile ¶
type TestFile struct { Tests []*Test `protobuf:"bytes,1,rep,name=tests,proto3" json:"tests,omitempty"` // contains filtered or unexported fields }
A collection of tests.
func (*TestFile) Descriptor ¶
Deprecated: Use TestFile.ProtoReflect.Descriptor instead.
func (*TestFile) GetTests ¶
func (*TestFile) ProtoMessage ¶
func (*TestFile) ProtoMessage()
func (*TestFile) ProtoReflect ¶
func (x *TestFile) ProtoReflect() protoreflect.Message
func (*TestFile) Reset ¶
func (x *TestFile) Reset()
func (*TestFile) String ¶
type Test_Create ¶
type Test_Create struct { Create *CreateTest `protobuf:"bytes,3,opt,name=create,proto3,oneof"` }
type Test_Delete ¶
type Test_Delete struct { Delete *DeleteTest `protobuf:"bytes,7,opt,name=delete,proto3,oneof"` }
type Test_Get ¶
type Test_Get struct { Get *GetTest `protobuf:"bytes,2,opt,name=get,proto3,oneof"` }
type Test_Listen ¶
type Test_Listen struct { Listen *ListenTest `protobuf:"bytes,9,opt,name=listen,proto3,oneof"` }
type Test_Query ¶
type Test_Query struct { Query *QueryTest `protobuf:"bytes,8,opt,name=query,proto3,oneof"` }
type Test_Set ¶
type Test_Set struct { Set *SetTest `protobuf:"bytes,4,opt,name=set,proto3,oneof"` }
type Test_Update ¶
type Test_Update struct { Update *UpdateTest `protobuf:"bytes,5,opt,name=update,proto3,oneof"` }
type Test_UpdatePaths ¶
type Test_UpdatePaths struct { UpdatePaths *UpdatePathsTest `protobuf:"bytes,6,opt,name=update_paths,json=updatePaths,proto3,oneof"` }
type UpdatePathsTest ¶
type UpdatePathsTest struct { DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath,proto3" json:"doc_ref_path,omitempty"` // path of doc Precondition *firestorepb.Precondition `protobuf:"bytes,2,opt,name=precondition,proto3" json:"precondition,omitempty"` // precondition in call, if any // parallel sequences: field_paths[i] corresponds to json_values[i] FieldPaths []*FieldPath `protobuf:"bytes,3,rep,name=field_paths,json=fieldPaths,proto3" json:"field_paths,omitempty"` // the argument field paths JsonValues []string `protobuf:"bytes,4,rep,name=json_values,json=jsonValues,proto3" json:"json_values,omitempty"` // the argument values, as JSON Request *firestorepb.CommitRequest `protobuf:"bytes,5,opt,name=request,proto3" json:"request,omitempty"` // expected rquest IsError bool `protobuf:"varint,6,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"` // call signals an error // contains filtered or unexported fields }
A call to the form of DocumentRef.Update that represents the data as a list of field paths and their values.
func (*UpdatePathsTest) Descriptor ¶
func (*UpdatePathsTest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePathsTest.ProtoReflect.Descriptor instead.
func (*UpdatePathsTest) GetDocRefPath ¶
func (x *UpdatePathsTest) GetDocRefPath() string
func (*UpdatePathsTest) GetFieldPaths ¶
func (x *UpdatePathsTest) GetFieldPaths() []*FieldPath
func (*UpdatePathsTest) GetIsError ¶
func (x *UpdatePathsTest) GetIsError() bool
func (*UpdatePathsTest) GetJsonValues ¶
func (x *UpdatePathsTest) GetJsonValues() []string
func (*UpdatePathsTest) GetPrecondition ¶
func (x *UpdatePathsTest) GetPrecondition() *firestorepb.Precondition
func (*UpdatePathsTest) GetRequest ¶
func (x *UpdatePathsTest) GetRequest() *firestorepb.CommitRequest
func (*UpdatePathsTest) ProtoMessage ¶
func (*UpdatePathsTest) ProtoMessage()
func (*UpdatePathsTest) ProtoReflect ¶
func (x *UpdatePathsTest) ProtoReflect() protoreflect.Message
func (*UpdatePathsTest) Reset ¶
func (x *UpdatePathsTest) Reset()
func (*UpdatePathsTest) String ¶
func (x *UpdatePathsTest) String() string
type UpdateTest ¶
type UpdateTest struct { DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath,proto3" json:"doc_ref_path,omitempty"` // path of doc Precondition *firestorepb.Precondition `protobuf:"bytes,2,opt,name=precondition,proto3" json:"precondition,omitempty"` // precondition in call, if any JsonData string `protobuf:"bytes,3,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // data (see CreateTest.json_data) Request *firestorepb.CommitRequest `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` // expected request IsError bool `protobuf:"varint,5,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"` // call signals an error // contains filtered or unexported fields }
A call to the form of DocumentRef.Update that represents the data as a map or dictionary.
func (*UpdateTest) Descriptor ¶
func (*UpdateTest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTest.ProtoReflect.Descriptor instead.
func (*UpdateTest) GetDocRefPath ¶
func (x *UpdateTest) GetDocRefPath() string
func (*UpdateTest) GetIsError ¶
func (x *UpdateTest) GetIsError() bool
func (*UpdateTest) GetJsonData ¶
func (x *UpdateTest) GetJsonData() string
func (*UpdateTest) GetPrecondition ¶
func (x *UpdateTest) GetPrecondition() *firestorepb.Precondition
func (*UpdateTest) GetRequest ¶
func (x *UpdateTest) GetRequest() *firestorepb.CommitRequest
func (*UpdateTest) ProtoMessage ¶
func (*UpdateTest) ProtoMessage()
func (*UpdateTest) ProtoReflect ¶
func (x *UpdateTest) ProtoReflect() protoreflect.Message
func (*UpdateTest) Reset ¶
func (x *UpdateTest) Reset()
func (*UpdateTest) String ¶
func (x *UpdateTest) String() string
type Where ¶
type Where struct { Path *FieldPath `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Op string `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"` JsonValue string `protobuf:"bytes,3,opt,name=json_value,json=jsonValue,proto3" json:"json_value,omitempty"` // contains filtered or unexported fields }
func (*Where) Descriptor ¶
Deprecated: Use Where.ProtoReflect.Descriptor instead.
func (*Where) GetJsonValue ¶
func (*Where) GetOp ¶
func (*Where) GetPath ¶
func (*Where) ProtoMessage ¶
func (*Where) ProtoMessage()
func (*Where) ProtoReflect ¶
func (x *Where) ProtoReflect() protoreflect.Message
func (*Where) Reset ¶
func (x *Where) Reset()
func (*Where) String ¶
Source Files ¶
tests.pb.go
- Version
- v1.18.0 (latest)
- Published
- Jan 2, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 29 minutes ago –
Tools for package owners.