conformance

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

Generating tests.pb.go

# Note: Change /usr/local/google/home/deklerk/workspace/googleapis to wherever
# you've installed https://github.com/googleapis/googleapis.
# Note: Run whilst cd-ed in this directory.
protoc --go_out=. -I /usr/local/google/home/deklerk/workspace/googleapis -I . *.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Clause.ProtoReflect.Descriptor instead.

func (*Clause) GetClause

func (m *Clause) GetClause() isClause_Clause

func (*Clause) GetEndAt

func (x *Clause) GetEndAt() *Cursor

func (*Clause) GetEndBefore

func (x *Clause) GetEndBefore() *Cursor

func (*Clause) GetLimit

func (x *Clause) GetLimit() int32

func (*Clause) GetOffset

func (x *Clause) GetOffset() int32

func (*Clause) GetOrderBy

func (x *Clause) GetOrderBy() *OrderBy

func (*Clause) GetSelect

func (x *Clause) GetSelect() *Select

func (*Clause) GetStartAfter

func (x *Clause) GetStartAfter() *Cursor

func (*Clause) GetStartAt

func (x *Clause) GetStartAt() *Cursor

func (*Clause) GetWhere

func (x *Clause) GetWhere() *Where

func (*Clause) ProtoMessage

func (*Clause) ProtoMessage()

func (*Clause) ProtoReflect added in v1.16.0

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

func (*Clause) Reset

func (x *Clause) Reset()

func (*Clause) String

func (x *Clause) String() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Cursor.ProtoReflect.Descriptor instead.

func (*Cursor) GetDocSnapshot

func (x *Cursor) GetDocSnapshot() *DocSnapshot

func (*Cursor) GetJsonValues

func (x *Cursor) GetJsonValues() []string

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect added in v1.16.0

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

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) String

func (x *Cursor) String() 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 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) Descriptor() ([]byte, []int)

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 (x *DocChange) GetNewIndex() int32

func (*DocChange) GetOldIndex

func (x *DocChange) GetOldIndex() int32

func (*DocChange) ProtoMessage

func (*DocChange) ProtoMessage()

func (*DocChange) ProtoReflect added in v1.16.0

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

func (*DocChange) Reset

func (x *DocChange) Reset()

func (*DocChange) String

func (x *DocChange) String() 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 added in v1.16.0

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 (DocChange_Kind) String

func (x DocChange_Kind) String() string

func (DocChange_Kind) Type added in v1.16.0

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) Descriptor() ([]byte, []int)

Deprecated: Use FieldPath.ProtoReflect.Descriptor instead.

func (*FieldPath) GetField

func (x *FieldPath) GetField() []string

func (*FieldPath) ProtoMessage

func (*FieldPath) ProtoMessage()

func (*FieldPath) ProtoReflect added in v1.16.0

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

func (*FieldPath) Reset

func (x *FieldPath) Reset()

func (*FieldPath) String

func (x *FieldPath) String() 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

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

Deprecated: Use GetTest.ProtoReflect.Descriptor instead.

func (*GetTest) GetDocRefPath

func (x *GetTest) GetDocRefPath() string

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

func (*GetTest) Reset

func (x *GetTest) Reset()

func (*GetTest) String

func (x *GetTest) String() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy) GetDirection

func (x *OrderBy) GetDirection() string

func (*OrderBy) GetPath

func (x *OrderBy) GetPath() *FieldPath

func (*OrderBy) ProtoMessage

func (*OrderBy) ProtoMessage()

func (*OrderBy) ProtoReflect added in v1.16.0

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

func (*OrderBy) Reset

func (x *OrderBy) Reset()

func (*OrderBy) String

func (x *OrderBy) String() 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

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

Deprecated: Use QueryTest.ProtoReflect.Descriptor instead.

func (*QueryTest) GetClauses

func (x *QueryTest) GetClauses() []*Clause

func (*QueryTest) GetCollPath

func (x *QueryTest) GetCollPath() string

func (*QueryTest) GetIsError

func (x *QueryTest) GetIsError() bool

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

func (*QueryTest) Reset

func (x *QueryTest) Reset()

func (*QueryTest) String

func (x *QueryTest) String() 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

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

Deprecated: Use Select.ProtoReflect.Descriptor instead.

func (*Select) GetFields

func (x *Select) GetFields() []*FieldPath

func (*Select) ProtoMessage

func (*Select) ProtoMessage()

func (*Select) ProtoReflect added in v1.16.0

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

func (*Select) Reset

func (x *Select) Reset()

func (*Select) String

func (x *Select) String() 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

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

Deprecated: Use SetOption.ProtoReflect.Descriptor instead.

func (*SetOption) GetAll

func (x *SetOption) GetAll() bool

func (*SetOption) GetFields

func (x *SetOption) GetFields() []*FieldPath

func (*SetOption) ProtoMessage

func (*SetOption) ProtoMessage()

func (*SetOption) ProtoReflect added in v1.16.0

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

func (*SetOption) Reset

func (x *SetOption) Reset()

func (*SetOption) String

func (x *SetOption) String() 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

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

Deprecated: Use SetTest.ProtoReflect.Descriptor instead.

func (*SetTest) GetDocRefPath

func (x *SetTest) GetDocRefPath() string

func (*SetTest) GetIsError

func (x *SetTest) GetIsError() bool

func (*SetTest) GetJsonData

func (x *SetTest) GetJsonData() string

func (*SetTest) GetOption

func (x *SetTest) GetOption() *SetOption

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

func (*SetTest) Reset

func (x *SetTest) Reset()

func (*SetTest) String

func (x *SetTest) String() 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

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

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetChanges

func (x *Snapshot) GetChanges() []*DocChange

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

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() 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

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

Deprecated: Use Test.ProtoReflect.Descriptor instead.

func (*Test) GetComment

func (x *Test) GetComment() string

func (*Test) GetCreate

func (x *Test) GetCreate() *CreateTest

func (*Test) GetDelete

func (x *Test) GetDelete() *DeleteTest

func (*Test) GetDescription

func (x *Test) GetDescription() string

func (*Test) GetGet

func (x *Test) GetGet() *GetTest

func (*Test) GetListen

func (x *Test) GetListen() *ListenTest

func (*Test) GetQuery

func (x *Test) GetQuery() *QueryTest

func (*Test) GetSet

func (x *Test) GetSet() *SetTest

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 added in v1.16.0

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

func (*Test) Reset

func (x *Test) Reset()

func (*Test) String

func (x *Test) String() 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

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

Deprecated: Use TestFile.ProtoReflect.Descriptor instead.

func (*TestFile) GetTests

func (x *TestFile) GetTests() []*Test

func (*TestFile) ProtoMessage

func (*TestFile) ProtoMessage()

func (*TestFile) ProtoReflect added in v1.16.0

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

func (*TestFile) Reset

func (x *TestFile) Reset()

func (*TestFile) String

func (x *TestFile) String() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Where.ProtoReflect.Descriptor instead.

func (*Where) GetJsonValue

func (x *Where) GetJsonValue() string

func (*Where) GetOp

func (x *Where) GetOp() string

func (*Where) GetPath

func (x *Where) GetPath() *FieldPath

func (*Where) ProtoMessage

func (*Where) ProtoMessage()

func (*Where) ProtoReflect added in v1.16.0

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

func (*Where) Reset

func (x *Where) Reset()

func (*Where) String

func (x *Where) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL