tests

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tests is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

TestSuite
Test
GetTest
CreateTest
SetTest
UpdateTest
UpdatePathsTest
DeleteTest
SetOption
QueryTest
Clause
Select
Where
OrderBy
Cursor
DocSnapshot
FieldPath
ListenTest
Snapshot
DocChange

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",
}
View Source
var DocChange_Kind_value = map[string]int32{
	"KIND_UNSPECIFIED": 0,
	"ADDED":            1,
	"REMOVED":          2,
	"MODIFIED":         3,
}

Functions

This section is empty.

Types

type Clause added in v0.19.0

type Clause struct {
	// Types that are valid to be assigned 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"`
}

func (*Clause) Descriptor added in v0.19.0

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

func (*Clause) GetClause added in v0.19.0

func (m *Clause) GetClause() isClause_Clause

func (*Clause) GetEndAt added in v0.19.0

func (m *Clause) GetEndAt() *Cursor

func (*Clause) GetEndBefore added in v0.19.0

func (m *Clause) GetEndBefore() *Cursor

func (*Clause) GetLimit added in v0.19.0

func (m *Clause) GetLimit() int32

func (*Clause) GetOffset added in v0.19.0

func (m *Clause) GetOffset() int32

func (*Clause) GetOrderBy added in v0.19.0

func (m *Clause) GetOrderBy() *OrderBy

func (*Clause) GetSelect added in v0.19.0

func (m *Clause) GetSelect() *Select

func (*Clause) GetStartAfter added in v0.19.0

func (m *Clause) GetStartAfter() *Cursor

func (*Clause) GetStartAt added in v0.19.0

func (m *Clause) GetStartAt() *Cursor

func (*Clause) GetWhere added in v0.19.0

func (m *Clause) GetWhere() *Where

func (*Clause) ProtoMessage added in v0.19.0

func (*Clause) ProtoMessage()

func (*Clause) Reset added in v0.19.0

func (m *Clause) Reset()

func (*Clause) String added in v0.19.0

func (m *Clause) String() string

func (*Clause) XXX_OneofFuncs added in v0.19.0

func (*Clause) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Clause_EndAt added in v0.19.0

type Clause_EndAt struct {
	EndAt *Cursor `protobuf:"bytes,8,opt,name=end_at,json=endAt,oneof"`
}

type Clause_EndBefore added in v0.19.0

type Clause_EndBefore struct {
	EndBefore *Cursor `protobuf:"bytes,9,opt,name=end_before,json=endBefore,oneof"`
}

type Clause_Limit added in v0.19.0

type Clause_Limit struct {
	Limit int32 `protobuf:"varint,5,opt,name=limit,oneof"`
}

type Clause_Offset added in v0.19.0

type Clause_Offset struct {
	Offset int32 `protobuf:"varint,4,opt,name=offset,oneof"`
}

type Clause_OrderBy added in v0.19.0

type Clause_OrderBy struct {
	OrderBy *OrderBy `protobuf:"bytes,3,opt,name=order_by,json=orderBy,oneof"`
}

type Clause_Select added in v0.19.0

type Clause_Select struct {
	Select *Select `protobuf:"bytes,1,opt,name=select,oneof"`
}

type Clause_StartAfter added in v0.19.0

type Clause_StartAfter struct {
	StartAfter *Cursor `protobuf:"bytes,7,opt,name=start_after,json=startAfter,oneof"`
}

type Clause_StartAt added in v0.19.0

type Clause_StartAt struct {
	StartAt *Cursor `protobuf:"bytes,6,opt,name=start_at,json=startAt,oneof"`
}

type Clause_Where added in v0.19.0

type Clause_Where struct {
	Where *Where `protobuf:"bytes,2,opt,name=where,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" 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" json:"json_data,omitempty"`
	// The request that the call should generate.
	Request *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,3,opt,name=request" 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" json:"is_error,omitempty"`
}

Call to DocumentRef.Create.

func (*CreateTest) Descriptor

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

func (*CreateTest) GetDocRefPath

func (m *CreateTest) GetDocRefPath() string

func (*CreateTest) GetIsError

func (m *CreateTest) GetIsError() bool

func (*CreateTest) GetJsonData

func (m *CreateTest) GetJsonData() string

func (*CreateTest) GetRequest

func (*CreateTest) ProtoMessage

func (*CreateTest) ProtoMessage()

func (*CreateTest) Reset

func (m *CreateTest) Reset()

func (*CreateTest) String

func (m *CreateTest) String() string

type Cursor added in v0.19.0

type Cursor struct {
	// one of:
	DocSnapshot *DocSnapshot `protobuf:"bytes,1,opt,name=doc_snapshot,json=docSnapshot" json:"doc_snapshot,omitempty"`
	JsonValues  []string     `protobuf:"bytes,2,rep,name=json_values,json=jsonValues" json:"json_values,omitempty"`
}

func (*Cursor) Descriptor added in v0.19.0

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

func (*Cursor) GetDocSnapshot added in v0.19.0

func (m *Cursor) GetDocSnapshot() *DocSnapshot

func (*Cursor) GetJsonValues added in v0.19.0

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

func (*Cursor) ProtoMessage added in v0.19.0

func (*Cursor) ProtoMessage()

func (*Cursor) Reset added in v0.19.0

func (m *Cursor) Reset()

func (*Cursor) String added in v0.19.0

func (m *Cursor) String() string

type DeleteTest

type DeleteTest struct {
	DocRefPath   string                                   `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
	Precondition *google_firestore_v1beta1.Precondition   `protobuf:"bytes,2,opt,name=precondition" json:"precondition,omitempty"`
	Request      *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,3,opt,name=request" json:"request,omitempty"`
	IsError      bool                                     `protobuf:"varint,4,opt,name=is_error,json=isError" json:"is_error,omitempty"`
}

A call to DocmentRef.Delete

func (*DeleteTest) Descriptor

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

func (*DeleteTest) GetDocRefPath

func (m *DeleteTest) GetDocRefPath() string

func (*DeleteTest) GetIsError

func (m *DeleteTest) GetIsError() bool

func (*DeleteTest) GetPrecondition

func (m *DeleteTest) GetPrecondition() *google_firestore_v1beta1.Precondition

func (*DeleteTest) GetRequest

func (*DeleteTest) ProtoMessage

func (*DeleteTest) ProtoMessage()

func (*DeleteTest) Reset

func (m *DeleteTest) Reset()

func (*DeleteTest) String

func (m *DeleteTest) String() string

type DocChange added in v0.22.0

type DocChange struct {
	Kind     DocChange_Kind                      `protobuf:"varint,1,opt,name=kind,enum=tests.DocChange_Kind" json:"kind,omitempty"`
	Doc      *google_firestore_v1beta11.Document `protobuf:"bytes,2,opt,name=doc" json:"doc,omitempty"`
	OldIndex int32                               `protobuf:"varint,3,opt,name=old_index,json=oldIndex" json:"old_index,omitempty"`
	NewIndex int32                               `protobuf:"varint,4,opt,name=new_index,json=newIndex" json:"new_index,omitempty"`
}

func (*DocChange) Descriptor added in v0.22.0

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

func (*DocChange) GetDoc added in v0.22.0

func (*DocChange) GetKind added in v0.22.0

func (m *DocChange) GetKind() DocChange_Kind

func (*DocChange) GetNewIndex added in v0.22.0

func (m *DocChange) GetNewIndex() int32

func (*DocChange) GetOldIndex added in v0.22.0

func (m *DocChange) GetOldIndex() int32

func (*DocChange) ProtoMessage added in v0.22.0

func (*DocChange) ProtoMessage()

func (*DocChange) Reset added in v0.22.0

func (m *DocChange) Reset()

func (*DocChange) String added in v0.22.0

func (m *DocChange) String() string

type DocChange_Kind added in v0.22.0

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) EnumDescriptor added in v0.22.0

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

func (DocChange_Kind) String added in v0.22.0

func (x DocChange_Kind) String() string

type DocSnapshot added in v0.19.0

type DocSnapshot struct {
	Path     string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData" json:"json_data,omitempty"`
}

func (*DocSnapshot) Descriptor added in v0.19.0

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

func (*DocSnapshot) GetJsonData added in v0.19.0

func (m *DocSnapshot) GetJsonData() string

func (*DocSnapshot) GetPath added in v0.19.0

func (m *DocSnapshot) GetPath() string

func (*DocSnapshot) ProtoMessage added in v0.19.0

func (*DocSnapshot) ProtoMessage()

func (*DocSnapshot) Reset added in v0.19.0

func (m *DocSnapshot) Reset()

func (*DocSnapshot) String added in v0.19.0

func (m *DocSnapshot) String() string

type FieldPath

type FieldPath struct {
	Field []string `protobuf:"bytes,1,rep,name=field" json:"field,omitempty"`
}

func (*FieldPath) Descriptor

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

func (*FieldPath) GetField

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

func (*FieldPath) ProtoMessage

func (*FieldPath) ProtoMessage()

func (*FieldPath) Reset

func (m *FieldPath) Reset()

func (*FieldPath) String

func (m *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" json:"doc_ref_path,omitempty"`
	// The request that the call should send to the Firestore service.
	Request *google_firestore_v1beta14.GetDocumentRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"`
}

Call to the DocumentRef.Get method.

func (*GetTest) Descriptor

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

func (*GetTest) GetDocRefPath

func (m *GetTest) GetDocRefPath() string

func (*GetTest) GetRequest

func (*GetTest) ProtoMessage

func (*GetTest) ProtoMessage()

func (*GetTest) Reset

func (m *GetTest) Reset()

func (*GetTest) String

func (m *GetTest) String() string

type ListenTest added in v0.22.0

type ListenTest struct {
	Responses []*google_firestore_v1beta14.ListenResponse `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"`
	Snapshots []*Snapshot                                 `protobuf:"bytes,2,rep,name=snapshots" json:"snapshots,omitempty"`
	IsError   bool                                        `protobuf:"varint,3,opt,name=is_error,json=isError" json:"is_error,omitempty"`
}

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 added in v0.22.0

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

func (*ListenTest) GetIsError added in v0.22.0

func (m *ListenTest) GetIsError() bool

func (*ListenTest) GetResponses added in v0.22.0

func (*ListenTest) GetSnapshots added in v0.22.0

func (m *ListenTest) GetSnapshots() []*Snapshot

func (*ListenTest) ProtoMessage added in v0.22.0

func (*ListenTest) ProtoMessage()

func (*ListenTest) Reset added in v0.22.0

func (m *ListenTest) Reset()

func (*ListenTest) String added in v0.22.0

func (m *ListenTest) String() string

type OrderBy added in v0.19.0

type OrderBy struct {
	Path      *FieldPath `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	Direction string     `protobuf:"bytes,2,opt,name=direction" json:"direction,omitempty"`
}

func (*OrderBy) Descriptor added in v0.19.0

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

func (*OrderBy) GetDirection added in v0.19.0

func (m *OrderBy) GetDirection() string

func (*OrderBy) GetPath added in v0.19.0

func (m *OrderBy) GetPath() *FieldPath

func (*OrderBy) ProtoMessage added in v0.19.0

func (*OrderBy) ProtoMessage()

func (*OrderBy) Reset added in v0.19.0

func (m *OrderBy) Reset()

func (*OrderBy) String added in v0.19.0

func (m *OrderBy) String() string

type QueryTest added in v0.19.0

type QueryTest struct {
	CollPath string                                     `protobuf:"bytes,1,opt,name=coll_path,json=collPath" json:"coll_path,omitempty"`
	Clauses  []*Clause                                  `protobuf:"bytes,2,rep,name=clauses" json:"clauses,omitempty"`
	Query    *google_firestore_v1beta12.StructuredQuery `protobuf:"bytes,3,opt,name=query" json:"query,omitempty"`
	IsError  bool                                       `protobuf:"varint,4,opt,name=is_error,json=isError" json:"is_error,omitempty"`
}

func (*QueryTest) Descriptor added in v0.19.0

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

func (*QueryTest) GetClauses added in v0.19.0

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

func (*QueryTest) GetCollPath added in v0.19.0

func (m *QueryTest) GetCollPath() string

func (*QueryTest) GetIsError added in v0.19.0

func (m *QueryTest) GetIsError() bool

func (*QueryTest) GetQuery added in v0.19.0

func (*QueryTest) ProtoMessage added in v0.19.0

func (*QueryTest) ProtoMessage()

func (*QueryTest) Reset added in v0.19.0

func (m *QueryTest) Reset()

func (*QueryTest) String added in v0.19.0

func (m *QueryTest) String() string

type Select added in v0.19.0

type Select struct {
	Fields []*FieldPath `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
}

func (*Select) Descriptor added in v0.19.0

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

func (*Select) GetFields added in v0.19.0

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

func (*Select) ProtoMessage added in v0.19.0

func (*Select) ProtoMessage()

func (*Select) Reset added in v0.19.0

func (m *Select) Reset()

func (*Select) String added in v0.19.0

func (m *Select) String() string

type SetOption

type SetOption struct {
	All    bool         `protobuf:"varint,1,opt,name=all" json:"all,omitempty"`
	Fields []*FieldPath `protobuf:"bytes,2,rep,name=fields" json:"fields,omitempty"`
}

An option to the DocumentRef.Set call.

func (*SetOption) Descriptor

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

func (*SetOption) GetAll

func (m *SetOption) GetAll() bool

func (*SetOption) GetFields

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

func (*SetOption) ProtoMessage

func (*SetOption) ProtoMessage()

func (*SetOption) Reset

func (m *SetOption) Reset()

func (*SetOption) String

func (m *SetOption) String() string

type SetTest

type SetTest struct {
	DocRefPath string                                   `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
	Option     *SetOption                               `protobuf:"bytes,2,opt,name=option" json:"option,omitempty"`
	JsonData   string                                   `protobuf:"bytes,3,opt,name=json_data,json=jsonData" json:"json_data,omitempty"`
	Request    *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,4,opt,name=request" json:"request,omitempty"`
	IsError    bool                                     `protobuf:"varint,5,opt,name=is_error,json=isError" json:"is_error,omitempty"`
}

A call to DocumentRef.Set.

func (*SetTest) Descriptor

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

func (*SetTest) GetDocRefPath

func (m *SetTest) GetDocRefPath() string

func (*SetTest) GetIsError

func (m *SetTest) GetIsError() bool

func (*SetTest) GetJsonData

func (m *SetTest) GetJsonData() string

func (*SetTest) GetOption

func (m *SetTest) GetOption() *SetOption

func (*SetTest) GetRequest

func (*SetTest) ProtoMessage

func (*SetTest) ProtoMessage()

func (*SetTest) Reset

func (m *SetTest) Reset()

func (*SetTest) String

func (m *SetTest) String() string

type Snapshot added in v0.22.0

type Snapshot struct {
	Docs     []*google_firestore_v1beta11.Document `protobuf:"bytes,1,rep,name=docs" json:"docs,omitempty"`
	Changes  []*DocChange                          `protobuf:"bytes,2,rep,name=changes" json:"changes,omitempty"`
	ReadTime *google_protobuf1.Timestamp           `protobuf:"bytes,3,opt,name=read_time,json=readTime" json:"read_time,omitempty"`
}

func (*Snapshot) Descriptor added in v0.22.0

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

func (*Snapshot) GetChanges added in v0.22.0

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

func (*Snapshot) GetDocs added in v0.22.0

func (*Snapshot) GetReadTime added in v0.22.0

func (m *Snapshot) GetReadTime() *google_protobuf1.Timestamp

func (*Snapshot) ProtoMessage added in v0.22.0

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset added in v0.22.0

func (m *Snapshot) Reset()

func (*Snapshot) String added in v0.22.0

func (m *Snapshot) String() string

type Test

type Test struct {
	Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
	// Types that are valid to be assigned to Test:
	//	*Test_Get
	//	*Test_Create
	//	*Test_Set
	//	*Test_Update
	//	*Test_UpdatePaths
	//	*Test_Delete
	//	*Test_Query
	//	*Test_Listen
	Test isTest_Test `protobuf_oneof:"test"`
}

A Test describes a single client method call and its expected result.

func (*Test) Descriptor

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

func (*Test) GetCreate

func (m *Test) GetCreate() *CreateTest

func (*Test) GetDelete

func (m *Test) GetDelete() *DeleteTest

func (*Test) GetDescription

func (m *Test) GetDescription() string

func (*Test) GetGet

func (m *Test) GetGet() *GetTest

func (*Test) GetListen added in v0.22.0

func (m *Test) GetListen() *ListenTest

func (*Test) GetQuery added in v0.19.0

func (m *Test) GetQuery() *QueryTest

func (*Test) GetSet

func (m *Test) GetSet() *SetTest

func (*Test) GetTest

func (m *Test) GetTest() isTest_Test

func (*Test) GetUpdate

func (m *Test) GetUpdate() *UpdateTest

func (*Test) GetUpdatePaths

func (m *Test) GetUpdatePaths() *UpdatePathsTest

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) Reset

func (m *Test) Reset()

func (*Test) String

func (m *Test) String() string

func (*Test) XXX_OneofFuncs

func (*Test) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type TestSuite added in v0.19.0

type TestSuite struct {
	Tests []*Test `protobuf:"bytes,1,rep,name=tests" json:"tests,omitempty"`
}

A collection of tests.

func (*TestSuite) Descriptor added in v0.19.0

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

func (*TestSuite) GetTests added in v0.19.0

func (m *TestSuite) GetTests() []*Test

func (*TestSuite) ProtoMessage added in v0.19.0

func (*TestSuite) ProtoMessage()

func (*TestSuite) Reset added in v0.19.0

func (m *TestSuite) Reset()

func (*TestSuite) String added in v0.19.0

func (m *TestSuite) String() string

type Test_Create

type Test_Create struct {
	Create *CreateTest `protobuf:"bytes,3,opt,name=create,oneof"`
}

type Test_Delete

type Test_Delete struct {
	Delete *DeleteTest `protobuf:"bytes,7,opt,name=delete,oneof"`
}

type Test_Get

type Test_Get struct {
	Get *GetTest `protobuf:"bytes,2,opt,name=get,oneof"`
}

type Test_Listen added in v0.22.0

type Test_Listen struct {
	Listen *ListenTest `protobuf:"bytes,9,opt,name=listen,oneof"`
}

type Test_Query added in v0.19.0

type Test_Query struct {
	Query *QueryTest `protobuf:"bytes,8,opt,name=query,oneof"`
}

type Test_Set

type Test_Set struct {
	Set *SetTest `protobuf:"bytes,4,opt,name=set,oneof"`
}

type Test_Update

type Test_Update struct {
	Update *UpdateTest `protobuf:"bytes,5,opt,name=update,oneof"`
}

type Test_UpdatePaths

type Test_UpdatePaths struct {
	UpdatePaths *UpdatePathsTest `protobuf:"bytes,6,opt,name=update_paths,json=updatePaths,oneof"`
}

type UpdatePathsTest

type UpdatePathsTest struct {
	DocRefPath   string                                 `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
	Precondition *google_firestore_v1beta1.Precondition `protobuf:"bytes,2,opt,name=precondition" json:"precondition,omitempty"`
	// parallel sequences: field_paths[i] corresponds to json_values[i]
	FieldPaths []*FieldPath                             `protobuf:"bytes,3,rep,name=field_paths,json=fieldPaths" json:"field_paths,omitempty"`
	JsonValues []string                                 `protobuf:"bytes,4,rep,name=json_values,json=jsonValues" json:"json_values,omitempty"`
	Request    *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,5,opt,name=request" json:"request,omitempty"`
	IsError    bool                                     `protobuf:"varint,6,opt,name=is_error,json=isError" json:"is_error,omitempty"`
}

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)

func (*UpdatePathsTest) GetDocRefPath

func (m *UpdatePathsTest) GetDocRefPath() string

func (*UpdatePathsTest) GetFieldPaths

func (m *UpdatePathsTest) GetFieldPaths() []*FieldPath

func (*UpdatePathsTest) GetIsError

func (m *UpdatePathsTest) GetIsError() bool

func (*UpdatePathsTest) GetJsonValues

func (m *UpdatePathsTest) GetJsonValues() []string

func (*UpdatePathsTest) GetPrecondition

func (*UpdatePathsTest) GetRequest

func (*UpdatePathsTest) ProtoMessage

func (*UpdatePathsTest) ProtoMessage()

func (*UpdatePathsTest) Reset

func (m *UpdatePathsTest) Reset()

func (*UpdatePathsTest) String

func (m *UpdatePathsTest) String() string

type UpdateTest

type UpdateTest struct {
	DocRefPath   string                                   `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
	Precondition *google_firestore_v1beta1.Precondition   `protobuf:"bytes,2,opt,name=precondition" json:"precondition,omitempty"`
	JsonData     string                                   `protobuf:"bytes,3,opt,name=json_data,json=jsonData" json:"json_data,omitempty"`
	Request      *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,4,opt,name=request" json:"request,omitempty"`
	IsError      bool                                     `protobuf:"varint,5,opt,name=is_error,json=isError" json:"is_error,omitempty"`
}

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)

func (*UpdateTest) GetDocRefPath

func (m *UpdateTest) GetDocRefPath() string

func (*UpdateTest) GetIsError

func (m *UpdateTest) GetIsError() bool

func (*UpdateTest) GetJsonData

func (m *UpdateTest) GetJsonData() string

func (*UpdateTest) GetPrecondition

func (m *UpdateTest) GetPrecondition() *google_firestore_v1beta1.Precondition

func (*UpdateTest) GetRequest

func (*UpdateTest) ProtoMessage

func (*UpdateTest) ProtoMessage()

func (*UpdateTest) Reset

func (m *UpdateTest) Reset()

func (*UpdateTest) String

func (m *UpdateTest) String() string

type Where added in v0.19.0

type Where struct {
	Path      *FieldPath `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	Op        string     `protobuf:"bytes,2,opt,name=op" json:"op,omitempty"`
	JsonValue string     `protobuf:"bytes,3,opt,name=json_value,json=jsonValue" json:"json_value,omitempty"`
}

func (*Where) Descriptor added in v0.19.0

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

func (*Where) GetJsonValue added in v0.19.0

func (m *Where) GetJsonValue() string

func (*Where) GetOp added in v0.19.0

func (m *Where) GetOp() string

func (*Where) GetPath added in v0.19.0

func (m *Where) GetPath() *FieldPath

func (*Where) ProtoMessage added in v0.19.0

func (*Where) ProtoMessage()

func (*Where) Reset added in v0.19.0

func (m *Where) Reset()

func (*Where) String added in v0.19.0

func (m *Where) String() string

Jump to

Keyboard shortcuts

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