Documentation ¶
Overview ¶
Package tests is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
Test GetTest CreateTest SetTest UpdateTest UpdatePathsTest DeleteTest SetOption FieldPath
Index ¶
- type CreateTest
- func (*CreateTest) Descriptor() ([]byte, []int)
- func (m *CreateTest) GetDocRefPath() string
- func (m *CreateTest) GetIsError() bool
- func (m *CreateTest) GetJsonData() string
- func (m *CreateTest) GetRequest() *google_firestore_v1beta14.CommitRequest
- func (*CreateTest) ProtoMessage()
- func (m *CreateTest) Reset()
- func (m *CreateTest) String() string
- type DeleteTest
- func (*DeleteTest) Descriptor() ([]byte, []int)
- func (m *DeleteTest) GetDocRefPath() string
- func (m *DeleteTest) GetIsError() bool
- func (m *DeleteTest) GetPrecondition() *google_firestore_v1beta1.Precondition
- func (m *DeleteTest) GetRequest() *google_firestore_v1beta14.CommitRequest
- func (*DeleteTest) ProtoMessage()
- func (m *DeleteTest) Reset()
- func (m *DeleteTest) String() string
- type FieldPath
- type GetTest
- type SetOption
- type SetTest
- func (*SetTest) Descriptor() ([]byte, []int)
- func (m *SetTest) GetDocRefPath() string
- func (m *SetTest) GetIsError() bool
- func (m *SetTest) GetJsonData() string
- func (m *SetTest) GetOption() *SetOption
- func (m *SetTest) GetRequest() *google_firestore_v1beta14.CommitRequest
- func (*SetTest) ProtoMessage()
- func (m *SetTest) Reset()
- func (m *SetTest) String() string
- type Test
- func (*Test) Descriptor() ([]byte, []int)
- func (m *Test) GetCreate() *CreateTest
- func (m *Test) GetDelete() *DeleteTest
- func (m *Test) GetDescription() string
- func (m *Test) GetGet() *GetTest
- func (m *Test) GetSet() *SetTest
- func (m *Test) GetTest() isTest_Test
- func (m *Test) GetUpdate() *UpdateTest
- func (m *Test) GetUpdatePaths() *UpdatePathsTest
- func (*Test) ProtoMessage()
- func (m *Test) Reset()
- func (m *Test) String() string
- func (*Test) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Test_Create
- type Test_Delete
- type Test_Get
- type Test_Set
- type Test_Update
- type Test_UpdatePaths
- type UpdatePathsTest
- func (*UpdatePathsTest) Descriptor() ([]byte, []int)
- func (m *UpdatePathsTest) GetDocRefPath() string
- func (m *UpdatePathsTest) GetFieldPaths() []*FieldPath
- func (m *UpdatePathsTest) GetIsError() bool
- func (m *UpdatePathsTest) GetJsonValues() []string
- func (m *UpdatePathsTest) GetPrecondition() *google_firestore_v1beta1.Precondition
- func (m *UpdatePathsTest) GetRequest() *google_firestore_v1beta14.CommitRequest
- func (*UpdatePathsTest) ProtoMessage()
- func (m *UpdatePathsTest) Reset()
- func (m *UpdatePathsTest) String() string
- type UpdateTest
- func (*UpdateTest) Descriptor() ([]byte, []int)
- func (m *UpdateTest) GetDocRefPath() string
- func (m *UpdateTest) GetIsError() bool
- func (m *UpdateTest) GetJsonData() string
- func (m *UpdateTest) GetPrecondition() *google_firestore_v1beta1.Precondition
- func (m *UpdateTest) GetRequest() *google_firestore_v1beta14.CommitRequest
- func (*UpdateTest) ProtoMessage()
- func (m *UpdateTest) Reset()
- func (m *UpdateTest) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (m *CreateTest) GetRequest() *google_firestore_v1beta14.CommitRequest
func (*CreateTest) ProtoMessage ¶
func (*CreateTest) ProtoMessage()
func (*CreateTest) Reset ¶
func (m *CreateTest) Reset()
func (*CreateTest) String ¶
func (m *CreateTest) 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 (m *DeleteTest) GetRequest() *google_firestore_v1beta14.CommitRequest
func (*DeleteTest) ProtoMessage ¶
func (*DeleteTest) ProtoMessage()
func (*DeleteTest) Reset ¶
func (m *DeleteTest) Reset()
func (*DeleteTest) String ¶
func (m *DeleteTest) String() string
type FieldPath ¶
type FieldPath struct {
Field []string `protobuf:"bytes,1,rep,name=field" json:"field,omitempty"`
}
A field path.
func (*FieldPath) Descriptor ¶
func (*FieldPath) ProtoMessage ¶
func (*FieldPath) ProtoMessage()
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) GetDocRefPath ¶
func (*GetTest) GetRequest ¶
func (m *GetTest) GetRequest() *google_firestore_v1beta14.GetDocumentRequest
func (*GetTest) ProtoMessage ¶
func (*GetTest) ProtoMessage()
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) ProtoMessage ¶
func (*SetOption) ProtoMessage()
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) GetDocRefPath ¶
func (*SetTest) GetIsError ¶
func (*SetTest) GetJsonData ¶
func (*SetTest) GetRequest ¶
func (m *SetTest) GetRequest() *google_firestore_v1beta14.CommitRequest
func (*SetTest) ProtoMessage ¶
func (*SetTest) ProtoMessage()
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 isTest_Test `protobuf_oneof:"test"` }
A Test describes a single client method call and its expected result.
func (*Test) Descriptor ¶
func (*Test) GetCreate ¶
func (m *Test) GetCreate() *CreateTest
func (*Test) GetDelete ¶
func (m *Test) GetDelete() *DeleteTest
func (*Test) GetDescription ¶
func (*Test) GetUpdate ¶
func (m *Test) GetUpdate() *UpdateTest
func (*Test) GetUpdatePaths ¶
func (m *Test) GetUpdatePaths() *UpdatePathsTest
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
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_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 (m *UpdatePathsTest) GetPrecondition() *google_firestore_v1beta1.Precondition
func (*UpdatePathsTest) GetRequest ¶
func (m *UpdatePathsTest) GetRequest() *google_firestore_v1beta14.CommitRequest
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 (m *UpdateTest) GetRequest() *google_firestore_v1beta14.CommitRequest
func (*UpdateTest) ProtoMessage ¶
func (*UpdateTest) ProtoMessage()
func (*UpdateTest) Reset ¶
func (m *UpdateTest) Reset()
func (*UpdateTest) String ¶
func (m *UpdateTest) String() string
Click to show internal directories.
Click to hide internal directories.