Add generated file

This PR adds generated files under pkg/client and vendor folder.
This commit is contained in:
xing-yang
2018-07-12 10:55:15 -07:00
parent 36b1de0341
commit e213d1890d
17729 changed files with 5090889 additions and 0 deletions

View File

@@ -0,0 +1,583 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/firestore/admin/v1beta1/firestore_admin.proto
/*
Package admin is a generated protocol buffer package.
It is generated from these files:
google/firestore/admin/v1beta1/firestore_admin.proto
google/firestore/admin/v1beta1/index.proto
It has these top-level messages:
IndexOperationMetadata
Progress
CreateIndexRequest
GetIndexRequest
ListIndexesRequest
DeleteIndexRequest
ListIndexesResponse
IndexField
Index
*/
package admin
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The type of index operation.
type IndexOperationMetadata_OperationType int32
const (
// Unspecified. Never set by server.
IndexOperationMetadata_OPERATION_TYPE_UNSPECIFIED IndexOperationMetadata_OperationType = 0
// The operation is creating the index. Initiated by a `CreateIndex` call.
IndexOperationMetadata_CREATING_INDEX IndexOperationMetadata_OperationType = 1
)
var IndexOperationMetadata_OperationType_name = map[int32]string{
0: "OPERATION_TYPE_UNSPECIFIED",
1: "CREATING_INDEX",
}
var IndexOperationMetadata_OperationType_value = map[string]int32{
"OPERATION_TYPE_UNSPECIFIED": 0,
"CREATING_INDEX": 1,
}
func (x IndexOperationMetadata_OperationType) String() string {
return proto.EnumName(IndexOperationMetadata_OperationType_name, int32(x))
}
func (IndexOperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 0}
}
// Metadata for index operations. This metadata populates
// the metadata field of [google.longrunning.Operation][google.longrunning.Operation].
type IndexOperationMetadata struct {
// The time that work began on the operation.
StartTime *google_protobuf3.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
// The time the operation ended, either successfully or otherwise. Unset if
// the operation is still active.
EndTime *google_protobuf3.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
// The index resource that this operation is acting on. For example:
// `projects/{project_id}/databases/{database_id}/indexes/{index_id}`
Index string `protobuf:"bytes,3,opt,name=index" json:"index,omitempty"`
// The type of index operation.
OperationType IndexOperationMetadata_OperationType `protobuf:"varint,4,opt,name=operation_type,json=operationType,enum=google.firestore.admin.v1beta1.IndexOperationMetadata_OperationType" json:"operation_type,omitempty"`
// True if the [google.longrunning.Operation] was cancelled. If the
// cancellation is in progress, cancelled will be true but
// [google.longrunning.Operation.done][google.longrunning.Operation.done] will be false.
Cancelled bool `protobuf:"varint,5,opt,name=cancelled" json:"cancelled,omitempty"`
// Progress of the existing operation, measured in number of documents.
DocumentProgress *Progress `protobuf:"bytes,6,opt,name=document_progress,json=documentProgress" json:"document_progress,omitempty"`
}
func (m *IndexOperationMetadata) Reset() { *m = IndexOperationMetadata{} }
func (m *IndexOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*IndexOperationMetadata) ProtoMessage() {}
func (*IndexOperationMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *IndexOperationMetadata) GetStartTime() *google_protobuf3.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *IndexOperationMetadata) GetEndTime() *google_protobuf3.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *IndexOperationMetadata) GetIndex() string {
if m != nil {
return m.Index
}
return ""
}
func (m *IndexOperationMetadata) GetOperationType() IndexOperationMetadata_OperationType {
if m != nil {
return m.OperationType
}
return IndexOperationMetadata_OPERATION_TYPE_UNSPECIFIED
}
func (m *IndexOperationMetadata) GetCancelled() bool {
if m != nil {
return m.Cancelled
}
return false
}
func (m *IndexOperationMetadata) GetDocumentProgress() *Progress {
if m != nil {
return m.DocumentProgress
}
return nil
}
// Measures the progress of a particular metric.
type Progress struct {
// An estimate of how much work has been completed. Note that this may be
// greater than `work_estimated`.
WorkCompleted int64 `protobuf:"varint,1,opt,name=work_completed,json=workCompleted" json:"work_completed,omitempty"`
// An estimate of how much work needs to be performed. Zero if the
// work estimate is unavailable. May change as work progresses.
WorkEstimated int64 `protobuf:"varint,2,opt,name=work_estimated,json=workEstimated" json:"work_estimated,omitempty"`
}
func (m *Progress) Reset() { *m = Progress{} }
func (m *Progress) String() string { return proto.CompactTextString(m) }
func (*Progress) ProtoMessage() {}
func (*Progress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Progress) GetWorkCompleted() int64 {
if m != nil {
return m.WorkCompleted
}
return 0
}
func (m *Progress) GetWorkEstimated() int64 {
if m != nil {
return m.WorkEstimated
}
return 0
}
// The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1beta1.FirestoreAdmin.CreateIndex].
type CreateIndexRequest struct {
// The name of the database this index will apply to. For example:
// `projects/{project_id}/databases/{database_id}`
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// The index to create. The name and state fields are output only and will be
// ignored. Certain single field indexes cannot be created or deleted.
Index *Index `protobuf:"bytes,2,opt,name=index" json:"index,omitempty"`
}
func (m *CreateIndexRequest) Reset() { *m = CreateIndexRequest{} }
func (m *CreateIndexRequest) String() string { return proto.CompactTextString(m) }
func (*CreateIndexRequest) ProtoMessage() {}
func (*CreateIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *CreateIndexRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateIndexRequest) GetIndex() *Index {
if m != nil {
return m.Index
}
return nil
}
// The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1beta1.FirestoreAdmin.GetIndex].
type GetIndexRequest struct {
// The name of the index. For example:
// `projects/{project_id}/databases/{database_id}/indexes/{index_id}`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *GetIndexRequest) Reset() { *m = GetIndexRequest{} }
func (m *GetIndexRequest) String() string { return proto.CompactTextString(m) }
func (*GetIndexRequest) ProtoMessage() {}
func (*GetIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *GetIndexRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1beta1.FirestoreAdmin.ListIndexes].
type ListIndexesRequest struct {
// The database name. For example:
// `projects/{project_id}/databases/{database_id}`
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
// The standard List page size.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
// The standard List page token.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}
func (m *ListIndexesRequest) Reset() { *m = ListIndexesRequest{} }
func (m *ListIndexesRequest) String() string { return proto.CompactTextString(m) }
func (*ListIndexesRequest) ProtoMessage() {}
func (*ListIndexesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ListIndexesRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListIndexesRequest) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
func (m *ListIndexesRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListIndexesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1beta1.FirestoreAdmin.DeleteIndex].
type DeleteIndexRequest struct {
// The index name. For example:
// `projects/{project_id}/databases/{database_id}/indexes/{index_id}`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *DeleteIndexRequest) Reset() { *m = DeleteIndexRequest{} }
func (m *DeleteIndexRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteIndexRequest) ProtoMessage() {}
func (*DeleteIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *DeleteIndexRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1beta1.FirestoreAdmin.ListIndexes].
type ListIndexesResponse struct {
// The indexes.
Indexes []*Index `protobuf:"bytes,1,rep,name=indexes" json:"indexes,omitempty"`
// The standard List next-page token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}
func (m *ListIndexesResponse) Reset() { *m = ListIndexesResponse{} }
func (m *ListIndexesResponse) String() string { return proto.CompactTextString(m) }
func (*ListIndexesResponse) ProtoMessage() {}
func (*ListIndexesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ListIndexesResponse) GetIndexes() []*Index {
if m != nil {
return m.Indexes
}
return nil
}
func (m *ListIndexesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
func init() {
proto.RegisterType((*IndexOperationMetadata)(nil), "google.firestore.admin.v1beta1.IndexOperationMetadata")
proto.RegisterType((*Progress)(nil), "google.firestore.admin.v1beta1.Progress")
proto.RegisterType((*CreateIndexRequest)(nil), "google.firestore.admin.v1beta1.CreateIndexRequest")
proto.RegisterType((*GetIndexRequest)(nil), "google.firestore.admin.v1beta1.GetIndexRequest")
proto.RegisterType((*ListIndexesRequest)(nil), "google.firestore.admin.v1beta1.ListIndexesRequest")
proto.RegisterType((*DeleteIndexRequest)(nil), "google.firestore.admin.v1beta1.DeleteIndexRequest")
proto.RegisterType((*ListIndexesResponse)(nil), "google.firestore.admin.v1beta1.ListIndexesResponse")
proto.RegisterEnum("google.firestore.admin.v1beta1.IndexOperationMetadata_OperationType", IndexOperationMetadata_OperationType_name, IndexOperationMetadata_OperationType_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for FirestoreAdmin service
type FirestoreAdminClient interface {
// Creates the specified index.
// A newly created index's initial state is `CREATING`. On completion of the
// returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
// If the index already exists, the call will return an `ALREADY_EXISTS`
// status.
//
// During creation, the process could result in an error, in which case the
// index will move to the `ERROR` state. The process can be recovered by
// fixing the data that caused the error, removing the index with
// [delete][google.firestore.admin.v1beta1.FirestoreAdmin.DeleteIndex], then re-creating the index with
// [create][google.firestore.admin.v1beta1.FirestoreAdmin.CreateIndex].
//
// Indexes with a single field cannot be created.
CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
// Lists the indexes that match the specified filters.
ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error)
// Gets an index.
GetIndex(ctx context.Context, in *GetIndexRequest, opts ...grpc.CallOption) (*Index, error)
// Deletes an index.
DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
}
type firestoreAdminClient struct {
cc *grpc.ClientConn
}
func NewFirestoreAdminClient(cc *grpc.ClientConn) FirestoreAdminClient {
return &firestoreAdminClient{cc}
}
func (c *firestoreAdminClient) CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.firestore.admin.v1beta1.FirestoreAdmin/CreateIndex", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreAdminClient) ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error) {
out := new(ListIndexesResponse)
err := grpc.Invoke(ctx, "/google.firestore.admin.v1beta1.FirestoreAdmin/ListIndexes", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreAdminClient) GetIndex(ctx context.Context, in *GetIndexRequest, opts ...grpc.CallOption) (*Index, error) {
out := new(Index)
err := grpc.Invoke(ctx, "/google.firestore.admin.v1beta1.FirestoreAdmin/GetIndex", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreAdminClient) DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) {
out := new(google_protobuf2.Empty)
err := grpc.Invoke(ctx, "/google.firestore.admin.v1beta1.FirestoreAdmin/DeleteIndex", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for FirestoreAdmin service
type FirestoreAdminServer interface {
// Creates the specified index.
// A newly created index's initial state is `CREATING`. On completion of the
// returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
// If the index already exists, the call will return an `ALREADY_EXISTS`
// status.
//
// During creation, the process could result in an error, in which case the
// index will move to the `ERROR` state. The process can be recovered by
// fixing the data that caused the error, removing the index with
// [delete][google.firestore.admin.v1beta1.FirestoreAdmin.DeleteIndex], then re-creating the index with
// [create][google.firestore.admin.v1beta1.FirestoreAdmin.CreateIndex].
//
// Indexes with a single field cannot be created.
CreateIndex(context.Context, *CreateIndexRequest) (*google_longrunning.Operation, error)
// Lists the indexes that match the specified filters.
ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error)
// Gets an index.
GetIndex(context.Context, *GetIndexRequest) (*Index, error)
// Deletes an index.
DeleteIndex(context.Context, *DeleteIndexRequest) (*google_protobuf2.Empty, error)
}
func RegisterFirestoreAdminServer(s *grpc.Server, srv FirestoreAdminServer) {
s.RegisterService(&_FirestoreAdmin_serviceDesc, srv)
}
func _FirestoreAdmin_CreateIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreAdminServer).CreateIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.admin.v1beta1.FirestoreAdmin/CreateIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreAdminServer).CreateIndex(ctx, req.(*CreateIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FirestoreAdmin_ListIndexes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListIndexesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreAdminServer).ListIndexes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.admin.v1beta1.FirestoreAdmin/ListIndexes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreAdminServer).ListIndexes(ctx, req.(*ListIndexesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FirestoreAdmin_GetIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreAdminServer).GetIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.admin.v1beta1.FirestoreAdmin/GetIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreAdminServer).GetIndex(ctx, req.(*GetIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FirestoreAdmin_DeleteIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreAdminServer).DeleteIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.admin.v1beta1.FirestoreAdmin/DeleteIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreAdminServer).DeleteIndex(ctx, req.(*DeleteIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
var _FirestoreAdmin_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.firestore.admin.v1beta1.FirestoreAdmin",
HandlerType: (*FirestoreAdminServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateIndex",
Handler: _FirestoreAdmin_CreateIndex_Handler,
},
{
MethodName: "ListIndexes",
Handler: _FirestoreAdmin_ListIndexes_Handler,
},
{
MethodName: "GetIndex",
Handler: _FirestoreAdmin_GetIndex_Handler,
},
{
MethodName: "DeleteIndex",
Handler: _FirestoreAdmin_DeleteIndex_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/firestore/admin/v1beta1/firestore_admin.proto",
}
func init() {
proto.RegisterFile("google/firestore/admin/v1beta1/firestore_admin.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 841 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0xc6, 0xe9, 0xcf, 0x26, 0xa7, 0x6a, 0xb6, 0xcc, 0xa2, 0x2a, 0xf2, 0xfe, 0x10, 0x19, 0x8a,
0xa2, 0x5c, 0xd8, 0x34, 0x0b, 0x12, 0xcb, 0x0a, 0xad, 0x5a, 0xd7, 0xad, 0x22, 0x41, 0x1b, 0xb9,
0x59, 0xb4, 0x70, 0x63, 0x4d, 0xe3, 0x53,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fa, 0xb7, 0x7d, 0xac, 0xa2, 0xdf, 0x1b, 0xcb, 0x07, 0xee,
0xfe, 0xf1, 0x1f, 0x8d, 0x0f, 0x0f, 0x4a, 0x31, 0x37, 0xe1, 0xd3, 0xd0, 0x9e, 0x15, 0xb4, 0x55,
0x45, 0xfb, 0xeb, 0xed, 0xdd, 0x82, 0x73, 0xb2, 0xaa, 0xd4, 0x1f, 0xfe, 0x17, 0x00, 0x00, 0xff,
0xff, 0x6b, 0x78, 0x44, 0x07, 0x3e, 0x08, 0x00, 0x00,
}

View File

@@ -0,0 +1,205 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/firestore/admin/v1beta1/index.proto
package admin
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// The mode determines how a field is indexed.
type IndexField_Mode int32
const (
// The mode is unspecified.
IndexField_MODE_UNSPECIFIED IndexField_Mode = 0
// The field's values are indexed so as to support sequencing in
// ascending order and also query by <, >, <=, >=, and =.
IndexField_ASCENDING IndexField_Mode = 2
// The field's values are indexed so as to support sequencing in
// descending order and also query by <, >, <=, >=, and =.
IndexField_DESCENDING IndexField_Mode = 3
)
var IndexField_Mode_name = map[int32]string{
0: "MODE_UNSPECIFIED",
2: "ASCENDING",
3: "DESCENDING",
}
var IndexField_Mode_value = map[string]int32{
"MODE_UNSPECIFIED": 0,
"ASCENDING": 2,
"DESCENDING": 3,
}
func (x IndexField_Mode) String() string {
return proto.EnumName(IndexField_Mode_name, int32(x))
}
func (IndexField_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
// The state of an index. During index creation, an index will be in the
// `CREATING` state. If the index is created successfully, it will transition
// to the `READY` state. If the index is not able to be created, it will
// transition to the `ERROR` state.
type Index_State int32
const (
// The state is unspecified.
Index_STATE_UNSPECIFIED Index_State = 0
// The index is being created.
// There is an active long-running operation for the index.
// The index is updated when writing a document.
// Some index data may exist.
Index_CREATING Index_State = 3
// The index is ready to be used.
// The index is updated when writing a document.
// The index is fully populated from all stored documents it applies to.
Index_READY Index_State = 2
// The index was being created, but something went wrong.
// There is no active long-running operation for the index,
// and the most recently finished long-running operation failed.
// The index is not updated when writing a document.
// Some index data may exist.
Index_ERROR Index_State = 5
)
var Index_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
3: "CREATING",
2: "READY",
5: "ERROR",
}
var Index_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 3,
"READY": 2,
"ERROR": 5,
}
func (x Index_State) String() string {
return proto.EnumName(Index_State_name, int32(x))
}
func (Index_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{1, 0} }
// A field of an index.
type IndexField struct {
// The path of the field. Must match the field path specification described
// by [google.firestore.v1beta1.Document.fields][fields].
// Special field path `__name__` may be used by itself or at the end of a
// path. `__type__` may be used only at the end of path.
FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath" json:"field_path,omitempty"`
// The field's mode.
Mode IndexField_Mode `protobuf:"varint,2,opt,name=mode,enum=google.firestore.admin.v1beta1.IndexField_Mode" json:"mode,omitempty"`
}
func (m *IndexField) Reset() { *m = IndexField{} }
func (m *IndexField) String() string { return proto.CompactTextString(m) }
func (*IndexField) ProtoMessage() {}
func (*IndexField) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *IndexField) GetFieldPath() string {
if m != nil {
return m.FieldPath
}
return ""
}
func (m *IndexField) GetMode() IndexField_Mode {
if m != nil {
return m.Mode
}
return IndexField_MODE_UNSPECIFIED
}
// An index definition.
type Index struct {
// The resource name of the index.
// Output only.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The collection ID to which this index applies. Required.
CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId" json:"collection_id,omitempty"`
// The fields to index.
Fields []*IndexField `protobuf:"bytes,3,rep,name=fields" json:"fields,omitempty"`
// The state of the index.
// Output only.
State Index_State `protobuf:"varint,6,opt,name=state,enum=google.firestore.admin.v1beta1.Index_State" json:"state,omitempty"`
}
func (m *Index) Reset() { *m = Index{} }
func (m *Index) String() string { return proto.CompactTextString(m) }
func (*Index) ProtoMessage() {}
func (*Index) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *Index) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Index) GetCollectionId() string {
if m != nil {
return m.CollectionId
}
return ""
}
func (m *Index) GetFields() []*IndexField {
if m != nil {
return m.Fields
}
return nil
}
func (m *Index) GetState() Index_State {
if m != nil {
return m.State
}
return Index_STATE_UNSPECIFIED
}
func init() {
proto.RegisterType((*IndexField)(nil), "google.firestore.admin.v1beta1.IndexField")
proto.RegisterType((*Index)(nil), "google.firestore.admin.v1beta1.Index")
proto.RegisterEnum("google.firestore.admin.v1beta1.IndexField_Mode", IndexField_Mode_name, IndexField_Mode_value)
proto.RegisterEnum("google.firestore.admin.v1beta1.Index_State", Index_State_name, Index_State_value)
}
func init() { proto.RegisterFile("google/firestore/admin/v1beta1/index.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 422 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4f, 0x8b, 0x13, 0x31,
0x1c, 0x75, 0xa6, 0x9d, 0xe2, 0xfc, 0xdc, 0x5d, 0xc6, 0xa0, 0x50, 0x44, 0xa5, 0x8c, 0x1e, 0xca,
0x0a, 0x19, 0xba, 0x1e, 0xf7, 0x34, 0xff, 0x5a, 0xe6, 0xb0, 0xdd, 0x92, 0xa9, 0x82, 0x5e, 0x4a,
0xb6, 0xc9, 0xce, 0x06, 0xa6, 0x49, 0x99, 0x89, 0xe2, 0x77, 0xf0, 0x5b, 0x08, 0x5e, 0x04, 0xbf,
0xa3, 0x24, 0x33, 0x74, 0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