Documentation ¶
Index ¶
- Variables
- type Clause
- func (*Clause) Descriptor() ([]byte, []int)deprecated
- 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)deprecated
- 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
- type DeleteTest
- func (*DeleteTest) Descriptor() ([]byte, []int)deprecated
- 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)deprecated
- 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)deprecated
- 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)deprecated
- 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
- type GetTest
- func (*GetTest) Descriptor() ([]byte, []int)deprecated
- 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)deprecated
- 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
- type QueryTest
- func (*QueryTest) Descriptor() ([]byte, []int)deprecated
- 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
- type SetOption
- type SetTest
- func (*SetTest) Descriptor() ([]byte, []int)deprecated
- 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)deprecated
- 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)deprecated
- 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
- 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)deprecated
- 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)deprecated
- 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
Constants ¶
This section is empty.
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
Functions ¶
This section is empty.
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
func (*Clause) GetEndBefore ¶
func (*Clause) GetOrderBy ¶
func (*Clause) GetStartAfter ¶
func (*Clause) GetStartAt ¶
func (*Clause) ProtoMessage ¶
func (*Clause) ProtoMessage()
func (*Clause) ProtoReflect ¶ added in v1.16.0
func (x *Clause) ProtoReflect() protoreflect.Message
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
deprecated
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 ¶ added in v1.16.0
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
func (*Cursor) GetDocSnapshot ¶
func (x *Cursor) GetDocSnapshot() *DocSnapshot
func (*Cursor) GetJsonValues ¶
func (*Cursor) ProtoMessage ¶
func (*Cursor) ProtoMessage()
func (*Cursor) ProtoReflect ¶ added in v1.16.0
func (x *Cursor) ProtoReflect() protoreflect.Message
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
deprecated
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 ¶ added in v1.16.0
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
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 ¶ added in v1.16.0
func (x *DocChange) ProtoReflect() protoreflect.Message
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 ¶ added in v1.16.0
func (DocChange_Kind) Descriptor() protoreflect.EnumDescriptor
func (DocChange_Kind) Enum ¶ added in v1.16.0
func (x DocChange_Kind) Enum() *DocChange_Kind
func (DocChange_Kind) EnumDescriptor
deprecated
func (DocChange_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use DocChange_Kind.Descriptor instead.
func (DocChange_Kind) Number ¶ added in v1.16.0
func (x DocChange_Kind) Number() protoreflect.EnumNumber
func (DocChange_Kind) String ¶
func (x DocChange_Kind) String() string
func (DocChange_Kind) Type ¶ added in v1.16.0
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
deprecated
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 ¶ added in v1.16.0
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
func (*FieldPath) ProtoMessage ¶
func (*FieldPath) ProtoMessage()
func (*FieldPath) ProtoReflect ¶ added in v1.16.0
func (x *FieldPath) ProtoReflect() protoreflect.Message
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
func (*GetTest) GetDocRefPath ¶
func (*GetTest) GetRequest ¶
func (x *GetTest) GetRequest() *firestorepb.GetDocumentRequest
func (*GetTest) ProtoMessage ¶
func (*GetTest) ProtoMessage()
func (*GetTest) ProtoReflect ¶ added in v1.16.0
func (x *GetTest) ProtoReflect() protoreflect.Message
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
deprecated
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 ¶ added in v1.16.0
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
func (*OrderBy) GetDirection ¶
func (*OrderBy) ProtoMessage ¶
func (*OrderBy) ProtoMessage()
func (*OrderBy) ProtoReflect ¶ added in v1.16.0
func (x *OrderBy) ProtoReflect() protoreflect.Message
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
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 ¶ added in v1.16.0
func (x *QueryTest) ProtoReflect() protoreflect.Message
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
func (*Select) ProtoMessage ¶
func (*Select) ProtoMessage()
func (*Select) ProtoReflect ¶ added in v1.16.0
func (x *Select) ProtoReflect() protoreflect.Message
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
func (*SetOption) ProtoMessage ¶
func (*SetOption) ProtoMessage()
func (*SetOption) ProtoReflect ¶ added in v1.16.0
func (x *SetOption) ProtoReflect() protoreflect.Message
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
func (*SetTest) GetDocRefPath ¶
func (*SetTest) GetIsError ¶
func (*SetTest) GetJsonData ¶
func (*SetTest) GetRequest ¶
func (x *SetTest) GetRequest() *firestorepb.CommitRequest
func (*SetTest) ProtoMessage ¶
func (*SetTest) ProtoMessage()
func (*SetTest) ProtoReflect ¶ added in v1.16.0
func (x *SetTest) ProtoReflect() protoreflect.Message
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
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 ¶ added in v1.16.0
func (x *Snapshot) ProtoReflect() protoreflect.Message
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
func (*Test) GetComment ¶
func (*Test) GetCreate ¶
func (x *Test) GetCreate() *CreateTest
func (*Test) GetDelete ¶
func (x *Test) GetDelete() *DeleteTest
func (*Test) GetDescription ¶
func (*Test) GetListen ¶
func (x *Test) GetListen() *ListenTest
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 ¶ added in v1.16.0
func (x *Test) ProtoReflect() protoreflect.Message
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
func (*TestFile) ProtoMessage ¶
func (*TestFile) ProtoMessage()
func (*TestFile) ProtoReflect ¶ added in v1.16.0
func (x *TestFile) ProtoReflect() protoreflect.Message
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
deprecated
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 ¶ added in v1.16.0
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
deprecated
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 ¶ added in v1.16.0
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
func (*Where) GetJsonValue ¶
func (*Where) ProtoMessage ¶
func (*Where) ProtoMessage()
func (*Where) ProtoReflect ¶ added in v1.16.0
func (x *Where) ProtoReflect() protoreflect.Message