diff --git a/googleapis/cloud/dataproc/v1/clusters.pb.go b/googleapis/cloud/dataproc/v1/clusters.pb.go index a70fb3102de6de159968f13f9c31e7c81c856f84..8c8128d9fe1e88bc5fc85ca003ad5dd28ca2455e 100644 --- a/googleapis/cloud/dataproc/v1/clusters.pb.go +++ b/googleapis/cloud/dataproc/v1/clusters.pb.go @@ -67,7 +67,7 @@ func (x ClusterStatus_State) String() string { return proto.EnumName(ClusterStatus_State_name, int32(x)) } func (ClusterStatus_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{9, 0} + return fileDescriptor_clusters_eb8dcc455338db63, []int{9, 0} } // The cluster substate. @@ -104,7 +104,7 @@ func (x ClusterStatus_Substate) String() string { return proto.EnumName(ClusterStatus_Substate_name, int32(x)) } func (ClusterStatus_Substate) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{9, 1} + return fileDescriptor_clusters_eb8dcc455338db63, []int{9, 1} } // Describes the identifying information, config, and status of @@ -146,7 +146,7 @@ func (m *Cluster) Reset() { *m = Cluster{} } func (m *Cluster) String() string { return proto.CompactTextString(m) } func (*Cluster) ProtoMessage() {} func (*Cluster) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{0} + return fileDescriptor_clusters_eb8dcc455338db63, []int{0} } func (m *Cluster) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Cluster.Unmarshal(m, b) @@ -268,7 +268,7 @@ func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } func (*ClusterConfig) ProtoMessage() {} func (*ClusterConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{1} + return fileDescriptor_clusters_eb8dcc455338db63, []int{1} } func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) @@ -358,7 +358,7 @@ func (m *EncryptionConfig) Reset() { *m = EncryptionConfig{} } func (m *EncryptionConfig) String() string { return proto.CompactTextString(m) } func (*EncryptionConfig) ProtoMessage() {} func (*EncryptionConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{2} + return fileDescriptor_clusters_eb8dcc455338db63, []int{2} } func (m *EncryptionConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_EncryptionConfig.Unmarshal(m, b) @@ -469,7 +469,7 @@ func (m *GceClusterConfig) Reset() { *m = GceClusterConfig{} } func (m *GceClusterConfig) String() string { return proto.CompactTextString(m) } func (*GceClusterConfig) ProtoMessage() {} func (*GceClusterConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{3} + return fileDescriptor_clusters_eb8dcc455338db63, []int{3} } func (m *GceClusterConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GceClusterConfig.Unmarshal(m, b) @@ -594,7 +594,7 @@ func (m *InstanceGroupConfig) Reset() { *m = InstanceGroupConfig{} } func (m *InstanceGroupConfig) String() string { return proto.CompactTextString(m) } func (*InstanceGroupConfig) ProtoMessage() {} func (*InstanceGroupConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{4} + return fileDescriptor_clusters_eb8dcc455338db63, []int{4} } func (m *InstanceGroupConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InstanceGroupConfig.Unmarshal(m, b) @@ -686,7 +686,7 @@ func (m *ManagedGroupConfig) Reset() { *m = ManagedGroupConfig{} } func (m *ManagedGroupConfig) String() string { return proto.CompactTextString(m) } func (*ManagedGroupConfig) ProtoMessage() {} func (*ManagedGroupConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{5} + return fileDescriptor_clusters_eb8dcc455338db63, []int{5} } func (m *ManagedGroupConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ManagedGroupConfig.Unmarshal(m, b) @@ -749,7 +749,7 @@ func (m *AcceleratorConfig) Reset() { *m = AcceleratorConfig{} } func (m *AcceleratorConfig) String() string { return proto.CompactTextString(m) } func (*AcceleratorConfig) ProtoMessage() {} func (*AcceleratorConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{6} + return fileDescriptor_clusters_eb8dcc455338db63, []int{6} } func (m *AcceleratorConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AcceleratorConfig.Unmarshal(m, b) @@ -807,7 +807,7 @@ func (m *DiskConfig) Reset() { *m = DiskConfig{} } func (m *DiskConfig) String() string { return proto.CompactTextString(m) } func (*DiskConfig) ProtoMessage() {} func (*DiskConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{7} + return fileDescriptor_clusters_eb8dcc455338db63, []int{7} } func (m *DiskConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DiskConfig.Unmarshal(m, b) @@ -867,7 +867,7 @@ func (m *NodeInitializationAction) Reset() { *m = NodeInitializationActi func (m *NodeInitializationAction) String() string { return proto.CompactTextString(m) } func (*NodeInitializationAction) ProtoMessage() {} func (*NodeInitializationAction) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{8} + return fileDescriptor_clusters_eb8dcc455338db63, []int{8} } func (m *NodeInitializationAction) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeInitializationAction.Unmarshal(m, b) @@ -921,7 +921,7 @@ func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } func (m *ClusterStatus) String() string { return proto.CompactTextString(m) } func (*ClusterStatus) ProtoMessage() {} func (*ClusterStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{9} + return fileDescriptor_clusters_eb8dcc455338db63, []int{9} } func (m *ClusterStatus) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterStatus.Unmarshal(m, b) @@ -1005,7 +1005,7 @@ func (m *SoftwareConfig) Reset() { *m = SoftwareConfig{} } func (m *SoftwareConfig) String() string { return proto.CompactTextString(m) } func (*SoftwareConfig) ProtoMessage() {} func (*SoftwareConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{10} + return fileDescriptor_clusters_eb8dcc455338db63, []int{10} } func (m *SoftwareConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SoftwareConfig.Unmarshal(m, b) @@ -1057,7 +1057,7 @@ func (m *ClusterMetrics) Reset() { *m = ClusterMetrics{} } func (m *ClusterMetrics) String() string { return proto.CompactTextString(m) } func (*ClusterMetrics) ProtoMessage() {} func (*ClusterMetrics) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{11} + return fileDescriptor_clusters_eb8dcc455338db63, []int{11} } func (m *ClusterMetrics) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterMetrics.Unmarshal(m, b) @@ -1121,7 +1121,7 @@ func (m *CreateClusterRequest) Reset() { *m = CreateClusterRequest{} } func (m *CreateClusterRequest) String() string { return proto.CompactTextString(m) } func (*CreateClusterRequest) ProtoMessage() {} func (*CreateClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{12} + return fileDescriptor_clusters_eb8dcc455338db63, []int{12} } func (m *CreateClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateClusterRequest.Unmarshal(m, b) @@ -1258,7 +1258,7 @@ func (m *UpdateClusterRequest) Reset() { *m = UpdateClusterRequest{} } func (m *UpdateClusterRequest) String() string { return proto.CompactTextString(m) } func (*UpdateClusterRequest) ProtoMessage() {} func (*UpdateClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{13} + return fileDescriptor_clusters_eb8dcc455338db63, []int{13} } func (m *UpdateClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateClusterRequest.Unmarshal(m, b) @@ -1360,7 +1360,7 @@ func (m *DeleteClusterRequest) Reset() { *m = DeleteClusterRequest{} } func (m *DeleteClusterRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterRequest) ProtoMessage() {} func (*DeleteClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{14} + return fileDescriptor_clusters_eb8dcc455338db63, []int{14} } func (m *DeleteClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteClusterRequest.Unmarshal(m, b) @@ -1433,7 +1433,7 @@ func (m *GetClusterRequest) Reset() { *m = GetClusterRequest{} } func (m *GetClusterRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterRequest) ProtoMessage() {} func (*GetClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{15} + return fileDescriptor_clusters_eb8dcc455338db63, []int{15} } func (m *GetClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetClusterRequest.Unmarshal(m, b) @@ -1514,7 +1514,7 @@ func (m *ListClustersRequest) Reset() { *m = ListClustersRequest{} } func (m *ListClustersRequest) String() string { return proto.CompactTextString(m) } func (*ListClustersRequest) ProtoMessage() {} func (*ListClustersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{16} + return fileDescriptor_clusters_eb8dcc455338db63, []int{16} } func (m *ListClustersRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListClustersRequest.Unmarshal(m, b) @@ -1586,7 +1586,7 @@ func (m *ListClustersResponse) Reset() { *m = ListClustersResponse{} } func (m *ListClustersResponse) String() string { return proto.CompactTextString(m) } func (*ListClustersResponse) ProtoMessage() {} func (*ListClustersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{17} + return fileDescriptor_clusters_eb8dcc455338db63, []int{17} } func (m *ListClustersResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListClustersResponse.Unmarshal(m, b) @@ -1638,7 +1638,7 @@ func (m *DiagnoseClusterRequest) Reset() { *m = DiagnoseClusterRequest{} func (m *DiagnoseClusterRequest) String() string { return proto.CompactTextString(m) } func (*DiagnoseClusterRequest) ProtoMessage() {} func (*DiagnoseClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{18} + return fileDescriptor_clusters_eb8dcc455338db63, []int{18} } func (m *DiagnoseClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DiagnoseClusterRequest.Unmarshal(m, b) @@ -1694,7 +1694,7 @@ func (m *DiagnoseClusterResults) Reset() { *m = DiagnoseClusterResults{} func (m *DiagnoseClusterResults) String() string { return proto.CompactTextString(m) } func (*DiagnoseClusterResults) ProtoMessage() {} func (*DiagnoseClusterResults) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_2146ef75b3778e2a, []int{19} + return fileDescriptor_clusters_eb8dcc455338db63, []int{19} } func (m *DiagnoseClusterResults) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DiagnoseClusterResults.Unmarshal(m, b) @@ -2005,139 +2005,139 @@ var _ClusterController_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("google/cloud/dataproc/v1/clusters.proto", fileDescriptor_clusters_2146ef75b3778e2a) -} - -var fileDescriptor_clusters_2146ef75b3778e2a = []byte{ - // 2076 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0x5d, 0x73, 0x1c, 0x47, - 0xd5, 0xce, 0x68, 0xb5, 0xd2, 0xea, 0xec, 0x87, 0x56, 0x1d, 0x45, 0xef, 0x46, 0x89, 0xdf, 0x38, - 0x93, 0x80, 0x85, 0x13, 0x76, 0x6d, 0x05, 0x8a, 0xc4, 0x26, 0x21, 0xb2, 0x76, 0x6d, 0x0b, 0xcb, - 0x6b, 0x31, 0xbb, 0xb2, 0x13, 0x0a, 0x98, 0xea, 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0x4c, 0xa3, 0xf9, 0x2f, 0xcf, 0xaa, - 0x92, 0xce, 0xd8, 0x25, 0xad, 0x12, 0x32, 0x65, 0x31, 0x3f, 0x86, 0xfa, 0x34, 0x0a, 0xbd, 0x0b, - 0x2f, 0x8b, 0x9a, 0x8c, 0x5c, 0xfb, 0xd0, 0x67, 0xf6, 0x21, 0x19, 0x29, 0xbd, 0x52, 0xe5, 0xbb, - 0x3c, 0x74, 0xc8, 0x9e, 0x7b, 0xcf, 0x67, 0xf7, 0xc8, 0x48, 0x68, 0x96, 0xf9, 0xc7, 0x02, 0xd4, - 0xa7, 0xcb, 0x11, 0xbd, 0x0a, 0xa5, 0x27, 0x61, 0x40, 0xec, 0x24, 0xa6, 0xda, 0x6f, 0x51, 0xbc, - 0xef, 0xc7, 0x14, 0xbd, 0x01, 0xe5, 0x80, 0x70, 0xb1, 0xd1, 0x72, 0x54, 0x1d, 0x24, 0xd0, 0x26, - 0x01, 0xf8, 0x06, 0xd4, 0x58, 0x32, 0xc8, 0x62, 0xd4, 0x69, 0xaf, 0x4e, 0xac, 0x02, 0xb6, 0x01, - 0x75, 0x1a, 0x70, 0x12, 0x07, 0xd8, 0xb3, 0x69, 0x64, 0x87, 0x81, 0x27, 0x44, 0xc6, 0xd8, 0x28, - 0x59, 0xb5, 0xd4, 0xbe, 0x13, 0x3d, 0x08, 0xbc, 0x11, 0xba, 0x02, 0xcb, 0x8c, 0xc4, 0x47, 0xd4, - 0x21, 0x36, 0x76, 0x9c, 0x30, 0x09, 0xb8, 0x3c, 0x60, 0x4b, 0x56, 0x4d, 0x9b, 0xb7, 0x94, 0x15, - 0x7d, 0x07, 0xd6, 0xa6, 0x80, 0x36, 0x73, 0xc2, 0x88, 0xb0, 0x46, 0xe1, 0x72, 0x61, 0x63, 0xc9, - 0x5a, 0xcd, 0xe3, 0x7b, 0x72, 0x0c, 0x21, 0x98, 0xe7, 0x78, 0x28, 0xa4, 0x52, 0x60, 0xe4, 0x33, - 0xea, 0x43, 0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, 0x0b, 0x12, 0xfc, 0xde, 0x7f, 0x03, - 0x00, 0x00, 0xff, 0xff, 0x95, 0xd4, 0x39, 0x3a, 0xe4, 0x18, 0x00, 0x00, + proto.RegisterFile("google/cloud/dataproc/v1/clusters.proto", fileDescriptor_clusters_eb8dcc455338db63) +} + +var fileDescriptor_clusters_eb8dcc455338db63 = []byte{ + // 2079 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0xcd, 0x73, 0x1c, 0x47, + 0x15, 0xcf, 0x68, 0xb5, 0xd2, 0xea, 0xed, 0x87, 0x56, 0x1d, 0x45, 0x6c, 0x94, 0x84, 0x38, 0x93, + 0x80, 0x15, 0x27, 0xec, 0xda, 0x0a, 0x14, 0x89, 0x4d, 0x42, 0x64, 0xed, 0xda, 0x16, 0x96, 0xd7, + 0x62, 0x76, 0x65, 0x27, 0x14, 0x30, 0xd5, 0x3b, 0xd3, 0x5a, 0x37, 0x9a, 0xaf, 0x4c, 0xf7, 0x28, + 0x59, 0xbb, 0x7c, 0x81, 0x2a, 0xaa, 0x28, 0x8e, 0x54, 0x71, 0xe6, 0x00, 0x55, 0x90, 0x63, 0xe0, + 0xc4, 0x3f, 0xc0, 0x85, 0xe2, 0xc2, 0xbf, 0xc0, 0x81, 0x3f, 0x83, 0xea, 0x8f, 0xd9, 0x9d, 0x59, + 0x7d, 0xac, 0x64, 0x5c, 0x39, 0x69, 0xe6, 0xf5, 0xef, 0xbd, 0xf7, 0xeb, 0xee, 0xd7, 0xbf, 0x79, + 0xbd, 0x82, 0xcb, 0xc3, 0x30, 0x1c, 0x7a, 0xa4, 0xe5, 0x78, 0x61, 0xe2, 0xb6, 0x5c, 0xcc, 0x71, + 0x14, 0x87, 0x4e, 0xeb, 0xe8, 0x5a, 0xcb, 0xf1, 0x12, 0xc6, 0x49, 0xcc, 0x9a, 0x51, 0x1c, 0xf2, + 0x10, 0x35, 0x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07, 0xe3, 0x98, 0x27, 0xac, 0x31, + 0x7f, 0x4e, 0x1e, 0x3d, 0x09, 0xb7, 0xb4, 0x1b, 0xea, 0x42, 0x4d, 0x3d, 0xd9, 0x8f, 0x28, 0xe3, + 0x61, 0x3c, 0x6a, 0x2c, 0x4a, 0x3e, 0xe7, 0x0e, 0x54, 0x55, 0xee, 0x77, 0x94, 0x77, 0x76, 0xed, + 0x92, 0x84, 0xba, 0x8d, 0x85, 0xdc, 0xda, 0xed, 0x27, 0xd4, 0x45, 0x37, 0x61, 0xd1, 0x27, 0x3c, + 0xa6, 0x0e, 0x6b, 0x2c, 0x49, 0xd2, 0x1b, 0x33, 0x73, 0xdd, 0x53, 0x78, 0x2b, 0x75, 0x5c, 0xff, + 0x00, 0xca, 0x99, 0xe5, 0x40, 0x75, 0x28, 0x1c, 0x92, 0x91, 0xde, 0x49, 0xf1, 0x88, 0x56, 0xa1, + 0x78, 0x84, 0xbd, 0x24, 0xdd, 0x3c, 0xf5, 0x72, 0x7d, 0xee, 0x7d, 0xc3, 0xfc, 0x5b, 0x11, 0xaa, + 0xb9, 0x3d, 0x41, 0x6f, 0x42, 0x55, 0xed, 0x8a, 0x3d, 0x48, 0x9c, 0x43, 0xc2, 0x75, 0x9c, 0x8a, + 0x32, 0xde, 0x94, 0x36, 0xf4, 0x09, 0xa0, 0xa1, 0x43, 0xec, 0x74, 0x72, 0x7a, 0xf7, 0x4b, 0x72, + 0x02, 0x57, 0x4e, 0x9f, 0xc0, 0x6d, 0x87, 0xe4, 0x0b, 0xa0, 0x3e, 0x9c, 0xb2, 0x20, 0x0b, 0xaa, + 0x3e, 0xce, 0x06, 0x55, 0xab, 0x72, 0x46, 0x45, 0xec, 0x04, 0x8c, 0xe3, 0xc0, 0x21, 0xb7, 0xe3, + 0x30, 0x89, 0x74, 0xdc, 0x8a, 0x8a, 0x31, 0x89, 0xf9, 0x79, 0x18, 0x1f, 0x4e, 0x62, 0xc2, 0x33, + 0xc5, 0x54, 0x31, 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0xb8, 0x92, 0x13, 0xf3, 0x86, 0xe4, 0xfe, 0x3d, 0xf4, 0x2c, 0x35, 0x8c, 0xfe, 0x6e, + 0xc0, 0xf2, 0xd4, 0x89, 0x45, 0x57, 0xcf, 0xba, 0x6c, 0x9f, 0x24, 0x28, 0xb3, 0x0a, 0xe1, 0x81, + 0x64, 0xb8, 0x67, 0xde, 0x7d, 0x0e, 0xe5, 0xeb, 0x6a, 0x06, 0xd7, 0x8d, 0x2b, 0x37, 0x3f, 0x83, + 0x57, 0x9d, 0xd0, 0x3f, 0x95, 0xed, 0xcd, 0xf4, 0x52, 0xc4, 0xf6, 0xc4, 0xe7, 0x78, 0xcf, 0xf8, + 0xc9, 0xc7, 0x1a, 0x3a, 0x0c, 0x3d, 0x1c, 0x0c, 0x9b, 0x61, 0x3c, 0x6c, 0x0d, 0x49, 0x20, 0x3f, + 0xd6, 0x2d, 0x35, 0x84, 0x23, 0xca, 0x8e, 0xff, 0x0b, 0xe2, 0x46, 0xfa, 0x3c, 0x58, 0x90, 0xe0, + 0xf7, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x97, 0xd2, 0xcf, 0x0f, 0x19, 0x00, 0x00, } diff --git a/googleapis/cloud/dataproc/v1beta2/clusters.pb.go b/googleapis/cloud/dataproc/v1beta2/clusters.pb.go index cd1248fb2b001573978cd7f4627cd6c247943055..be28ca1eff10862e14f99ed0a62566b11f20e314 100644 --- a/googleapis/cloud/dataproc/v1beta2/clusters.pb.go +++ b/googleapis/cloud/dataproc/v1beta2/clusters.pb.go @@ -67,7 +67,7 @@ func (x ClusterStatus_State) String() string { return proto.EnumName(ClusterStatus_State_name, int32(x)) } func (ClusterStatus_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{10, 0} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{10, 0} } // The cluster substate. @@ -104,7 +104,7 @@ func (x ClusterStatus_Substate) String() string { return proto.EnumName(ClusterStatus_Substate_name, int32(x)) } func (ClusterStatus_Substate) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{10, 1} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{10, 1} } // Describes the identifying information, config, and status of @@ -146,7 +146,7 @@ func (m *Cluster) Reset() { *m = Cluster{} } func (m *Cluster) String() string { return proto.CompactTextString(m) } func (*Cluster) ProtoMessage() {} func (*Cluster) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{0} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{0} } func (m *Cluster) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Cluster.Unmarshal(m, b) @@ -270,7 +270,7 @@ func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } func (*ClusterConfig) ProtoMessage() {} func (*ClusterConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{1} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{1} } func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) @@ -367,7 +367,7 @@ func (m *EncryptionConfig) Reset() { *m = EncryptionConfig{} } func (m *EncryptionConfig) String() string { return proto.CompactTextString(m) } func (*EncryptionConfig) ProtoMessage() {} func (*EncryptionConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{2} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{2} } func (m *EncryptionConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_EncryptionConfig.Unmarshal(m, b) @@ -478,7 +478,7 @@ func (m *GceClusterConfig) Reset() { *m = GceClusterConfig{} } func (m *GceClusterConfig) String() string { return proto.CompactTextString(m) } func (*GceClusterConfig) ProtoMessage() {} func (*GceClusterConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{3} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{3} } func (m *GceClusterConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GceClusterConfig.Unmarshal(m, b) @@ -607,7 +607,7 @@ func (m *InstanceGroupConfig) Reset() { *m = InstanceGroupConfig{} } func (m *InstanceGroupConfig) String() string { return proto.CompactTextString(m) } func (*InstanceGroupConfig) ProtoMessage() {} func (*InstanceGroupConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{4} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{4} } func (m *InstanceGroupConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InstanceGroupConfig.Unmarshal(m, b) @@ -706,7 +706,7 @@ func (m *ManagedGroupConfig) Reset() { *m = ManagedGroupConfig{} } func (m *ManagedGroupConfig) String() string { return proto.CompactTextString(m) } func (*ManagedGroupConfig) ProtoMessage() {} func (*ManagedGroupConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{5} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{5} } func (m *ManagedGroupConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ManagedGroupConfig.Unmarshal(m, b) @@ -768,7 +768,7 @@ func (m *AcceleratorConfig) Reset() { *m = AcceleratorConfig{} } func (m *AcceleratorConfig) String() string { return proto.CompactTextString(m) } func (*AcceleratorConfig) ProtoMessage() {} func (*AcceleratorConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{6} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{6} } func (m *AcceleratorConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AcceleratorConfig.Unmarshal(m, b) @@ -826,7 +826,7 @@ func (m *DiskConfig) Reset() { *m = DiskConfig{} } func (m *DiskConfig) String() string { return proto.CompactTextString(m) } func (*DiskConfig) ProtoMessage() {} func (*DiskConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{7} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{7} } func (m *DiskConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DiskConfig.Unmarshal(m, b) @@ -892,7 +892,7 @@ func (m *LifecycleConfig) Reset() { *m = LifecycleConfig{} } func (m *LifecycleConfig) String() string { return proto.CompactTextString(m) } func (*LifecycleConfig) ProtoMessage() {} func (*LifecycleConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{8} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{8} } func (m *LifecycleConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LifecycleConfig.Unmarshal(m, b) @@ -1049,7 +1049,7 @@ func (m *NodeInitializationAction) Reset() { *m = NodeInitializationActi func (m *NodeInitializationAction) String() string { return proto.CompactTextString(m) } func (*NodeInitializationAction) ProtoMessage() {} func (*NodeInitializationAction) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{9} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{9} } func (m *NodeInitializationAction) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeInitializationAction.Unmarshal(m, b) @@ -1103,7 +1103,7 @@ func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } func (m *ClusterStatus) String() string { return proto.CompactTextString(m) } func (*ClusterStatus) ProtoMessage() {} func (*ClusterStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{10} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{10} } func (m *ClusterStatus) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterStatus.Unmarshal(m, b) @@ -1187,7 +1187,7 @@ func (m *SoftwareConfig) Reset() { *m = SoftwareConfig{} } func (m *SoftwareConfig) String() string { return proto.CompactTextString(m) } func (*SoftwareConfig) ProtoMessage() {} func (*SoftwareConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{11} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{11} } func (m *SoftwareConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SoftwareConfig.Unmarshal(m, b) @@ -1239,7 +1239,7 @@ func (m *ClusterMetrics) Reset() { *m = ClusterMetrics{} } func (m *ClusterMetrics) String() string { return proto.CompactTextString(m) } func (*ClusterMetrics) ProtoMessage() {} func (*ClusterMetrics) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{12} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{12} } func (m *ClusterMetrics) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterMetrics.Unmarshal(m, b) @@ -1303,7 +1303,7 @@ func (m *CreateClusterRequest) Reset() { *m = CreateClusterRequest{} } func (m *CreateClusterRequest) String() string { return proto.CompactTextString(m) } func (*CreateClusterRequest) ProtoMessage() {} func (*CreateClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{13} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{13} } func (m *CreateClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateClusterRequest.Unmarshal(m, b) @@ -1443,7 +1443,7 @@ func (m *UpdateClusterRequest) Reset() { *m = UpdateClusterRequest{} } func (m *UpdateClusterRequest) String() string { return proto.CompactTextString(m) } func (*UpdateClusterRequest) ProtoMessage() {} func (*UpdateClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{14} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{14} } func (m *UpdateClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateClusterRequest.Unmarshal(m, b) @@ -1545,7 +1545,7 @@ func (m *DeleteClusterRequest) Reset() { *m = DeleteClusterRequest{} } func (m *DeleteClusterRequest) String() string { return proto.CompactTextString(m) } func (*DeleteClusterRequest) ProtoMessage() {} func (*DeleteClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{15} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{15} } func (m *DeleteClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteClusterRequest.Unmarshal(m, b) @@ -1618,7 +1618,7 @@ func (m *GetClusterRequest) Reset() { *m = GetClusterRequest{} } func (m *GetClusterRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterRequest) ProtoMessage() {} func (*GetClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{16} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{16} } func (m *GetClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetClusterRequest.Unmarshal(m, b) @@ -1699,7 +1699,7 @@ func (m *ListClustersRequest) Reset() { *m = ListClustersRequest{} } func (m *ListClustersRequest) String() string { return proto.CompactTextString(m) } func (*ListClustersRequest) ProtoMessage() {} func (*ListClustersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{17} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{17} } func (m *ListClustersRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListClustersRequest.Unmarshal(m, b) @@ -1771,7 +1771,7 @@ func (m *ListClustersResponse) Reset() { *m = ListClustersResponse{} } func (m *ListClustersResponse) String() string { return proto.CompactTextString(m) } func (*ListClustersResponse) ProtoMessage() {} func (*ListClustersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{18} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{18} } func (m *ListClustersResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListClustersResponse.Unmarshal(m, b) @@ -1823,7 +1823,7 @@ func (m *DiagnoseClusterRequest) Reset() { *m = DiagnoseClusterRequest{} func (m *DiagnoseClusterRequest) String() string { return proto.CompactTextString(m) } func (*DiagnoseClusterRequest) ProtoMessage() {} func (*DiagnoseClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{19} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{19} } func (m *DiagnoseClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DiagnoseClusterRequest.Unmarshal(m, b) @@ -1879,7 +1879,7 @@ func (m *DiagnoseClusterResults) Reset() { *m = DiagnoseClusterResults{} func (m *DiagnoseClusterResults) String() string { return proto.CompactTextString(m) } func (*DiagnoseClusterResults) ProtoMessage() {} func (*DiagnoseClusterResults) Descriptor() ([]byte, []int) { - return fileDescriptor_clusters_696b2fb06247af3e, []int{20} + return fileDescriptor_clusters_3ab6c9781418a8a1, []int{20} } func (m *DiagnoseClusterResults) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DiagnoseClusterResults.Unmarshal(m, b) @@ -2191,11 +2191,11 @@ var _ClusterController_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("google/cloud/dataproc/v1beta2/clusters.proto", fileDescriptor_clusters_696b2fb06247af3e) + proto.RegisterFile("google/cloud/dataproc/v1beta2/clusters.proto", fileDescriptor_clusters_3ab6c9781418a8a1) } -var fileDescriptor_clusters_696b2fb06247af3e = []byte{ - // 2222 bytes of a gzipped FileDescriptorProto +var fileDescriptor_clusters_3ab6c9781418a8a1 = []byte{ + // 2227 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0x4b, 0x73, 0x1b, 0xc7, 0x11, 0xd6, 0x12, 0x7c, 0x80, 0x0d, 0xe2, 0xc1, 0x31, 0xcd, 0xc0, 0x74, 0x14, 0xcb, 0xeb, 0xc4, 0xa1, 0x1d, 0x05, 0xb0, 0xa9, 0xb8, 0xec, 0x48, 0x91, 0x4b, 0x14, 0x09, 0x91, 0xb4, 0x28, 0x8a, @@ -2207,132 +2207,133 @@ var fileDescriptor_clusters_696b2fb06247af3e = []byte{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0c, 0x21, 0x98, 0xe5, 0x78, 0x20, 0xea, 0xb6, 0xd0, 0x91, 0xbf, 0xd1, 0x03, 0x28, + 0xfa, 0x84, 0x63, 0xb1, 0x22, 0xf5, 0x39, 0x99, 0x16, 0xd7, 0xcf, 0x58, 0x4a, 0x1a, 0x77, 0xb4, + 0xbd, 0x3a, 0x26, 0x46, 0x70, 0x6b, 0xd7, 0xa0, 0x9c, 0x1b, 0x3a, 0x53, 0x8d, 0xfc, 0xed, 0x2c, + 0xbc, 0x72, 0xc2, 0xf6, 0x14, 0x95, 0x32, 0x48, 0x7c, 0x9b, 0xea, 0x21, 0x26, 0xd1, 0xe6, 0xac, + 0xa5, 0x20, 0xf1, 0x53, 0x75, 0x26, 0x16, 0x26, 0x55, 0x90, 0x19, 0xc1, 0xea, 0x33, 0x72, 0xca, + 0xe5, 0x54, 0x2a, 0xf2, 0x81, 0xa1, 0xd7, 0x61, 0x91, 0xfa, 0x78, 0xa0, 0x16, 0xbf, 0x20, 0x19, + 0x14, 0xa5, 0x40, 0xaf, 0x9a, 0x8f, 0x9d, 0x47, 0x34, 0x20, 0x36, 0x1f, 0x46, 0x4a, 0x67, 0x56, + 0x2d, 0x86, 0x96, 0x77, 0x86, 0x91, 0xd4, 0xfc, 0x04, 0x4a, 0x2e, 0x65, 0x47, 0x69, 0xc6, 0xcf, + 0xc9, 0x8c, 0x7f, 0x67, 0x4a, 0x14, 0xb7, 0x29, 0x3b, 0xd2, 0xb9, 0x0e, 0xee, 0xe8, 0xb7, 0x64, + 0xce, 0xec, 0x28, 0x26, 0xc4, 0x8f, 0x38, 0xed, 0x79, 0x44, 0xa6, 0x54, 0xd1, 0x2a, 0x53, 0x76, + 0x38, 0x16, 0x22, 0x07, 0x56, 0x7c, 0x1c, 0xe0, 0x01, 0x71, 0xed, 0x81, 0x08, 0x4e, 0xea, 0x7b, + 0x41, 0xfa, 0x7e, 0x7f, 0x8a, 0xef, 0x3b, 0xca, 0x34, 0x5b, 0xf5, 0x90, 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xa5, 0x31, 0xff, 0x9b, 0x01, 0x4b, 0xd9, 0x4a, 0x81, 0x36, 0xa6, 0x3e, 0xfa, 0x1d, + 0xab, 0x7c, 0x6b, 0x57, 0xce, 0x64, 0xa3, 0x4a, 0x91, 0x79, 0x43, 0x4e, 0xe5, 0x2a, 0x3a, 0x77, + 0xd6, 0xa3, 0x7f, 0x18, 0x50, 0x9d, 0xd8, 0xed, 0xe8, 0x83, 0xa9, 0xaf, 0x1e, 0x27, 0x55, 0xa4, + 0x69, 0x09, 0xf3, 0x2b, 0xc9, 0xb5, 0x6b, 0x1e, 0xbe, 0xac, 0x84, 0x77, 0x35, 0x8d, 0xab, 0xc6, + 0xbb, 0x37, 0x9f, 0xc2, 0x9b, 0x4e, 0xe8, 0xbf, 0x98, 0xf7, 0xcd, 0xf4, 0x22, 0xc6, 0x0e, 0xc5, + 0xf9, 0x7e, 0x68, 0xfc, 0xb2, 0xa5, 0xf5, 0x07, 0xa1, 0x87, 0x83, 0x41, 0x23, 0x8c, 0x07, 0xcd, + 0x01, 0x09, 0xe4, 0xe9, 0xdf, 0x54, 0x43, 0x38, 0xa2, 0xec, 0x39, 0xff, 0xbb, 0xba, 0x96, 0x0a, + 0x7a, 0xf3, 0xd2, 0xe2, 0xca, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x83, 0x4a, 0x0c, 0x83, + 0x1b, 0x00, 0x00, } diff --git a/googleapis/cloud/securitycenter/v1beta1/asset.pb.go b/googleapis/cloud/securitycenter/v1beta1/asset.pb.go index 0bf56096b09378d82daec994143381c5fa718a7b..cd37c3ae90edd04867c5bc0a8ba80c1745fec3c2 100644 --- a/googleapis/cloud/securitycenter/v1beta1/asset.pb.go +++ b/googleapis/cloud/securitycenter/v1beta1/asset.pb.go @@ -24,9 +24,9 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud // Platform (GCP) resource. // -// The Asset is a Cloud SCC resource that captures information about a single GCP -// resource. All modifications to an Asset are only within the context of Cloud -// SCC and don't affect the referenced GCP resource. +// The Asset is a Cloud SCC resource that captures information about a single +// GCP resource. All modifications to an Asset are only within the context of +// Cloud SCC and don't affect the referenced GCP resource. type Asset struct { // The relative resource name of this asset. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name @@ -56,7 +56,7 @@ func (m *Asset) Reset() { *m = Asset{} } func (m *Asset) String() string { return proto.CompactTextString(m) } func (*Asset) ProtoMessage() {} func (*Asset) Descriptor() ([]byte, []int) { - return fileDescriptor_asset_7db002f1bdd144f0, []int{0} + return fileDescriptor_asset_43df7b06a0eb9ff3, []int{0} } func (m *Asset) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Asset.Unmarshal(m, b) @@ -147,7 +147,7 @@ func (m *Asset_SecurityCenterProperties) Reset() { *m = Asset_SecurityCe func (m *Asset_SecurityCenterProperties) String() string { return proto.CompactTextString(m) } func (*Asset_SecurityCenterProperties) ProtoMessage() {} func (*Asset_SecurityCenterProperties) Descriptor() ([]byte, []int) { - return fileDescriptor_asset_7db002f1bdd144f0, []int{0, 0} + return fileDescriptor_asset_43df7b06a0eb9ff3, []int{0, 0} } func (m *Asset_SecurityCenterProperties) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Asset_SecurityCenterProperties.Unmarshal(m, b) @@ -209,10 +209,10 @@ func init() { } func init() { - proto.RegisterFile("google/cloud/securitycenter/v1beta1/asset.proto", fileDescriptor_asset_7db002f1bdd144f0) + proto.RegisterFile("google/cloud/securitycenter/v1beta1/asset.proto", fileDescriptor_asset_43df7b06a0eb9ff3) } -var fileDescriptor_asset_7db002f1bdd144f0 = []byte{ +var fileDescriptor_asset_43df7b06a0eb9ff3 = []byte{ // 490 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x6b, 0xd4, 0x40, 0x14, 0x25, 0xdd, 0x6e, 0xb5, 0x77, 0xed, 0x07, 0x23, 0xe8, 0x10, 0x04, 0x17, 0xfb, 0xd0, 0x15, diff --git a/googleapis/cloud/securitycenter/v1beta1/finding.pb.go b/googleapis/cloud/securitycenter/v1beta1/finding.pb.go index 296ad6d97eb0dc0f34a5316b6c47e55f37b0f65e..ebfe94be92ef875d0245e051921563dd99691eea 100644 --- a/googleapis/cloud/securitycenter/v1beta1/finding.pb.go +++ b/googleapis/cloud/securitycenter/v1beta1/finding.pb.go @@ -49,7 +49,7 @@ func (x Finding_State) String() string { return proto.EnumName(Finding_State_name, int32(x)) } func (Finding_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_finding_2c388f0a3f99b762, []int{0, 0} + return fileDescriptor_finding_67aa433c3f84c505, []int{0, 0} } // Cloud Security Command Center (Cloud SCC) finding. @@ -77,7 +77,7 @@ type Finding struct { ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // The state of the finding. State Finding_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.securitycenter.v1beta1.Finding_State" json:"state,omitempty"` - // The additional taxonomy group within findings from a give source. + // The additional taxonomy group within findings from a given source. // This field is immutable after creation time. // Example: "XSS_FLASH_INJECTION" Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` @@ -86,7 +86,9 @@ type Finding struct { // guaranteed to be either empty or a well formed URL. ExternalUri string `protobuf:"bytes,6,opt,name=external_uri,json=externalUri,proto3" json:"external_uri,omitempty"` // Source specific properties. These properties are managed by the source - // that writes the finding. + // that writes the finding. The key names in the source_properties map must be + // between 1 and 255 characters, and must start with a letter and contain + // alphanumeric characters or underscores only. SourceProperties map[string]*_struct.Value `protobuf:"bytes,7,rep,name=source_properties,json=sourceProperties,proto3" json:"source_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. User specified security marks. These marks are entirely // managed by the user and come from the SecurityMarks resource that belongs @@ -107,7 +109,7 @@ func (m *Finding) Reset() { *m = Finding{} } func (m *Finding) String() string { return proto.CompactTextString(m) } func (*Finding) ProtoMessage() {} func (*Finding) Descriptor() ([]byte, []int) { - return fileDescriptor_finding_2c388f0a3f99b762, []int{0} + return fileDescriptor_finding_67aa433c3f84c505, []int{0} } func (m *Finding) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Finding.Unmarshal(m, b) @@ -204,10 +206,10 @@ func init() { } func init() { - proto.RegisterFile("google/cloud/securitycenter/v1beta1/finding.proto", fileDescriptor_finding_2c388f0a3f99b762) + proto.RegisterFile("google/cloud/securitycenter/v1beta1/finding.proto", fileDescriptor_finding_67aa433c3f84c505) } -var fileDescriptor_finding_2c388f0a3f99b762 = []byte{ +var fileDescriptor_finding_67aa433c3f84c505 = []byte{ // 510 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x41, 0x6f, 0xda, 0x30, 0x14, 0xc7, 0x17, 0x28, 0x14, 0x1e, 0xb4, 0xa2, 0x96, 0x5a, 0x45, 0x68, 0xd2, 0x58, 0x7b, 0x18, diff --git a/googleapis/cloud/securitycenter/v1beta1/securitycenter_service.pb.go b/googleapis/cloud/securitycenter/v1beta1/securitycenter_service.pb.go index a14d959686d9bcc5360ca6aed03b5adfb5207f48..0574153da5697e8ea3a87b9af4cde2b7006bcb56 100644 --- a/googleapis/cloud/securitycenter/v1beta1/securitycenter_service.pb.go +++ b/googleapis/cloud/securitycenter/v1beta1/securitycenter_service.pb.go @@ -71,7 +71,7 @@ func (x ListAssetsResponse_ListAssetsResult_State) String() string { return proto.EnumName(ListAssetsResponse_ListAssetsResult_State_name, int32(x)) } func (ListAssetsResponse_ListAssetsResult_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{12, 0, 0} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{12, 0, 0} } // Request message for creating a finding. @@ -95,7 +95,7 @@ func (m *CreateFindingRequest) Reset() { *m = CreateFindingRequest{} } func (m *CreateFindingRequest) String() string { return proto.CompactTextString(m) } func (*CreateFindingRequest) ProtoMessage() {} func (*CreateFindingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{0} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{0} } func (m *CreateFindingRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateFindingRequest.Unmarshal(m, b) @@ -153,7 +153,7 @@ func (m *CreateSourceRequest) Reset() { *m = CreateSourceRequest{} } func (m *CreateSourceRequest) String() string { return proto.CompactTextString(m) } func (*CreateSourceRequest) ProtoMessage() {} func (*CreateSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{1} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{1} } func (m *CreateSourceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateSourceRequest.Unmarshal(m, b) @@ -201,7 +201,7 @@ func (m *GetOrganizationSettingsRequest) Reset() { *m = GetOrganizationS func (m *GetOrganizationSettingsRequest) String() string { return proto.CompactTextString(m) } func (*GetOrganizationSettingsRequest) ProtoMessage() {} func (*GetOrganizationSettingsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{2} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{2} } func (m *GetOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetOrganizationSettingsRequest.Unmarshal(m, b) @@ -242,7 +242,7 @@ func (m *GetSourceRequest) Reset() { *m = GetSourceRequest{} } func (m *GetSourceRequest) String() string { return proto.CompactTextString(m) } func (*GetSourceRequest) ProtoMessage() {} func (*GetSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{3} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{3} } func (m *GetSourceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSourceRequest.Unmarshal(m, b) @@ -360,7 +360,7 @@ func (m *GroupAssetsRequest) Reset() { *m = GroupAssetsRequest{} } func (m *GroupAssetsRequest) String() string { return proto.CompactTextString(m) } func (*GroupAssetsRequest) ProtoMessage() {} func (*GroupAssetsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{4} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{4} } func (m *GroupAssetsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GroupAssetsRequest.Unmarshal(m, b) @@ -449,7 +449,7 @@ func (m *GroupAssetsResponse) Reset() { *m = GroupAssetsResponse{} } func (m *GroupAssetsResponse) String() string { return proto.CompactTextString(m) } func (*GroupAssetsResponse) ProtoMessage() {} func (*GroupAssetsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{5} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{5} } func (m *GroupAssetsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GroupAssetsResponse.Unmarshal(m, b) @@ -556,7 +556,7 @@ func (m *GroupFindingsRequest) Reset() { *m = GroupFindingsRequest{} } func (m *GroupFindingsRequest) String() string { return proto.CompactTextString(m) } func (*GroupFindingsRequest) ProtoMessage() {} func (*GroupFindingsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{6} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{6} } func (m *GroupFindingsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GroupFindingsRequest.Unmarshal(m, b) @@ -638,7 +638,7 @@ func (m *GroupFindingsResponse) Reset() { *m = GroupFindingsResponse{} } func (m *GroupFindingsResponse) String() string { return proto.CompactTextString(m) } func (*GroupFindingsResponse) ProtoMessage() {} func (*GroupFindingsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{7} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{7} } func (m *GroupFindingsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GroupFindingsResponse.Unmarshal(m, b) @@ -694,7 +694,7 @@ func (m *GroupResult) Reset() { *m = GroupResult{} } func (m *GroupResult) String() string { return proto.CompactTextString(m) } func (*GroupResult) ProtoMessage() {} func (*GroupResult) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{8} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{8} } func (m *GroupResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GroupResult.Unmarshal(m, b) @@ -749,7 +749,7 @@ func (m *ListSourcesRequest) Reset() { *m = ListSourcesRequest{} } func (m *ListSourcesRequest) String() string { return proto.CompactTextString(m) } func (*ListSourcesRequest) ProtoMessage() {} func (*ListSourcesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{9} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{9} } func (m *ListSourcesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListSourcesRequest.Unmarshal(m, b) @@ -806,7 +806,7 @@ func (m *ListSourcesResponse) Reset() { *m = ListSourcesResponse{} } func (m *ListSourcesResponse) String() string { return proto.CompactTextString(m) } func (*ListSourcesResponse) ProtoMessage() {} func (*ListSourcesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{10} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{10} } func (m *ListSourcesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListSourcesResponse.Unmarshal(m, b) @@ -933,7 +933,7 @@ func (m *ListAssetsRequest) Reset() { *m = ListAssetsRequest{} } func (m *ListAssetsRequest) String() string { return proto.CompactTextString(m) } func (*ListAssetsRequest) ProtoMessage() {} func (*ListAssetsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{11} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{11} } func (m *ListAssetsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAssetsRequest.Unmarshal(m, b) @@ -1029,7 +1029,7 @@ func (m *ListAssetsResponse) Reset() { *m = ListAssetsResponse{} } func (m *ListAssetsResponse) String() string { return proto.CompactTextString(m) } func (*ListAssetsResponse) ProtoMessage() {} func (*ListAssetsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{12} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{12} } func (m *ListAssetsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAssetsResponse.Unmarshal(m, b) @@ -1092,7 +1092,7 @@ func (m *ListAssetsResponse_ListAssetsResult) Reset() { *m = ListAssetsR func (m *ListAssetsResponse_ListAssetsResult) String() string { return proto.CompactTextString(m) } func (*ListAssetsResponse_ListAssetsResult) ProtoMessage() {} func (*ListAssetsResponse_ListAssetsResult) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{12, 0} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{12, 0} } func (m *ListAssetsResponse_ListAssetsResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAssetsResponse_ListAssetsResult.Unmarshal(m, b) @@ -1194,7 +1194,7 @@ func (m *ListFindingsRequest) Reset() { *m = ListFindingsRequest{} } func (m *ListFindingsRequest) String() string { return proto.CompactTextString(m) } func (*ListFindingsRequest) ProtoMessage() {} func (*ListFindingsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{13} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{13} } func (m *ListFindingsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListFindingsRequest.Unmarshal(m, b) @@ -1283,7 +1283,7 @@ func (m *ListFindingsResponse) Reset() { *m = ListFindingsResponse{} } func (m *ListFindingsResponse) String() string { return proto.CompactTextString(m) } func (*ListFindingsResponse) ProtoMessage() {} func (*ListFindingsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{14} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{14} } func (m *ListFindingsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListFindingsResponse.Unmarshal(m, b) @@ -1351,7 +1351,7 @@ func (m *SetFindingStateRequest) Reset() { *m = SetFindingStateRequest{} func (m *SetFindingStateRequest) String() string { return proto.CompactTextString(m) } func (*SetFindingStateRequest) ProtoMessage() {} func (*SetFindingStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{15} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{15} } func (m *SetFindingStateRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SetFindingStateRequest.Unmarshal(m, b) @@ -1406,7 +1406,7 @@ func (m *RunAssetDiscoveryRequest) Reset() { *m = RunAssetDiscoveryReque func (m *RunAssetDiscoveryRequest) String() string { return proto.CompactTextString(m) } func (*RunAssetDiscoveryRequest) ProtoMessage() {} func (*RunAssetDiscoveryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{16} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{16} } func (m *RunAssetDiscoveryRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RunAssetDiscoveryRequest.Unmarshal(m, b) @@ -1442,8 +1442,8 @@ type UpdateFindingRequest struct { // alphanumeric and less than or equal to 32 characters and greater than 0 // characters in length. Finding *Finding `protobuf:"bytes,1,opt,name=finding,proto3" json:"finding,omitempty"` - // The FieldMask to use when updating the finding resource. This field is - // ignored if the finding does not already exist and the finding is created. + // The FieldMask to use when updating the finding resource. This field should + // not be specified when creating a finding. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1454,7 +1454,7 @@ func (m *UpdateFindingRequest) Reset() { *m = UpdateFindingRequest{} } func (m *UpdateFindingRequest) String() string { return proto.CompactTextString(m) } func (*UpdateFindingRequest) ProtoMessage() {} func (*UpdateFindingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{17} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{17} } func (m *UpdateFindingRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateFindingRequest.Unmarshal(m, b) @@ -1503,7 +1503,7 @@ func (m *UpdateOrganizationSettingsRequest) Reset() { *m = UpdateOrganiz func (m *UpdateOrganizationSettingsRequest) String() string { return proto.CompactTextString(m) } func (*UpdateOrganizationSettingsRequest) ProtoMessage() {} func (*UpdateOrganizationSettingsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{18} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{18} } func (m *UpdateOrganizationSettingsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateOrganizationSettingsRequest.Unmarshal(m, b) @@ -1552,7 +1552,7 @@ func (m *UpdateSourceRequest) Reset() { *m = UpdateSourceRequest{} } func (m *UpdateSourceRequest) String() string { return proto.CompactTextString(m) } func (*UpdateSourceRequest) ProtoMessage() {} func (*UpdateSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{19} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{19} } func (m *UpdateSourceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateSourceRequest.Unmarshal(m, b) @@ -1603,7 +1603,7 @@ func (m *UpdateSecurityMarksRequest) Reset() { *m = UpdateSecurityMarksR func (m *UpdateSecurityMarksRequest) String() string { return proto.CompactTextString(m) } func (*UpdateSecurityMarksRequest) ProtoMessage() {} func (*UpdateSecurityMarksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_securitycenter_service_04d508c1925341a7, []int{20} + return fileDescriptor_securitycenter_service_c243892a08857f74, []int{20} } func (m *UpdateSecurityMarksRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateSecurityMarksRequest.Unmarshal(m, b) @@ -2371,10 +2371,10 @@ var _SecurityCenter_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("google/cloud/securitycenter/v1beta1/securitycenter_service.proto", fileDescriptor_securitycenter_service_04d508c1925341a7) + proto.RegisterFile("google/cloud/securitycenter/v1beta1/securitycenter_service.proto", fileDescriptor_securitycenter_service_c243892a08857f74) } -var fileDescriptor_securitycenter_service_04d508c1925341a7 = []byte{ +var fileDescriptor_securitycenter_service_c243892a08857f74 = []byte{ // 1902 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0xdb, 0x6f, 0x1b, 0x59, 0x19, 0xe7, 0x38, 0x71, 0x12, 0x7f, 0x6e, 0x5a, 0xf7, 0x24, 0x2d, 0xde, 0xd9, 0xee, 0x12, 0x06, diff --git a/googleapis/cloud/securitycenter/v1beta1/source.pb.go b/googleapis/cloud/securitycenter/v1beta1/source.pb.go index 11e6552b9a8f4a35053f5da336b96769ab48d4f8..bee1d45903eb857abe59f9ae30cc10e020105543 100644 --- a/googleapis/cloud/securitycenter/v1beta1/source.pb.go +++ b/googleapis/cloud/securitycenter/v1beta1/source.pb.go @@ -33,8 +33,8 @@ type Source struct { // two sources with the same parent can't share the same display name. // The display name must start and end with a letter or digit, may contain // letters, digits, spaces, hyphens, and underscores, and can be no longer - // than 30 characters. This is captured by the regular expression: - // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. + // than 32 characters. This is captured by the regular expression: + // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The description of the source (max of 1024 characters). // Example: @@ -53,7 +53,7 @@ func (m *Source) Reset() { *m = Source{} } func (m *Source) String() string { return proto.CompactTextString(m) } func (*Source) ProtoMessage() {} func (*Source) Descriptor() ([]byte, []int) { - return fileDescriptor_source_988f6ef603786e95, []int{0} + return fileDescriptor_source_adbcc5410043bfde, []int{0} } func (m *Source) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Source.Unmarshal(m, b) @@ -99,10 +99,10 @@ func init() { } func init() { - proto.RegisterFile("google/cloud/securitycenter/v1beta1/source.proto", fileDescriptor_source_988f6ef603786e95) + proto.RegisterFile("google/cloud/securitycenter/v1beta1/source.proto", fileDescriptor_source_adbcc5410043bfde) } -var fileDescriptor_source_988f6ef603786e95 = []byte{ +var fileDescriptor_source_adbcc5410043bfde = []byte{ // 217 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x3f, 0x4b, 0xc5, 0x30, 0x14, 0xc5, 0xa9, 0x4a, 0xc1, 0xd4, 0x29, 0x53, 0x11, 0x87, 0xaa, 0x83, 0x4e, 0x89, 0xc5, 0xd1, diff --git a/googleapis/cloud/speech/v1/cloud_speech.pb.go b/googleapis/cloud/speech/v1/cloud_speech.pb.go index 76471c5386507fdcd1229c4cf3005b4e46c700b9..001c31982347f480eb17dd2a944f0b291f2b7b64 100644 --- a/googleapis/cloud/speech/v1/cloud_speech.pb.go +++ b/googleapis/cloud/speech/v1/cloud_speech.pb.go @@ -115,7 +115,7 @@ func (x RecognitionConfig_AudioEncoding) String() string { return proto.EnumName(RecognitionConfig_AudioEncoding_name, int32(x)) } func (RecognitionConfig_AudioEncoding) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{4, 0} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{4, 0} } // Indicates the type of speech event. @@ -147,7 +147,7 @@ func (x StreamingRecognizeResponse_SpeechEventType) String() string { return proto.EnumName(StreamingRecognizeResponse_SpeechEventType_name, int32(x)) } func (StreamingRecognizeResponse_SpeechEventType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{10, 0} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{10, 0} } // The top-level message sent by the client for the `Recognize` method. @@ -166,7 +166,7 @@ func (m *RecognizeRequest) Reset() { *m = RecognizeRequest{} } func (m *RecognizeRequest) String() string { return proto.CompactTextString(m) } func (*RecognizeRequest) ProtoMessage() {} func (*RecognizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{0} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{0} } func (m *RecognizeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RecognizeRequest.Unmarshal(m, b) @@ -217,7 +217,7 @@ func (m *LongRunningRecognizeRequest) Reset() { *m = LongRunningRecogniz func (m *LongRunningRecognizeRequest) String() string { return proto.CompactTextString(m) } func (*LongRunningRecognizeRequest) ProtoMessage() {} func (*LongRunningRecognizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{1} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{1} } func (m *LongRunningRecognizeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LongRunningRecognizeRequest.Unmarshal(m, b) @@ -272,7 +272,7 @@ func (m *StreamingRecognizeRequest) Reset() { *m = StreamingRecognizeReq func (m *StreamingRecognizeRequest) String() string { return proto.CompactTextString(m) } func (*StreamingRecognizeRequest) ProtoMessage() {} func (*StreamingRecognizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{2} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{2} } func (m *StreamingRecognizeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StreamingRecognizeRequest.Unmarshal(m, b) @@ -431,7 +431,7 @@ func (m *StreamingRecognitionConfig) Reset() { *m = StreamingRecognition func (m *StreamingRecognitionConfig) String() string { return proto.CompactTextString(m) } func (*StreamingRecognitionConfig) ProtoMessage() {} func (*StreamingRecognitionConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{3} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{3} } func (m *StreamingRecognitionConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StreamingRecognitionConfig.Unmarshal(m, b) @@ -487,6 +487,13 @@ type RecognitionConfig struct { // This field is optional for `FLAC` and `WAV` audio files and required // for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1.RecognitionConfig.AudioEncoding]. SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` + // This needs to be set to `true` explicitly and `audio_channel_count` > 1 + // to get each channel recognized separately. The recognition result will + // contain a `channel_tag` field to state which channel that result belongs + // to. If this is not true, we will only recognize the first channel. The + // request is billed cumulatively for all channels recognized: + // `audio_channel_count` multiplied by the length of the audio. + EnableSeparateRecognitionPerChannel bool `protobuf:"varint,12,opt,name=enable_separate_recognition_per_channel,json=enableSeparateRecognitionPerChannel,proto3" json:"enable_separate_recognition_per_channel,omitempty"` // *Required* The language of the supplied audio as a // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. // Example: "en-US". @@ -556,16 +563,20 @@ type RecognitionConfig struct { // </table> Model string `protobuf:"bytes,13,opt,name=model,proto3" json:"model,omitempty"` // *Optional* Set to true to use an enhanced model for speech recognition. - // You must also set the `model` field to a valid, enhanced model. If - // `use_enhanced` is set to true and the `model` field is not set, then - // `use_enhanced` is ignored. If `use_enhanced` is true and an enhanced - // version of the specified model does not exist, then the speech is - // recognized using the standard version of the specified model. + // If `use_enhanced` is set to true and the `model` field is not set, then + // an appropriate enhanced model is chosen if: + // 1. project is eligible for requesting enhanced models + // 2. an enhanced model exists for the audio + // + // If `use_enhanced` is true and an enhanced version of the specified model + // does not exist, then the speech is recognized using the standard version + // of the specified model. // // Enhanced speech models require that you opt-in to data logging using - // instructions in the [documentation](/speech-to-text/enable-data-logging). - // If you set `use_enhanced` to true and you have not enabled audio logging, - // then you will receive an error. + // instructions in the + // [documentation](/speech-to-text/docs/enable-data-logging). If you set + // `use_enhanced` to true and you have not enabled audio logging, then you + // will receive an error. UseEnhanced bool `protobuf:"varint,14,opt,name=use_enhanced,json=useEnhanced,proto3" json:"use_enhanced,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -576,7 +587,7 @@ func (m *RecognitionConfig) Reset() { *m = RecognitionConfig{} } func (m *RecognitionConfig) String() string { return proto.CompactTextString(m) } func (*RecognitionConfig) ProtoMessage() {} func (*RecognitionConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{4} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{4} } func (m *RecognitionConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RecognitionConfig.Unmarshal(m, b) @@ -610,6 +621,13 @@ func (m *RecognitionConfig) GetSampleRateHertz() int32 { return 0 } +func (m *RecognitionConfig) GetEnableSeparateRecognitionPerChannel() bool { + if m != nil { + return m.EnableSeparateRecognitionPerChannel + } + return false +} + func (m *RecognitionConfig) GetLanguageCode() string { if m != nil { return m.LanguageCode @@ -685,7 +703,7 @@ func (m *SpeechContext) Reset() { *m = SpeechContext{} } func (m *SpeechContext) String() string { return proto.CompactTextString(m) } func (*SpeechContext) ProtoMessage() {} func (*SpeechContext) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{5} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{5} } func (m *SpeechContext) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SpeechContext.Unmarshal(m, b) @@ -733,7 +751,7 @@ func (m *RecognitionAudio) Reset() { *m = RecognitionAudio{} } func (m *RecognitionAudio) String() string { return proto.CompactTextString(m) } func (*RecognitionAudio) ProtoMessage() {} func (*RecognitionAudio) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{6} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{6} } func (m *RecognitionAudio) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RecognitionAudio.Unmarshal(m, b) @@ -872,7 +890,7 @@ func (m *RecognizeResponse) Reset() { *m = RecognizeResponse{} } func (m *RecognizeResponse) String() string { return proto.CompactTextString(m) } func (*RecognizeResponse) ProtoMessage() {} func (*RecognizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{7} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{7} } func (m *RecognizeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RecognizeResponse.Unmarshal(m, b) @@ -917,7 +935,7 @@ func (m *LongRunningRecognizeResponse) Reset() { *m = LongRunningRecogni func (m *LongRunningRecognizeResponse) String() string { return proto.CompactTextString(m) } func (*LongRunningRecognizeResponse) ProtoMessage() {} func (*LongRunningRecognizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{8} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{8} } func (m *LongRunningRecognizeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LongRunningRecognizeResponse.Unmarshal(m, b) @@ -964,7 +982,7 @@ func (m *LongRunningRecognizeMetadata) Reset() { *m = LongRunningRecogni func (m *LongRunningRecognizeMetadata) String() string { return proto.CompactTextString(m) } func (*LongRunningRecognizeMetadata) ProtoMessage() {} func (*LongRunningRecognizeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{9} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{9} } func (m *LongRunningRecognizeMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LongRunningRecognizeMetadata.Unmarshal(m, b) @@ -1074,7 +1092,7 @@ func (m *StreamingRecognizeResponse) Reset() { *m = StreamingRecognizeRe func (m *StreamingRecognizeResponse) String() string { return proto.CompactTextString(m) } func (*StreamingRecognizeResponse) ProtoMessage() {} func (*StreamingRecognizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{10} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{10} } func (m *StreamingRecognizeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StreamingRecognizeResponse.Unmarshal(m, b) @@ -1134,7 +1152,11 @@ type StreamingRecognitionResult struct { // (completely unstable) to 1.0 (completely stable). // This field is only provided for interim results (`is_final=false`). // The default of 0.0 is a sentinel value indicating `stability` was not set. - Stability float32 `protobuf:"fixed32,3,opt,name=stability,proto3" json:"stability,omitempty"` + Stability float32 `protobuf:"fixed32,3,opt,name=stability,proto3" json:"stability,omitempty"` + // For multi-channel audio, this is the channel number corresponding to the + // recognized result for the audio from that channel. + // For audio_channel_count = N, its output values can range from '1' to 'N'. + ChannelTag int32 `protobuf:"varint,5,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1144,7 +1166,7 @@ func (m *StreamingRecognitionResult) Reset() { *m = StreamingRecognition func (m *StreamingRecognitionResult) String() string { return proto.CompactTextString(m) } func (*StreamingRecognitionResult) ProtoMessage() {} func (*StreamingRecognitionResult) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{11} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{11} } func (m *StreamingRecognitionResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StreamingRecognitionResult.Unmarshal(m, b) @@ -1185,23 +1207,34 @@ func (m *StreamingRecognitionResult) GetStability() float32 { return 0 } +func (m *StreamingRecognitionResult) GetChannelTag() int32 { + if m != nil { + return m.ChannelTag + } + return 0 +} + // A speech recognition result corresponding to a portion of the audio. type SpeechRecognitionResult struct { // Output only. May contain one or more recognition hypotheses (up to the // maximum specified in `max_alternatives`). // These alternatives are ordered in terms of accuracy, with the top (first) // alternative being the most probable, as ranked by the recognizer. - Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"` + // For multi-channel audio, this is the channel number corresponding to the + // recognized result for the audio from that channel. + // For audio_channel_count = N, its output values can range from '1' to 'N'. + ChannelTag int32 `protobuf:"varint,2,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SpeechRecognitionResult) Reset() { *m = SpeechRecognitionResult{} } func (m *SpeechRecognitionResult) String() string { return proto.CompactTextString(m) } func (*SpeechRecognitionResult) ProtoMessage() {} func (*SpeechRecognitionResult) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{12} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{12} } func (m *SpeechRecognitionResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SpeechRecognitionResult.Unmarshal(m, b) @@ -1228,6 +1261,13 @@ func (m *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternat return nil } +func (m *SpeechRecognitionResult) GetChannelTag() int32 { + if m != nil { + return m.ChannelTag + } + return 0 +} + // Alternative hypotheses (a.k.a. n-best list). type SpeechRecognitionAlternative struct { // Output only. Transcript text representing the words that the user spoke. @@ -1241,6 +1281,8 @@ type SpeechRecognitionAlternative struct { // The default of 0.0 is a sentinel value indicating `confidence` was not set. Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` // Output only. A list of word-specific information for each recognized word. + // Note: When `enable_speaker_diarization` is true, you will see all the words + // from the beginning of the audio. Words []*WordInfo `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1251,7 +1293,7 @@ func (m *SpeechRecognitionAlternative) Reset() { *m = SpeechRecognitionA func (m *SpeechRecognitionAlternative) String() string { return proto.CompactTextString(m) } func (*SpeechRecognitionAlternative) ProtoMessage() {} func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{13} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{13} } func (m *SpeechRecognitionAlternative) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SpeechRecognitionAlternative.Unmarshal(m, b) @@ -1319,7 +1361,7 @@ func (m *WordInfo) Reset() { *m = WordInfo{} } func (m *WordInfo) String() string { return proto.CompactTextString(m) } func (*WordInfo) ProtoMessage() {} func (*WordInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_cloud_speech_e29a84bc29d9b679, []int{14} + return fileDescriptor_cloud_speech_75fcd9f459a8e5e9, []int{14} } func (m *WordInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_WordInfo.Unmarshal(m, b) @@ -1568,96 +1610,101 @@ var _Speech_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("google/cloud/speech/v1/cloud_speech.proto", fileDescriptor_cloud_speech_e29a84bc29d9b679) -} - -var fileDescriptor_cloud_speech_e29a84bc29d9b679 = []byte{ - // 1392 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0x8f, 0xe2, 0x38, 0x7f, 0x5e, 0xfe, 0x39, 0x4b, 0x68, 0x15, 0x37, 0xb4, 0x41, 0xa5, 0x43, - 0xd2, 0x83, 0x4d, 0xd2, 0x4e, 0x0b, 0x85, 0x61, 0x70, 0x1c, 0x25, 0xf1, 0x4c, 0xe2, 0x64, 0x36, - 0x0e, 0x29, 0x1c, 0xd8, 0xd9, 0xc8, 0x6b, 0x47, 0x33, 0xf6, 0x4a, 0x68, 0x57, 0xa1, 0xe9, 0xad, - 0x5c, 0x99, 0xe1, 0xc2, 0xd0, 0x33, 0x1c, 0x39, 0x71, 0xe0, 0xc2, 0x67, 0xe0, 0x08, 0x5f, 0x81, - 0x0f, 0xc1, 0x91, 0xd9, 0x5d, 0xc9, 0xb1, 0x9d, 0x38, 0x4d, 0x67, 0xca, 0x0c, 0x37, 0xed, 0xef, - 0xfd, 0xde, 0xd3, 0x4f, 0x4f, 0xef, 0x8f, 0x04, 0x2b, 0xcd, 0x20, 0x68, 0xb6, 0x58, 0xd1, 0x6b, - 0x05, 0x71, 0xbd, 0x28, 0x42, 0xc6, 0xbc, 0x93, 0xe2, 0xe9, 0xaa, 0x39, 0x13, 0x73, 0x2e, 0x84, - 0x51, 0x20, 0x03, 0x74, 0xc3, 0x50, 0x0b, 0xda, 0x54, 0x48, 0x4c, 0xa7, 0xab, 0xf9, 0xc5, 0x24, - 0x04, 0x0d, 0xfd, 0x22, 0xe5, 0x3c, 0x90, 0x54, 0xfa, 0x01, 0x17, 0xc6, 0x2b, 0x7f, 0x37, 0xb1, - 0xb6, 0x02, 0xde, 0x8c, 0x62, 0xce, 0x7d, 0xde, 0x2c, 0x06, 0x21, 0x8b, 0x7a, 0x48, 0x0b, 0x09, - 0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, 0x7f, 0xd9, 0x04, 0x44, 0x0f, 0x06, 0xdd, 0xe4, 0x8a, 0x2f, 0xe6, - 0xfc, 0x3b, 0xa9, 0x53, 0xd7, 0x1f, 0x4a, 0x61, 0x2f, 0xfd, 0x43, 0x71, 0xee, 0x6b, 0x35, 0xef, - 0x39, 0x77, 0xba, 0xd4, 0x74, 0x31, 0x7b, 0x84, 0xbd, 0xb0, 0x00, 0x5d, 0x1c, 0x03, 0x68, 0xf5, - 0x75, 0x46, 0x86, 0x11, 0xb5, 0xf6, 0xfa, 0x53, 0xc6, 0x19, 0x5a, 0xb6, 0x3e, 0xb0, 0xd6, 0x5b, - 0x90, 0xf7, 0x82, 0xf6, 0x00, 0xf7, 0xf5, 0x49, 0xf3, 0x1a, 0xf7, 0xd5, 0xfb, 0xdf, 0xb7, 0xbe, - 0xfc, 0x24, 0xa1, 0x35, 0x03, 0xf5, 0x51, 0x56, 0x08, 0xa2, 0x66, 0xb1, 0xc9, 0xb8, 0xae, 0x8e, - 0xa2, 0x31, 0xd1, 0xd0, 0x17, 0xfd, 0x3f, 0x87, 0x1f, 0x9b, 0xab, 0x7f, 0x2c, 0xeb, 0x78, 0x54, - 0x73, 0x1f, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x85, 0xf1, 0x69, 0x47, 0x0e, 0x00, 0x00, + proto.RegisterFile("google/cloud/speech/v1/cloud_speech.proto", fileDescriptor_cloud_speech_75fcd9f459a8e5e9) +} + +var fileDescriptor_cloud_speech_75fcd9f459a8e5e9 = []byte{ + // 1459 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4f, 0x6f, 0xdb, 0x46, + 0x16, 0x37, 0x25, 0xcb, 0x7f, 0x9e, 0xff, 0xc9, 0xb3, 0xde, 0x84, 0x56, 0xbc, 0xb1, 0x97, 0xd9, + 0x20, 0x76, 0x0e, 0xd2, 0xda, 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xc7, 0x9f, 0x3e, 0xcf, 0x2c, 0x5b, 0x4b, 0xf1, 0x0f, 0x92, 0x06, 0xbe, 0x08, + 0x53, 0xd4, 0x0b, 0xe3, 0x31, 0x7a, 0x6b, 0xc0, 0xd2, 0x75, 0x22, 0x8a, 0x9e, 0x8c, 0x7a, 0xc9, + 0x0d, 0x57, 0xf9, 0xc2, 0x9f, 0xd2, 0xa0, 0xbe, 0x5f, 0xa7, 0xe2, 0x51, 0xfa, 0xeb, 0x64, 0x3d, + 0x56, 0x6c, 0xfe, 0x62, 0xad, 0xf6, 0xb1, 0xe9, 0x43, 0x0e, 0x10, 0x7b, 0x63, 0x00, 0xba, 0xaa, + 0x24, 0x68, 0xf3, 0x7d, 0x54, 0x47, 0x93, 0xda, 0x7a, 0x7f, 0xa1, 0xb2, 0xc6, 0xd6, 0x8d, 0xbf, + 0x1a, 0xdb, 0x1d, 0x28, 0x38, 0x7e, 0x77, 0x44, 0xf8, 0xf6, 0x8c, 0xfe, 0x8c, 0xf5, 0xf8, 0xfb, + 0xd7, 0x8d, 0xff, 0xfd, 0x33, 0x81, 0xb9, 0x7e, 0x7c, 0xaf, 0x2b, 0xfa, 0xa1, 0x5b, 0x72, 0x19, + 0x57, 0xdd, 0x51, 0xd2, 0x2e, 0x1a, 0x78, 0x62, 0xf8, 0xaf, 0xf5, 0x1f, 0xfa, 0xe9, 0x17, 0xc3, + 0x38, 0x9d, 0x50, 0xd8, 0x27, 0xbf, 0x06, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x19, 0x0e, 0xdc, 0xe0, + 0x0e, 0x00, 0x00, } diff --git a/googleapis/firestore/admin/v1/field.pb.go b/googleapis/firestore/admin/v1/field.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..f8847277b86285f5b43814e74becf54a4c5124ef --- /dev/null +++ b/googleapis/firestore/admin/v1/field.pb.go @@ -0,0 +1,213 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/admin/v1/field.proto + +package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1" + +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 + +// 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 + +// Represents a single field in the database. +// +// Fields are grouped by their "Collection Group", which represent all +// collections in the database with the same id. +type Field struct { + // A field name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + // + // A field path may be a simple field name, e.g. `address` or a path to fields + // within map_value , e.g. `address.city`, + // or a special field path. The only valid special field is `*`, which + // represents any field. + // + // Field paths may be quoted using ` (backtick). The only character that needs + // to be escaped within a quoted field path is the backtick character itself, + // escaped using a backslash. Special characters in field paths that + // must be quoted include: `*`, `.`, + // ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + // + // Examples: + // (Note: Comments here are written in markdown syntax, so there is an + // additional layer of backticks to represent a code block) + // `\`address.city\`` represents a field named `address.city`, not the map key + // `city` in the field `address`. + // `\`*\`` represents a field named `*`, not any field. + // + // A special `Field` contains the default indexing settings for all fields. + // This field's resource name is: + // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + // Indexes defined on this `Field` will be applied to all fields which do not + // have their own `Field` index configuration. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The index configuration for this field. If unset, field indexing will + // revert to the configuration defined by the `ancestor_field`. To + // explicitly remove all indexes for this field, specify an index config + // with an empty list of indexes. + IndexConfig *Field_IndexConfig `protobuf:"bytes,2,opt,name=index_config,json=indexConfig,proto3" json:"index_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Field) Reset() { *m = Field{} } +func (m *Field) String() string { return proto.CompactTextString(m) } +func (*Field) ProtoMessage() {} +func (*Field) Descriptor() ([]byte, []int) { + return fileDescriptor_field_2daa7c7b7ea5f26c, []int{0} +} +func (m *Field) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Field.Unmarshal(m, b) +} +func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Field.Marshal(b, m, deterministic) +} +func (dst *Field) XXX_Merge(src proto.Message) { + xxx_messageInfo_Field.Merge(dst, src) +} +func (m *Field) XXX_Size() int { + return xxx_messageInfo_Field.Size(m) +} +func (m *Field) XXX_DiscardUnknown() { + xxx_messageInfo_Field.DiscardUnknown(m) +} + +var xxx_messageInfo_Field proto.InternalMessageInfo + +func (m *Field) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Field) GetIndexConfig() *Field_IndexConfig { + if m != nil { + return m.IndexConfig + } + return nil +} + +// The index configuration for this field. +type Field_IndexConfig struct { + // The indexes supported for this field. + Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"` + // Output only. + // When true, the `Field`'s index configuration is set from the + // configuration specified by the `ancestor_field`. + // When false, the `Field`'s index configuration is defined explicitly. + UsesAncestorConfig bool `protobuf:"varint,2,opt,name=uses_ancestor_config,json=usesAncestorConfig,proto3" json:"uses_ancestor_config,omitempty"` + // Output only. + // Specifies the resource name of the `Field` from which this field's + // index configuration is set (when `uses_ancestor_config` is true), + // or from which it *would* be set if this field had no index configuration + // (when `uses_ancestor_config` is false). + AncestorField string `protobuf:"bytes,3,opt,name=ancestor_field,json=ancestorField,proto3" json:"ancestor_field,omitempty"` + // Output only + // When true, the `Field`'s index configuration is in the process of being + // reverted. Once complete, the index config will transition to the same + // state as the field specified by `ancestor_field`, at which point + // `uses_ancestor_config` will be `true` and `reverting` will be `false`. + Reverting bool `protobuf:"varint,4,opt,name=reverting,proto3" json:"reverting,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Field_IndexConfig) Reset() { *m = Field_IndexConfig{} } +func (m *Field_IndexConfig) String() string { return proto.CompactTextString(m) } +func (*Field_IndexConfig) ProtoMessage() {} +func (*Field_IndexConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_field_2daa7c7b7ea5f26c, []int{0, 0} +} +func (m *Field_IndexConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Field_IndexConfig.Unmarshal(m, b) +} +func (m *Field_IndexConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Field_IndexConfig.Marshal(b, m, deterministic) +} +func (dst *Field_IndexConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_Field_IndexConfig.Merge(dst, src) +} +func (m *Field_IndexConfig) XXX_Size() int { + return xxx_messageInfo_Field_IndexConfig.Size(m) +} +func (m *Field_IndexConfig) XXX_DiscardUnknown() { + xxx_messageInfo_Field_IndexConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_Field_IndexConfig proto.InternalMessageInfo + +func (m *Field_IndexConfig) GetIndexes() []*Index { + if m != nil { + return m.Indexes + } + return nil +} + +func (m *Field_IndexConfig) GetUsesAncestorConfig() bool { + if m != nil { + return m.UsesAncestorConfig + } + return false +} + +func (m *Field_IndexConfig) GetAncestorField() string { + if m != nil { + return m.AncestorField + } + return "" +} + +func (m *Field_IndexConfig) GetReverting() bool { + if m != nil { + return m.Reverting + } + return false +} + +func init() { + proto.RegisterType((*Field)(nil), "google.firestore.admin.v1.Field") + proto.RegisterType((*Field_IndexConfig)(nil), "google.firestore.admin.v1.Field.IndexConfig") +} + +func init() { + proto.RegisterFile("google/firestore/admin/v1/field.proto", fileDescriptor_field_2daa7c7b7ea5f26c) +} + +var fileDescriptor_field_2daa7c7b7ea5f26c = []byte{ + // 352 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00,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 0xf3, 0xd1, 0xfc, 0x41, 0xd8, 0xde, 0x12, + 0xc9, 0x3d, 0x3e, 0x02, 0x59, 0x24, 0x0e, 0x72, 0x6b, 0x1d, 0xbb, 0xeb, 0xee, 0xc9, 0x06, 0xa3, + 0x5f, 0x1a, 0xc8, 0x2d, 0x3e, 0x5f, 0x25, 0x22, 0x99, 0x72, 0x3d, 0x03, 0x72, 0x7b, 0xc8, 0x63, + 0x9f, 0x64, 0x5a, 0xaf, 0x90, 0x8a, 0xb6, 0x36, 0x3e, 0xab, 0x60, 0x58, 0xb2, 0x53, 0x83, 0x9f, + 0x3d, 0x2d, 0x6f, 0xf3, 0x4d, 0xb4, 0x70, 0x23, 0x16, 0x6b, 0x11, 0xa7, 0x4a, 0x4b, 0xa7, 0x0e, + 0x69, 0x9b, 0x8b, 0xfe, 0x37, 0xc2, 0x97, 0x33, 0xb3, 0xd8, 0x3d, 0x67, 0x1f, 0x43, 0xcc, 0x38, + 0xdb, 0xef, 0x18, 0xbd, 0x3e, 0x16, 0xa0, 0x34, 0x11, 0xd7, 0x92, 0x9a, 0x58, 0x32, 0x29, 0x34, + 0x6c, 0x9f, 0xe5, 0x12, 0x5f, 0xaa, 0xe4, 0x9f, 0x77, 0x7a, 0x80, 0xc3, 0x87, 0x55, 0x1f, 0x0d, + 0x86, 0x2f, 0x9f, 0xd6, 0xd5, 0x28, 0xcf, 0x19, 0x44, 0x66, 0x15, 0xd2, 0x61, 0x55, 0xdb, 0x83, + 0xda, 0x89, 0xf7, 0x5b, 0x12, 0x01, 0x10, 0x41, 0x45, 0x04, 0x40, 0x04, 0x13, 0xef, 0xed, 0x10, + 0x5a, 0xef, 0xfe, 0x02, 0x00, 0x00, 0xff, 0xff, 0x51, 0x20, 0x00, 0xc1, 0x7c, 0x02, 0x00, 0x00, +} diff --git a/googleapis/firestore/admin/v1/firestore_admin.pb.go b/googleapis/firestore/admin/v1/firestore_admin.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..d29b27f7e7c42f4f8396204ced4d16f1556ab76f --- /dev/null +++ b/googleapis/firestore/admin/v1/firestore_admin.pb.go @@ -0,0 +1,1120 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/admin/v1/firestore_admin.proto + +package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import empty "github.com/golang/protobuf/ptypes/empty" +import _ "google.golang.org/genproto/googleapis/api/annotations" +import longrunning "google.golang.org/genproto/googleapis/longrunning" +import field_mask "google.golang.org/genproto/protobuf/field_mask" + +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 request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. +type CreateIndexRequest struct { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The composite index to create. + Index *Index `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateIndexRequest) Reset() { *m = CreateIndexRequest{} } +func (m *CreateIndexRequest) String() string { return proto.CompactTextString(m) } +func (*CreateIndexRequest) ProtoMessage() {} +func (*CreateIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{0} +} +func (m *CreateIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateIndexRequest.Unmarshal(m, b) +} +func (m *CreateIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateIndexRequest.Marshal(b, m, deterministic) +} +func (dst *CreateIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateIndexRequest.Merge(dst, src) +} +func (m *CreateIndexRequest) XXX_Size() int { + return xxx_messageInfo_CreateIndexRequest.Size(m) +} +func (m *CreateIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateIndexRequest proto.InternalMessageInfo + +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.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. +type ListIndexesRequest struct { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The filter to apply to list results. + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // The number of results to return. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, returned from a previous call to + // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + // page of results. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListIndexesRequest) Reset() { *m = ListIndexesRequest{} } +func (m *ListIndexesRequest) String() string { return proto.CompactTextString(m) } +func (*ListIndexesRequest) ProtoMessage() {} +func (*ListIndexesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{1} +} +func (m *ListIndexesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListIndexesRequest.Unmarshal(m, b) +} +func (m *ListIndexesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListIndexesRequest.Marshal(b, m, deterministic) +} +func (dst *ListIndexesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListIndexesRequest.Merge(dst, src) +} +func (m *ListIndexesRequest) XXX_Size() int { + return xxx_messageInfo_ListIndexesRequest.Size(m) +} +func (m *ListIndexesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListIndexesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListIndexesRequest proto.InternalMessageInfo + +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 response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. +type ListIndexesResponse struct { + // The requested indexes. + Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"` + // A page token that may be used to request another page of results. If blank, + // this is the last page. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListIndexesResponse) Reset() { *m = ListIndexesResponse{} } +func (m *ListIndexesResponse) String() string { return proto.CompactTextString(m) } +func (*ListIndexesResponse) ProtoMessage() {} +func (*ListIndexesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{2} +} +func (m *ListIndexesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListIndexesResponse.Unmarshal(m, b) +} +func (m *ListIndexesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListIndexesResponse.Marshal(b, m, deterministic) +} +func (dst *ListIndexesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListIndexesResponse.Merge(dst, src) +} +func (m *ListIndexesResponse) XXX_Size() int { + return xxx_messageInfo_ListIndexesResponse.Size(m) +} +func (m *ListIndexesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListIndexesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListIndexesResponse proto.InternalMessageInfo + +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 "" +} + +// The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex]. +type GetIndexRequest struct { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetIndexRequest) Reset() { *m = GetIndexRequest{} } +func (m *GetIndexRequest) String() string { return proto.CompactTextString(m) } +func (*GetIndexRequest) ProtoMessage() {} +func (*GetIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{3} +} +func (m *GetIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetIndexRequest.Unmarshal(m, b) +} +func (m *GetIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetIndexRequest.Marshal(b, m, deterministic) +} +func (dst *GetIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetIndexRequest.Merge(dst, src) +} +func (m *GetIndexRequest) XXX_Size() int { + return xxx_messageInfo_GetIndexRequest.Size(m) +} +func (m *GetIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetIndexRequest proto.InternalMessageInfo + +func (m *GetIndexRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex]. +type DeleteIndexRequest struct { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteIndexRequest) Reset() { *m = DeleteIndexRequest{} } +func (m *DeleteIndexRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteIndexRequest) ProtoMessage() {} +func (*DeleteIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{4} +} +func (m *DeleteIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteIndexRequest.Unmarshal(m, b) +} +func (m *DeleteIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteIndexRequest.Marshal(b, m, deterministic) +} +func (dst *DeleteIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteIndexRequest.Merge(dst, src) +} +func (m *DeleteIndexRequest) XXX_Size() int { + return xxx_messageInfo_DeleteIndexRequest.Size(m) +} +func (m *DeleteIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteIndexRequest proto.InternalMessageInfo + +func (m *DeleteIndexRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. +type UpdateFieldRequest struct { + // The field to be updated. + Field *Field `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + // A mask, relative to the field. If specified, only configuration specified + // by this field_mask will be updated in the field. + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateFieldRequest) Reset() { *m = UpdateFieldRequest{} } +func (m *UpdateFieldRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateFieldRequest) ProtoMessage() {} +func (*UpdateFieldRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{5} +} +func (m *UpdateFieldRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateFieldRequest.Unmarshal(m, b) +} +func (m *UpdateFieldRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateFieldRequest.Marshal(b, m, deterministic) +} +func (dst *UpdateFieldRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateFieldRequest.Merge(dst, src) +} +func (m *UpdateFieldRequest) XXX_Size() int { + return xxx_messageInfo_UpdateFieldRequest.Size(m) +} +func (m *UpdateFieldRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateFieldRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateFieldRequest proto.InternalMessageInfo + +func (m *UpdateFieldRequest) GetField() *Field { + if m != nil { + return m.Field + } + return nil +} + +func (m *UpdateFieldRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +// The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField]. +type GetFieldRequest struct { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetFieldRequest) Reset() { *m = GetFieldRequest{} } +func (m *GetFieldRequest) String() string { return proto.CompactTextString(m) } +func (*GetFieldRequest) ProtoMessage() {} +func (*GetFieldRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{6} +} +func (m *GetFieldRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFieldRequest.Unmarshal(m, b) +} +func (m *GetFieldRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFieldRequest.Marshal(b, m, deterministic) +} +func (dst *GetFieldRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFieldRequest.Merge(dst, src) +} +func (m *GetFieldRequest) XXX_Size() int { + return xxx_messageInfo_GetFieldRequest.Size(m) +} +func (m *GetFieldRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetFieldRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFieldRequest proto.InternalMessageInfo + +func (m *GetFieldRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. +type ListFieldsRequest struct { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The filter to apply to list results. Currently, + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + // that have been explicitly overridden. To issue this query, call + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + // `indexConfig.usesAncestorConfig:false`. + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // The number of results to return. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, returned from a previous call to + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + // page of results. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListFieldsRequest) Reset() { *m = ListFieldsRequest{} } +func (m *ListFieldsRequest) String() string { return proto.CompactTextString(m) } +func (*ListFieldsRequest) ProtoMessage() {} +func (*ListFieldsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{7} +} +func (m *ListFieldsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListFieldsRequest.Unmarshal(m, b) +} +func (m *ListFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListFieldsRequest.Marshal(b, m, deterministic) +} +func (dst *ListFieldsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFieldsRequest.Merge(dst, src) +} +func (m *ListFieldsRequest) XXX_Size() int { + return xxx_messageInfo_ListFieldsRequest.Size(m) +} +func (m *ListFieldsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListFieldsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListFieldsRequest proto.InternalMessageInfo + +func (m *ListFieldsRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *ListFieldsRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +func (m *ListFieldsRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListFieldsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +// The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. +type ListFieldsResponse struct { + // The requested fields. + Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` + // A page token that may be used to request another page of results. If blank, + // this is the last page. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListFieldsResponse) Reset() { *m = ListFieldsResponse{} } +func (m *ListFieldsResponse) String() string { return proto.CompactTextString(m) } +func (*ListFieldsResponse) ProtoMessage() {} +func (*ListFieldsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{8} +} +func (m *ListFieldsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListFieldsResponse.Unmarshal(m, b) +} +func (m *ListFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListFieldsResponse.Marshal(b, m, deterministic) +} +func (dst *ListFieldsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFieldsResponse.Merge(dst, src) +} +func (m *ListFieldsResponse) XXX_Size() int { + return xxx_messageInfo_ListFieldsResponse.Size(m) +} +func (m *ListFieldsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListFieldsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListFieldsResponse proto.InternalMessageInfo + +func (m *ListFieldsResponse) GetFields() []*Field { + if m != nil { + return m.Fields + } + return nil +} + +func (m *ListFieldsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +// The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. +type ExportDocumentsRequest struct { + // Database to export. Should be of the form: + // `projects/{project_id}/databases/{database_id}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Which collection ids to export. Unspecified means all collections. + CollectionIds []string `protobuf:"bytes,2,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // The output URI. Currently only supports Google Cloud Storage URIs of the + // form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + // of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + // Google Cloud Storage namespace path. When + // choosing a name, be sure to consider Google Cloud Storage naming + // guidelines: https://cloud.google.com/storage/docs/naming. + // If the URI is a bucket (without a namespace path), a prefix will be + // generated based on the start time. + OutputUriPrefix string `protobuf:"bytes,3,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExportDocumentsRequest) Reset() { *m = ExportDocumentsRequest{} } +func (m *ExportDocumentsRequest) String() string { return proto.CompactTextString(m) } +func (*ExportDocumentsRequest) ProtoMessage() {} +func (*ExportDocumentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{9} +} +func (m *ExportDocumentsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportDocumentsRequest.Unmarshal(m, b) +} +func (m *ExportDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportDocumentsRequest.Marshal(b, m, deterministic) +} +func (dst *ExportDocumentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportDocumentsRequest.Merge(dst, src) +} +func (m *ExportDocumentsRequest) XXX_Size() int { + return xxx_messageInfo_ExportDocumentsRequest.Size(m) +} +func (m *ExportDocumentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExportDocumentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportDocumentsRequest proto.InternalMessageInfo + +func (m *ExportDocumentsRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExportDocumentsRequest) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ExportDocumentsRequest) GetOutputUriPrefix() string { + if m != nil { + return m.OutputUriPrefix + } + return "" +} + +// The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. +type ImportDocumentsRequest struct { + // Database to import into. Should be of the form: + // `projects/{project_id}/databases/{database_id}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Which collection ids to import. Unspecified means all collections included + // in the import. + CollectionIds []string `protobuf:"bytes,2,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // Location of the exported files. + // This must match the output_uri_prefix of an ExportDocumentsResponse from + // an export that has completed successfully. + // See: + // [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + InputUriPrefix string `protobuf:"bytes,3,opt,name=input_uri_prefix,json=inputUriPrefix,proto3" json:"input_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportDocumentsRequest) Reset() { *m = ImportDocumentsRequest{} } +func (m *ImportDocumentsRequest) String() string { return proto.CompactTextString(m) } +func (*ImportDocumentsRequest) ProtoMessage() {} +func (*ImportDocumentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_6ab33a8108b74d94, []int{10} +} +func (m *ImportDocumentsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImportDocumentsRequest.Unmarshal(m, b) +} +func (m *ImportDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImportDocumentsRequest.Marshal(b, m, deterministic) +} +func (dst *ImportDocumentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportDocumentsRequest.Merge(dst, src) +} +func (m *ImportDocumentsRequest) XXX_Size() int { + return xxx_messageInfo_ImportDocumentsRequest.Size(m) +} +func (m *ImportDocumentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ImportDocumentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ImportDocumentsRequest proto.InternalMessageInfo + +func (m *ImportDocumentsRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ImportDocumentsRequest) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ImportDocumentsRequest) GetInputUriPrefix() string { + if m != nil { + return m.InputUriPrefix + } + return "" +} + +func init() { + proto.RegisterType((*CreateIndexRequest)(nil), "google.firestore.admin.v1.CreateIndexRequest") + proto.RegisterType((*ListIndexesRequest)(nil), "google.firestore.admin.v1.ListIndexesRequest") + proto.RegisterType((*ListIndexesResponse)(nil), "google.firestore.admin.v1.ListIndexesResponse") + proto.RegisterType((*GetIndexRequest)(nil), "google.firestore.admin.v1.GetIndexRequest") + proto.RegisterType((*DeleteIndexRequest)(nil), "google.firestore.admin.v1.DeleteIndexRequest") + proto.RegisterType((*UpdateFieldRequest)(nil), "google.firestore.admin.v1.UpdateFieldRequest") + proto.RegisterType((*GetFieldRequest)(nil), "google.firestore.admin.v1.GetFieldRequest") + proto.RegisterType((*ListFieldsRequest)(nil), "google.firestore.admin.v1.ListFieldsRequest") + proto.RegisterType((*ListFieldsResponse)(nil), "google.firestore.admin.v1.ListFieldsResponse") + proto.RegisterType((*ExportDocumentsRequest)(nil), "google.firestore.admin.v1.ExportDocumentsRequest") + proto.RegisterType((*ImportDocumentsRequest)(nil), "google.firestore.admin.v1.ImportDocumentsRequest") +} + +// 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 + +// FirestoreAdminClient is the client API for FirestoreAdmin service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type FirestoreAdminClient interface { + // Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + // which may be used to track the status of the creation. The metadata for + // the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) + // Lists composite indexes. + ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error) + // Gets a composite index. + GetIndex(ctx context.Context, in *GetIndexRequest, opts ...grpc.CallOption) (*Index, error) + // Deletes a composite index. + DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Gets the metadata and configuration for a Field. + GetField(ctx context.Context, in *GetFieldRequest, opts ...grpc.CallOption) (*Field, error) + // Updates a field configuration. Currently, field updates apply only to + // single field index configuration. However, calls to + // [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid + // changing any configuration that the caller isn't aware of. The field mask + // should be specified as: `{ paths: "index_config" }`. + // + // This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to + // track the status of the field update. The metadata for + // the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + // + // To configure the default field settings for the database, use + // the special `Field` with resource name: + // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + UpdateField(ctx context.Context, in *UpdateFieldRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) + // Lists the field configuration and metadata for this database. + // + // Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + // that have been explicitly overridden. To issue this query, call + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + // `indexConfig.usesAncestorConfig:false`. + ListFields(ctx context.Context, in *ListFieldsRequest, opts ...grpc.CallOption) (*ListFieldsResponse, error) + // Exports a copy of all or a subset of documents from Google Cloud Firestore + // to another storage system, such as Google Cloud Storage. Recent updates to + // documents may not be reflected in the export. The export occurs in the + // background and its progress can be monitored and managed via the + // Operation resource that is created. The output of an export may only be + // used once the associated operation is done. If an export operation is + // cancelled before completion it may leave partial data behind in Google + // Cloud Storage. + ExportDocuments(ctx context.Context, in *ExportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) + // Imports documents into Google Cloud Firestore. Existing documents with the + // same name are overwritten. The import occurs in the background and its + // progress can be monitored and managed via the Operation resource that is + // created. If an ImportDocuments operation is cancelled, it is possible + // that a subset of the data has already been imported to Cloud Firestore. + ImportDocuments(ctx context.Context, in *ImportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, 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) (*longrunning.Operation, error) { + out := new(longrunning.Operation) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/CreateIndex", in, out, 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 := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/ListIndexes", in, out, 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 := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/GetIndex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/DeleteIndex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) GetField(ctx context.Context, in *GetFieldRequest, opts ...grpc.CallOption) (*Field, error) { + out := new(Field) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/GetField", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) UpdateField(ctx context.Context, in *UpdateFieldRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { + out := new(longrunning.Operation) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/UpdateField", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) ListFields(ctx context.Context, in *ListFieldsRequest, opts ...grpc.CallOption) (*ListFieldsResponse, error) { + out := new(ListFieldsResponse) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/ListFields", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) ExportDocuments(ctx context.Context, in *ExportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { + out := new(longrunning.Operation) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/ExportDocuments", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) ImportDocuments(ctx context.Context, in *ImportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { + out := new(longrunning.Operation) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1.FirestoreAdmin/ImportDocuments", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FirestoreAdminServer is the server API for FirestoreAdmin service. +type FirestoreAdminServer interface { + // Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + // which may be used to track the status of the creation. The metadata for + // the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + CreateIndex(context.Context, *CreateIndexRequest) (*longrunning.Operation, error) + // Lists composite indexes. + ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error) + // Gets a composite index. + GetIndex(context.Context, *GetIndexRequest) (*Index, error) + // Deletes a composite index. + DeleteIndex(context.Context, *DeleteIndexRequest) (*empty.Empty, error) + // Gets the metadata and configuration for a Field. + GetField(context.Context, *GetFieldRequest) (*Field, error) + // Updates a field configuration. Currently, field updates apply only to + // single field index configuration. However, calls to + // [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid + // changing any configuration that the caller isn't aware of. The field mask + // should be specified as: `{ paths: "index_config" }`. + // + // This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to + // track the status of the field update. The metadata for + // the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + // + // To configure the default field settings for the database, use + // the special `Field` with resource name: + // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + UpdateField(context.Context, *UpdateFieldRequest) (*longrunning.Operation, error) + // Lists the field configuration and metadata for this database. + // + // Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + // that have been explicitly overridden. To issue this query, call + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + // `indexConfig.usesAncestorConfig:false`. + ListFields(context.Context, *ListFieldsRequest) (*ListFieldsResponse, error) + // Exports a copy of all or a subset of documents from Google Cloud Firestore + // to another storage system, such as Google Cloud Storage. Recent updates to + // documents may not be reflected in the export. The export occurs in the + // background and its progress can be monitored and managed via the + // Operation resource that is created. The output of an export may only be + // used once the associated operation is done. If an export operation is + // cancelled before completion it may leave partial data behind in Google + // Cloud Storage. + ExportDocuments(context.Context, *ExportDocumentsRequest) (*longrunning.Operation, error) + // Imports documents into Google Cloud Firestore. Existing documents with the + // same name are overwritten. The import occurs in the background and its + // progress can be monitored and managed via the Operation resource that is + // created. If an ImportDocuments operation is cancelled, it is possible + // that a subset of the data has already been imported to Cloud Firestore. + ImportDocuments(context.Context, *ImportDocumentsRequest) (*longrunning.Operation, 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.v1.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.v1.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.v1.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.v1.FirestoreAdmin/DeleteIndex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).DeleteIndex(ctx, req.(*DeleteIndexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FirestoreAdmin_GetField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetFieldRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreAdminServer).GetField(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.admin.v1.FirestoreAdmin/GetField", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).GetField(ctx, req.(*GetFieldRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FirestoreAdmin_UpdateField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateFieldRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreAdminServer).UpdateField(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.admin.v1.FirestoreAdmin/UpdateField", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).UpdateField(ctx, req.(*UpdateFieldRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FirestoreAdmin_ListFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListFieldsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreAdminServer).ListFields(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.admin.v1.FirestoreAdmin/ListFields", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).ListFields(ctx, req.(*ListFieldsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FirestoreAdmin_ExportDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExportDocumentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreAdminServer).ExportDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.admin.v1.FirestoreAdmin/ExportDocuments", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).ExportDocuments(ctx, req.(*ExportDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FirestoreAdmin_ImportDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ImportDocumentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreAdminServer).ImportDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.admin.v1.FirestoreAdmin/ImportDocuments", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).ImportDocuments(ctx, req.(*ImportDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _FirestoreAdmin_serviceDesc = grpc.ServiceDesc{ + ServiceName: "google.firestore.admin.v1.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, + }, + { + MethodName: "GetField", + Handler: _FirestoreAdmin_GetField_Handler, + }, + { + MethodName: "UpdateField", + Handler: _FirestoreAdmin_UpdateField_Handler, + }, + { + MethodName: "ListFields", + Handler: _FirestoreAdmin_ListFields_Handler, + }, + { + MethodName: "ExportDocuments", + Handler: _FirestoreAdmin_ExportDocuments_Handler, + }, + { + MethodName: "ImportDocuments", + Handler: _FirestoreAdmin_ImportDocuments_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "google/firestore/admin/v1/firestore_admin.proto", +} + +func init() { + proto.RegisterFile("google/firestore/admin/v1/firestore_admin.proto", fileDescriptor_firestore_admin_6ab33a8108b74d94) +} + +var fileDescriptor_firestore_admin_6ab33a8108b74d94 = []byte{ + // 944 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x4b, 0x6f, 0x1c, 0x45, + 0x10, 0x56, 0xaf, 0x1f, 0xc4, 0xb5, 0x60, 0x93, 0x8e, 0xb4, 0x5a, 0x26, 0x58, 0xac, 0x06, 0x19, + 0xad, 0x56, 0x64, 0x46, 0x6b, 0x24, 0x0b, 0x6d, 0x48, 0x80, 0x38, 0xf6, 0xca, 0x52, 0x22, 0xac, + 0x0d, 0xc9, 0x01, 0x59, 0x5a, 0x8d, 0x77, 0xda, 0xa3, 0xc6, 0xb3, 0xdd, 0xc3, 0x74, 0x8f, 0xe5, + 0x04, 0x59, 0x41, 0x48, 0x1c, 0x38, 0x73, 0x45, 0xe2, 0x71, 0xcc,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, 0x99, 0x2f, 0xf6, 0x65, 0xc9, 0xfe, 0x48, 0x93, 0xdd, 0x71, 0xdb, 0x65, + 0x2f, 0xe2, 0xa2, 0x43, 0x26, 0x03, 0x74, 0x50, 0x4b, 0x73, 0x9c, 0xd2, 0xf8, 0x42, 0x8e, 0xf3, + 0xe7, 0xc1, 0x2b, 0xe4, 0x48, 0x87, 0xd3, 0x1c, 0xef, 0xfc, 0x89, 0x60, 0x73, 0xc0, 0x87, 0xcf, + 0x67, 0x75, 0xe7, 0xda, 0xe4, 0x98, 0x38, 0x54, 0x6d, 0x7d, 0x88, 0xbe, 0xb8, 0x6d, 0x3d, 0x22, + 0x1e, 0x07, 0x2c, 0xf2, 0x78, 0x1a, 0xf9, 0x11, 0x61, 0xba, 0xe9, 0xed, 0x8f, 0x7d, 0x90, 0x50, + 0x31, 0xe7, 0x5f, 0xfa, 0xa6, 0x5e, 0xfc, 0x5a, 0x59, 0xee, 0xee, 0xee, 0x3f, 0x78, 0x56, 0x79, + 0xa7, 0x6b, 0xce, 0xd9, 0x8d, 0x79, 0x16, 0x7a, 0xa3, 0x58, 0x9e, 0x0e, 0xe6, 0x3d, 0x6a, 0xff, + 0x95, 0x23, 0x8e, 0x34, 0xe2, 0x68, 0x84, 0x38, 0xd2, 0x88, 0xa3, 0x47, 0xed, 0xe3, 0x55, 0x1d, + 0xf5, 0x83, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xde, 0x49, 0x90, 0x6c, 0x51, 0x0c, 0x00, 0x00, +} diff --git a/googleapis/firestore/admin/v1/index.pb.go b/googleapis/firestore/admin/v1/index.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..b747314641705dec215b264149cb4a6f8b11cb66 --- /dev/null +++ b/googleapis/firestore/admin/v1/index.pb.go @@ -0,0 +1,446 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/admin/v1/index.proto + +package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1" + +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 + +// 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 + +// Query Scope defines the scope at which a query is run. This is specified on +// a StructuredQuery's `from` field. +type Index_QueryScope int32 + +const ( + // The query scope is unspecified. Not a valid option. + Index_QUERY_SCOPE_UNSPECIFIED Index_QueryScope = 0 + // Indexes with a collection query scope specified allow queries + // against a collection that is the child of a specific document, specified + // at query time, and that has the collection id specified by the index. + Index_COLLECTION Index_QueryScope = 1 +) + +var Index_QueryScope_name = map[int32]string{ + 0: "QUERY_SCOPE_UNSPECIFIED", + 1: "COLLECTION", +} +var Index_QueryScope_value = map[string]int32{ + "QUERY_SCOPE_UNSPECIFIED": 0, + "COLLECTION": 1, +} + +func (x Index_QueryScope) String() string { + return proto.EnumName(Index_QueryScope_name, int32(x)) +} +func (Index_QueryScope) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_index_ed7772aaf3db632e, []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 creation encounters a problem, the index +// will transition to the `NEEDS_REPAIR` 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 = 1 + // 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. + // Use the google.longrunning.Operations API to determine why the operation + // that last attempted to create this index failed, then re-create the + // index. + Index_NEEDS_REPAIR Index_State = 3 +) + +var Index_State_name = map[int32]string{ + 0: "STATE_UNSPECIFIED", + 1: "CREATING", + 2: "READY", + 3: "NEEDS_REPAIR", +} +var Index_State_value = map[string]int32{ + "STATE_UNSPECIFIED": 0, + "CREATING": 1, + "READY": 2, + "NEEDS_REPAIR": 3, +} + +func (x Index_State) String() string { + return proto.EnumName(Index_State_name, int32(x)) +} +func (Index_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_index_ed7772aaf3db632e, []int{0, 1} +} + +// The supported orderings. +type Index_IndexField_Order int32 + +const ( + // The ordering is unspecified. Not a valid option. + Index_IndexField_ORDER_UNSPECIFIED Index_IndexField_Order = 0 + // The field is ordered by ascending field value. + Index_IndexField_ASCENDING Index_IndexField_Order = 1 + // The field is ordered by descending field value. + Index_IndexField_DESCENDING Index_IndexField_Order = 2 +) + +var Index_IndexField_Order_name = map[int32]string{ + 0: "ORDER_UNSPECIFIED", + 1: "ASCENDING", + 2: "DESCENDING", +} +var Index_IndexField_Order_value = map[string]int32{ + "ORDER_UNSPECIFIED": 0, + "ASCENDING": 1, + "DESCENDING": 2, +} + +func (x Index_IndexField_Order) String() string { + return proto.EnumName(Index_IndexField_Order_name, int32(x)) +} +func (Index_IndexField_Order) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_index_ed7772aaf3db632e, []int{0, 0, 0} +} + +// The supported array value configurations. +type Index_IndexField_ArrayConfig int32 + +const ( + // The index does not support additional array queries. + Index_IndexField_ARRAY_CONFIG_UNSPECIFIED Index_IndexField_ArrayConfig = 0 + // The index supports array containment queries. + Index_IndexField_CONTAINS Index_IndexField_ArrayConfig = 1 +) + +var Index_IndexField_ArrayConfig_name = map[int32]string{ + 0: "ARRAY_CONFIG_UNSPECIFIED", + 1: "CONTAINS", +} +var Index_IndexField_ArrayConfig_value = map[string]int32{ + "ARRAY_CONFIG_UNSPECIFIED": 0, + "CONTAINS": 1, +} + +func (x Index_IndexField_ArrayConfig) String() string { + return proto.EnumName(Index_IndexField_ArrayConfig_name, int32(x)) +} +func (Index_IndexField_ArrayConfig) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_index_ed7772aaf3db632e, []int{0, 0, 1} +} + +// Cloud Firestore indexes enable simple and complex queries against +// documents in a database. +type Index struct { + // Output only. + // A server defined name for this index. + // The form of this name for composite indexes will be: + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + // For single field indexes, this field will be empty. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Indexes with a collection query scope specified allow queries + // against a collection that is the child of a specific document, specified at + // query time, and that has the same collection id. + // + // Indexes with a collection group query scope specified allow queries against + // all collections descended from a specific document, specified at query + // time, and that have the same collection id as this index. + QueryScope Index_QueryScope `protobuf:"varint,2,opt,name=query_scope,json=queryScope,proto3,enum=google.firestore.admin.v1.Index_QueryScope" json:"query_scope,omitempty"` + // The fields supported by this index. + // + // For composite indexes, this is always 2 or more fields. + // The last field entry is always for the field path `__name__`. If, on + // creation, `__name__` was not specified as the last field, it will be added + // automatically with the same direction as that of the last field defined. If + // the final field in a composite index is not directional, the `__name__` + // will be ordered ASCENDING (unless explicitly specified). + // + // For single field indexes, this will always be exactly one entry with a + // field path equal to the field path of the associated field. + Fields []*Index_IndexField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` + // Output only. + // The serving state of the index. + State Index_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.firestore.admin.v1.Index_State" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Index) Reset() { *m = Index{} } +func (m *Index) String() string { return proto.CompactTextString(m) } +func (*Index) ProtoMessage() {} +func (*Index) Descriptor() ([]byte, []int) { + return fileDescriptor_index_ed7772aaf3db632e, []int{0} +} +func (m *Index) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Index.Unmarshal(m, b) +} +func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Index.Marshal(b, m, deterministic) +} +func (dst *Index) XXX_Merge(src proto.Message) { + xxx_messageInfo_Index.Merge(dst, src) +} +func (m *Index) XXX_Size() int { + return xxx_messageInfo_Index.Size(m) +} +func (m *Index) XXX_DiscardUnknown() { + xxx_messageInfo_Index.DiscardUnknown(m) +} + +var xxx_messageInfo_Index proto.InternalMessageInfo + +func (m *Index) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Index) GetQueryScope() Index_QueryScope { + if m != nil { + return m.QueryScope + } + return Index_QUERY_SCOPE_UNSPECIFIED +} + +func (m *Index) GetFields() []*Index_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 +} + +// A field in an index. +// The field_path describes which field is indexed, the value_mode describes +// how the field value is indexed. +type Index_IndexField struct { + // Can be __name__. + // For single field indexes, this must match the name of the field or may + // be omitted. + FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` + // How the field value is indexed. + // + // Types that are valid to be assigned to ValueMode: + // *Index_IndexField_Order_ + // *Index_IndexField_ArrayConfig_ + ValueMode isIndex_IndexField_ValueMode `protobuf_oneof:"value_mode"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Index_IndexField) Reset() { *m = Index_IndexField{} } +func (m *Index_IndexField) String() string { return proto.CompactTextString(m) } +func (*Index_IndexField) ProtoMessage() {} +func (*Index_IndexField) Descriptor() ([]byte, []int) { + return fileDescriptor_index_ed7772aaf3db632e, []int{0, 0} +} +func (m *Index_IndexField) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Index_IndexField.Unmarshal(m, b) +} +func (m *Index_IndexField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Index_IndexField.Marshal(b, m, deterministic) +} +func (dst *Index_IndexField) XXX_Merge(src proto.Message) { + xxx_messageInfo_Index_IndexField.Merge(dst, src) +} +func (m *Index_IndexField) XXX_Size() int { + return xxx_messageInfo_Index_IndexField.Size(m) +} +func (m *Index_IndexField) XXX_DiscardUnknown() { + xxx_messageInfo_Index_IndexField.DiscardUnknown(m) +} + +var xxx_messageInfo_Index_IndexField proto.InternalMessageInfo + +func (m *Index_IndexField) GetFieldPath() string { + if m != nil { + return m.FieldPath + } + return "" +} + +type isIndex_IndexField_ValueMode interface { + isIndex_IndexField_ValueMode() +} + +type Index_IndexField_Order_ struct { + Order Index_IndexField_Order `protobuf:"varint,2,opt,name=order,proto3,enum=google.firestore.admin.v1.Index_IndexField_Order,oneof"` +} + +type Index_IndexField_ArrayConfig_ struct { + ArrayConfig Index_IndexField_ArrayConfig `protobuf:"varint,3,opt,name=array_config,json=arrayConfig,proto3,enum=google.firestore.admin.v1.Index_IndexField_ArrayConfig,oneof"` +} + +func (*Index_IndexField_Order_) isIndex_IndexField_ValueMode() {} + +func (*Index_IndexField_ArrayConfig_) isIndex_IndexField_ValueMode() {} + +func (m *Index_IndexField) GetValueMode() isIndex_IndexField_ValueMode { + if m != nil { + return m.ValueMode + } + return nil +} + +func (m *Index_IndexField) GetOrder() Index_IndexField_Order { + if x, ok := m.GetValueMode().(*Index_IndexField_Order_); ok { + return x.Order + } + return Index_IndexField_ORDER_UNSPECIFIED +} + +func (m *Index_IndexField) GetArrayConfig() Index_IndexField_ArrayConfig { + if x, ok := m.GetValueMode().(*Index_IndexField_ArrayConfig_); ok { + return x.ArrayConfig + } + return Index_IndexField_ARRAY_CONFIG_UNSPECIFIED +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Index_IndexField) 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{}) { + return _Index_IndexField_OneofMarshaler, _Index_IndexField_OneofUnmarshaler, _Index_IndexField_OneofSizer, []interface{}{ + (*Index_IndexField_Order_)(nil), + (*Index_IndexField_ArrayConfig_)(nil), + } +} + +func _Index_IndexField_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Index_IndexField) + // value_mode + switch x := m.ValueMode.(type) { + case *Index_IndexField_Order_: + b.EncodeVarint(2<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.Order)) + case *Index_IndexField_ArrayConfig_: + b.EncodeVarint(3<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.ArrayConfig)) + case nil: + default: + return fmt.Errorf("Index_IndexField.ValueMode has unexpected type %T", x) + } + return nil +} + +func _Index_IndexField_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Index_IndexField) + switch tag { + case 2: // value_mode.order + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ValueMode = &Index_IndexField_Order_{Index_IndexField_Order(x)} + return true, err + case 3: // value_mode.array_config + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ValueMode = &Index_IndexField_ArrayConfig_{Index_IndexField_ArrayConfig(x)} + return true, err + default: + return false, nil + } +} + +func _Index_IndexField_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Index_IndexField) + // value_mode + switch x := m.ValueMode.(type) { + case *Index_IndexField_Order_: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Order)) + case *Index_IndexField_ArrayConfig_: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.ArrayConfig)) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +func init() { + proto.RegisterType((*Index)(nil), "google.firestore.admin.v1.Index") + proto.RegisterType((*Index_IndexField)(nil), "google.firestore.admin.v1.Index.IndexField") + proto.RegisterEnum("google.firestore.admin.v1.Index_QueryScope", Index_QueryScope_name, Index_QueryScope_value) + proto.RegisterEnum("google.firestore.admin.v1.Index_State", Index_State_name, Index_State_value) + proto.RegisterEnum("google.firestore.admin.v1.Index_IndexField_Order", Index_IndexField_Order_name, Index_IndexField_Order_value) + proto.RegisterEnum("google.firestore.admin.v1.Index_IndexField_ArrayConfig", Index_IndexField_ArrayConfig_name, Index_IndexField_ArrayConfig_value) +} + +func init() { + proto.RegisterFile("google/firestore/admin/v1/index.proto", fileDescriptor_index_ed7772aaf3db632e) +} + +var fileDescriptor_index_ed7772aaf3db632e = []byte{ + // 554 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdf, 0x6a, 0xdb, 0x30, + 0x14, 0xc6, 0x6b, 0xa7, 0x2e, 0xcb, 0x49, 0x56, 0x3c, 0xc1, 0x98, 0xd7, 0xb5, 0xac, 0x04, 0x36, + 0x02, 0x03, 0x9b, 0x6c, 0x17, 0xa3, 0xec, 0x0f, 0x38, 0xb6, 0x92, 0x1a, 0x82, 0xed, 0xca, 0x69, + 0x21, 0x23, 0x60, 0xb4, 0x58, 0x71, 0x0d, 0x89, 0x95, 0xda, 0x4e, 0x58, 0x5f, 0x67, 0x97, 0x7b, + 0x82, 0x3d, 0xc3, 0xee, 0x76, 0xbf, 0x87, 0x19, 0x96, 0xb3, 0x64, 0x94, 0x96, 0xad, 0x37, 0xe6, + 0xc8, 0xfe, 0xbe, 0xdf, 0xa7, 0x63, 0xe9, 0xc0, 0x8b, 0x98, 0xf3, 0x78, 0xc6, 0x8c, 0x69, 0x92, + 0xb1, 0xbc, 0xe0, 0x19, 0x33, 0x68, 0x34, 0x4f, 0x52, 0x63, 0xd5, 0x31, 0x92, 0x34, 0x62, 0x5f, + 0xf4, 0x45, 0xc6, 0x0b, 0x8e, 0x9e, 0x56, 0x32, 0x7d, 0x23, 0xd3, 0x85, 0x4c, 0x5f, 0x75, 0x0e, + 0x0e, 0xd7, 0x04, 0xba, 0x48, 0x0c, 0x9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0xf1, 0x55, 0xde, 0xed, 0x5b, 0xbd, 0xe0, 0x9b, 0xfc, 0xbc, 0x5f, 0x71, 0xac, 0x19, + 0x5f, 0x46, 0x7a, 0x6f, 0x13, 0x6b, 0x8a, 0xd8, 0x8b, 0xce, 0x8f, 0x3f, 0x8a, 0xb1, 0x50, 0x8c, + 0x37, 0x8a, 0xb1, 0x50, 0x8c, 0x2f, 0x3a, 0x9f, 0xf7, 0x44, 0xea, 0x9b, 0xdf, 0x01, 0x00, 0x00, + 0xff, 0xff, 0xb0, 0x5a, 0xfb, 0xcf, 0xf7, 0x03, 0x00, 0x00, +} diff --git a/googleapis/firestore/admin/v1/location.pb.go b/googleapis/firestore/admin/v1/location.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..c7345ff539d143ba3e9ef61f2b062399d4bb693e --- /dev/null +++ b/googleapis/firestore/admin/v1/location.pb.go @@ -0,0 +1,79 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/admin/v1/location.proto + +package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "google.golang.org/genproto/googleapis/api/annotations" +import _ "google.golang.org/genproto/googleapis/type/latlng" + +// 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 metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata]. +type LocationMetadata struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocationMetadata) Reset() { *m = LocationMetadata{} } +func (m *LocationMetadata) String() string { return proto.CompactTextString(m) } +func (*LocationMetadata) ProtoMessage() {} +func (*LocationMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_location_d6351944632cbafa, []int{0} +} +func (m *LocationMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LocationMetadata.Unmarshal(m, b) +} +func (m *LocationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LocationMetadata.Marshal(b, m, deterministic) +} +func (dst *LocationMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocationMetadata.Merge(dst, src) +} +func (m *LocationMetadata) XXX_Size() int { + return xxx_messageInfo_LocationMetadata.Size(m) +} +func (m *LocationMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_LocationMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_LocationMetadata proto.InternalMessageInfo + +func init() { + proto.RegisterType((*LocationMetadata)(nil), "google.firestore.admin.v1.LocationMetadata") +} + +func init() { + proto.RegisterFile("google/firestore/admin/v1/location.proto", fileDescriptor_location_d6351944632cbafa) +} + +var fileDescriptor_location_d6351944632cbafa = []byte{ + // 230 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0xcf, 0xcf, 0x4f, + 0xcf, 0x49, 0xd5, 0x4f, 0xcb, 0x2c, 0x4a, 0x2d, 0x2e, 0xc9, 0x2f, 0x4a, 0xd5, 0x4f, 0x4c, 0xc9, + 0xcd, 0xcc, 0xd3, 0x2f, 0x33, 0xd4, 0xcf, 0xc9, 0x4f, 0x4e, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x84, 0xa8, 0xd4, 0x83, 0xab, 0xd4, 0x03, 0xab, 0xd4, 0x2b, + 0x33, 0x94, 0x92, 0x81, 0x1a, 0x92, 0x58, 0x90, 0xa9, 0x9f, 0x98, 0x97, 0x97, 0x5f, 0x02, 0xd6, + 0x57, 0x0c, 0xd1, 0x28, 0x25, 0x01, 0x95, 0x2d, 0xa9, 0x2c, 0x48, 0xd5, 0xcf, 0x49, 0x2c, 0xc9, + 0xc9, 0x4b, 0x87, 0xc8, 0x28, 0x09, 0x71, 0x09, 0xf8, 0x40, 0x2d, 0xf1, 0x4d, 0x2d, 0x49, 0x4c, + 0x49, 0x2c, 0x49, 0x74, 0xda, 0xcd, 0xc8, 0x25, 0x9b, 0x9c, 0x9f, 0xab, 0x87, 0xd3, 0x36, 0x27, + 0x5e, 0x98, 0x9e, 0x00, 0x90, 0x21, 0x01, 0x8c, 0x51, 0x76, 0x50, 0xb5, 0xe9, 0xf9, 0x39, 0x89, + 0x79, 0xe9, 0x7a, 0xf9, 0x45, 0xe9, 0xfa, 0xe9, 0xa9, 0x79, 0x60, 0x2b, 0xf4, 0x21, 0x52, 0x89, + 0x05, 0x99, 0xc5, 0x58, 0xbc, 0x68, 0x0d, 0x66, 0x2c, 0x62, 0x62, 0x71, 0x77, 0x76, 0x0b, 0x5e, + 0xc5, 0x24, 0xef, 0x0e, 0x31, 0xc7, 0x39, 0x27, 0xbf, 0x34, 0x45, 0xcf, 0x0d, 0x6e, 0xb3, 0x23, + 0xd8, 0xe6, 0x30, 0xc3, 0x53, 0x30, 0x15, 0x31, 0x60, 0x15, 0x31, 0x70, 0x15, 0x31, 0x60, 0x15, + 0x31, 0x61, 0x86, 0x49, 0x6c, 0x60, 0x5b, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x00, 0xb6, + 0x56, 0xea, 0x57, 0x01, 0x00, 0x00, +} diff --git a/googleapis/firestore/admin/v1/operation.pb.go b/googleapis/firestore/admin/v1/operation.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..bf53884d5b7b48e50f2a966526ec685ab5f16a48 --- /dev/null +++ b/googleapis/firestore/admin/v1/operation.pb.go @@ -0,0 +1,698 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/admin/v1/operation.proto + +package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +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 + +// 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 + +// Describes the state of the operation. +type OperationState int32 + +const ( + // Unspecified. + OperationState_OPERATION_STATE_UNSPECIFIED OperationState = 0 + // Request is being prepared for processing. + OperationState_INITIALIZING OperationState = 1 + // Request is actively being processed. + OperationState_PROCESSING OperationState = 2 + // Request is in the process of being cancelled after user called + // google.longrunning.Operations.CancelOperation on the operation. + OperationState_CANCELLING OperationState = 3 + // Request has been processed and is in its finalization stage. + OperationState_FINALIZING OperationState = 4 + // Request has completed successfully. + OperationState_SUCCESSFUL OperationState = 5 + // Request has finished being processed, but encountered an error. + OperationState_FAILED OperationState = 6 + // Request has finished being cancelled after user called + // google.longrunning.Operations.CancelOperation. + OperationState_CANCELLED OperationState = 7 +) + +var OperationState_name = map[int32]string{ + 0: "OPERATION_STATE_UNSPECIFIED", + 1: "INITIALIZING", + 2: "PROCESSING", + 3: "CANCELLING", + 4: "FINALIZING", + 5: "SUCCESSFUL", + 6: "FAILED", + 7: "CANCELLED", +} +var OperationState_value = map[string]int32{ + "OPERATION_STATE_UNSPECIFIED": 0, + "INITIALIZING": 1, + "PROCESSING": 2, + "CANCELLING": 3, + "FINALIZING": 4, + "SUCCESSFUL": 5, + "FAILED": 6, + "CANCELLED": 7, +} + +func (x OperationState) String() string { + return proto.EnumName(OperationState_name, int32(x)) +} +func (OperationState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{0} +} + +// Specifies how the index is changing. +type FieldOperationMetadata_IndexConfigDelta_ChangeType int32 + +const ( + // The type of change is not specified or known. + FieldOperationMetadata_IndexConfigDelta_CHANGE_TYPE_UNSPECIFIED FieldOperationMetadata_IndexConfigDelta_ChangeType = 0 + // The single field index is being added. + FieldOperationMetadata_IndexConfigDelta_ADD FieldOperationMetadata_IndexConfigDelta_ChangeType = 1 + // The single field index is being removed. + FieldOperationMetadata_IndexConfigDelta_REMOVE FieldOperationMetadata_IndexConfigDelta_ChangeType = 2 +) + +var FieldOperationMetadata_IndexConfigDelta_ChangeType_name = map[int32]string{ + 0: "CHANGE_TYPE_UNSPECIFIED", + 1: "ADD", + 2: "REMOVE", +} +var FieldOperationMetadata_IndexConfigDelta_ChangeType_value = map[string]int32{ + "CHANGE_TYPE_UNSPECIFIED": 0, + "ADD": 1, + "REMOVE": 2, +} + +func (x FieldOperationMetadata_IndexConfigDelta_ChangeType) String() string { + return proto.EnumName(FieldOperationMetadata_IndexConfigDelta_ChangeType_name, int32(x)) +} +func (FieldOperationMetadata_IndexConfigDelta_ChangeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{1, 0, 0} +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. +type IndexOperationMetadata struct { + // The time this operation started. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time this operation completed. Will be unset if operation still in + // progress. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The index resource that this operation is acting on. For example: + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + Index string `protobuf:"bytes,3,opt,name=index,proto3" json:"index,omitempty"` + // The state of the operation. + State OperationState `protobuf:"varint,4,opt,name=state,proto3,enum=google.firestore.admin.v1.OperationState" json:"state,omitempty"` + // The progress, in documents, of this operation. + ProgressDocuments *Progress `protobuf:"bytes,5,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"` + // The progress, in bytes, of this operation. + ProgressBytes *Progress `protobuf:"bytes,6,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IndexOperationMetadata) Reset() { *m = IndexOperationMetadata{} } +func (m *IndexOperationMetadata) String() string { return proto.CompactTextString(m) } +func (*IndexOperationMetadata) ProtoMessage() {} +func (*IndexOperationMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{0} +} +func (m *IndexOperationMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IndexOperationMetadata.Unmarshal(m, b) +} +func (m *IndexOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IndexOperationMetadata.Marshal(b, m, deterministic) +} +func (dst *IndexOperationMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_IndexOperationMetadata.Merge(dst, src) +} +func (m *IndexOperationMetadata) XXX_Size() int { + return xxx_messageInfo_IndexOperationMetadata.Size(m) +} +func (m *IndexOperationMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_IndexOperationMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_IndexOperationMetadata proto.InternalMessageInfo + +func (m *IndexOperationMetadata) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *IndexOperationMetadata) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *IndexOperationMetadata) GetIndex() string { + if m != nil { + return m.Index + } + return "" +} + +func (m *IndexOperationMetadata) GetState() OperationState { + if m != nil { + return m.State + } + return OperationState_OPERATION_STATE_UNSPECIFIED +} + +func (m *IndexOperationMetadata) GetProgressDocuments() *Progress { + if m != nil { + return m.ProgressDocuments + } + return nil +} + +func (m *IndexOperationMetadata) GetProgressBytes() *Progress { + if m != nil { + return m.ProgressBytes + } + return nil +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. +type FieldOperationMetadata struct { + // The time this operation started. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time this operation completed. Will be unset if operation still in + // progress. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The field resource that this operation is acting on. For example: + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` + // A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + // operation. + IndexConfigDeltas []*FieldOperationMetadata_IndexConfigDelta `protobuf:"bytes,4,rep,name=index_config_deltas,json=indexConfigDeltas,proto3" json:"index_config_deltas,omitempty"` + // The state of the operation. + State OperationState `protobuf:"varint,5,opt,name=state,proto3,enum=google.firestore.admin.v1.OperationState" json:"state,omitempty"` + // The progress, in documents, of this operation. + ProgressDocuments *Progress `protobuf:"bytes,6,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"` + // The progress, in bytes, of this operation. + ProgressBytes *Progress `protobuf:"bytes,7,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FieldOperationMetadata) Reset() { *m = FieldOperationMetadata{} } +func (m *FieldOperationMetadata) String() string { return proto.CompactTextString(m) } +func (*FieldOperationMetadata) ProtoMessage() {} +func (*FieldOperationMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{1} +} +func (m *FieldOperationMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldOperationMetadata.Unmarshal(m, b) +} +func (m *FieldOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldOperationMetadata.Marshal(b, m, deterministic) +} +func (dst *FieldOperationMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldOperationMetadata.Merge(dst, src) +} +func (m *FieldOperationMetadata) XXX_Size() int { + return xxx_messageInfo_FieldOperationMetadata.Size(m) +} +func (m *FieldOperationMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_FieldOperationMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldOperationMetadata proto.InternalMessageInfo + +func (m *FieldOperationMetadata) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *FieldOperationMetadata) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *FieldOperationMetadata) GetField() string { + if m != nil { + return m.Field + } + return "" +} + +func (m *FieldOperationMetadata) GetIndexConfigDeltas() []*FieldOperationMetadata_IndexConfigDelta { + if m != nil { + return m.IndexConfigDeltas + } + return nil +} + +func (m *FieldOperationMetadata) GetState() OperationState { + if m != nil { + return m.State + } + return OperationState_OPERATION_STATE_UNSPECIFIED +} + +func (m *FieldOperationMetadata) GetProgressDocuments() *Progress { + if m != nil { + return m.ProgressDocuments + } + return nil +} + +func (m *FieldOperationMetadata) GetProgressBytes() *Progress { + if m != nil { + return m.ProgressBytes + } + return nil +} + +// Information about an index configuration change. +type FieldOperationMetadata_IndexConfigDelta struct { + // Specifies how the index is changing. + ChangeType FieldOperationMetadata_IndexConfigDelta_ChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=google.firestore.admin.v1.FieldOperationMetadata_IndexConfigDelta_ChangeType" json:"change_type,omitempty"` + // The index being changed. + Index *Index `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FieldOperationMetadata_IndexConfigDelta) Reset() { + *m = FieldOperationMetadata_IndexConfigDelta{} +} +func (m *FieldOperationMetadata_IndexConfigDelta) String() string { return proto.CompactTextString(m) } +func (*FieldOperationMetadata_IndexConfigDelta) ProtoMessage() {} +func (*FieldOperationMetadata_IndexConfigDelta) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{1, 0} +} +func (m *FieldOperationMetadata_IndexConfigDelta) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Unmarshal(m, b) +} +func (m *FieldOperationMetadata_IndexConfigDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Marshal(b, m, deterministic) +} +func (dst *FieldOperationMetadata_IndexConfigDelta) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Merge(dst, src) +} +func (m *FieldOperationMetadata_IndexConfigDelta) XXX_Size() int { + return xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Size(m) +} +func (m *FieldOperationMetadata_IndexConfigDelta) XXX_DiscardUnknown() { + xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta proto.InternalMessageInfo + +func (m *FieldOperationMetadata_IndexConfigDelta) GetChangeType() FieldOperationMetadata_IndexConfigDelta_ChangeType { + if m != nil { + return m.ChangeType + } + return FieldOperationMetadata_IndexConfigDelta_CHANGE_TYPE_UNSPECIFIED +} + +func (m *FieldOperationMetadata_IndexConfigDelta) GetIndex() *Index { + if m != nil { + return m.Index + } + return nil +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. +type ExportDocumentsMetadata struct { + // The time this operation started. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time this operation completed. Will be unset if operation still in + // progress. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The state of the export operation. + OperationState OperationState `protobuf:"varint,3,opt,name=operation_state,json=operationState,proto3,enum=google.firestore.admin.v1.OperationState" json:"operation_state,omitempty"` + // The progress, in documents, of this operation. + ProgressDocuments *Progress `protobuf:"bytes,4,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"` + // The progress, in bytes, of this operation. + ProgressBytes *Progress `protobuf:"bytes,5,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"` + // Which collection ids are being exported. + CollectionIds []string `protobuf:"bytes,6,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // Where the entities are being exported to. + OutputUriPrefix string `protobuf:"bytes,7,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExportDocumentsMetadata) Reset() { *m = ExportDocumentsMetadata{} } +func (m *ExportDocumentsMetadata) String() string { return proto.CompactTextString(m) } +func (*ExportDocumentsMetadata) ProtoMessage() {} +func (*ExportDocumentsMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{2} +} +func (m *ExportDocumentsMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportDocumentsMetadata.Unmarshal(m, b) +} +func (m *ExportDocumentsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportDocumentsMetadata.Marshal(b, m, deterministic) +} +func (dst *ExportDocumentsMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportDocumentsMetadata.Merge(dst, src) +} +func (m *ExportDocumentsMetadata) XXX_Size() int { + return xxx_messageInfo_ExportDocumentsMetadata.Size(m) +} +func (m *ExportDocumentsMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ExportDocumentsMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportDocumentsMetadata proto.InternalMessageInfo + +func (m *ExportDocumentsMetadata) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *ExportDocumentsMetadata) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *ExportDocumentsMetadata) GetOperationState() OperationState { + if m != nil { + return m.OperationState + } + return OperationState_OPERATION_STATE_UNSPECIFIED +} + +func (m *ExportDocumentsMetadata) GetProgressDocuments() *Progress { + if m != nil { + return m.ProgressDocuments + } + return nil +} + +func (m *ExportDocumentsMetadata) GetProgressBytes() *Progress { + if m != nil { + return m.ProgressBytes + } + return nil +} + +func (m *ExportDocumentsMetadata) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ExportDocumentsMetadata) GetOutputUriPrefix() string { + if m != nil { + return m.OutputUriPrefix + } + return "" +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. +type ImportDocumentsMetadata struct { + // The time this operation started. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time this operation completed. Will be unset if operation still in + // progress. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The state of the import operation. + OperationState OperationState `protobuf:"varint,3,opt,name=operation_state,json=operationState,proto3,enum=google.firestore.admin.v1.OperationState" json:"operation_state,omitempty"` + // The progress, in documents, of this operation. + ProgressDocuments *Progress `protobuf:"bytes,4,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"` + // The progress, in bytes, of this operation. + ProgressBytes *Progress `protobuf:"bytes,5,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"` + // Which collection ids are being imported. + CollectionIds []string `protobuf:"bytes,6,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // The location of the documents being imported. + InputUriPrefix string `protobuf:"bytes,7,opt,name=input_uri_prefix,json=inputUriPrefix,proto3" json:"input_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportDocumentsMetadata) Reset() { *m = ImportDocumentsMetadata{} } +func (m *ImportDocumentsMetadata) String() string { return proto.CompactTextString(m) } +func (*ImportDocumentsMetadata) ProtoMessage() {} +func (*ImportDocumentsMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{3} +} +func (m *ImportDocumentsMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImportDocumentsMetadata.Unmarshal(m, b) +} +func (m *ImportDocumentsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImportDocumentsMetadata.Marshal(b, m, deterministic) +} +func (dst *ImportDocumentsMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportDocumentsMetadata.Merge(dst, src) +} +func (m *ImportDocumentsMetadata) XXX_Size() int { + return xxx_messageInfo_ImportDocumentsMetadata.Size(m) +} +func (m *ImportDocumentsMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ImportDocumentsMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ImportDocumentsMetadata proto.InternalMessageInfo + +func (m *ImportDocumentsMetadata) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *ImportDocumentsMetadata) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *ImportDocumentsMetadata) GetOperationState() OperationState { + if m != nil { + return m.OperationState + } + return OperationState_OPERATION_STATE_UNSPECIFIED +} + +func (m *ImportDocumentsMetadata) GetProgressDocuments() *Progress { + if m != nil { + return m.ProgressDocuments + } + return nil +} + +func (m *ImportDocumentsMetadata) GetProgressBytes() *Progress { + if m != nil { + return m.ProgressBytes + } + return nil +} + +func (m *ImportDocumentsMetadata) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ImportDocumentsMetadata) GetInputUriPrefix() string { + if m != nil { + return m.InputUriPrefix + } + return "" +} + +// Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field. +type ExportDocumentsResponse struct { + // Location of the output files. This can be used to begin an import + // into Cloud Firestore (this project or another project) after the operation + // completes successfully. + OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExportDocumentsResponse) Reset() { *m = ExportDocumentsResponse{} } +func (m *ExportDocumentsResponse) String() string { return proto.CompactTextString(m) } +func (*ExportDocumentsResponse) ProtoMessage() {} +func (*ExportDocumentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{4} +} +func (m *ExportDocumentsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportDocumentsResponse.Unmarshal(m, b) +} +func (m *ExportDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportDocumentsResponse.Marshal(b, m, deterministic) +} +func (dst *ExportDocumentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportDocumentsResponse.Merge(dst, src) +} +func (m *ExportDocumentsResponse) XXX_Size() int { + return xxx_messageInfo_ExportDocumentsResponse.Size(m) +} +func (m *ExportDocumentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExportDocumentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportDocumentsResponse proto.InternalMessageInfo + +func (m *ExportDocumentsResponse) GetOutputUriPrefix() string { + if m != nil { + return m.OutputUriPrefix + } + return "" +} + +// Describes the progress of the operation. +// Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress] +// is used. +type Progress struct { + // The amount of work estimated. + EstimatedWork int64 `protobuf:"varint,1,opt,name=estimated_work,json=estimatedWork,proto3" json:"estimated_work,omitempty"` + // The amount of work completed. + CompletedWork int64 `protobuf:"varint,2,opt,name=completed_work,json=completedWork,proto3" json:"completed_work,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Progress) Reset() { *m = Progress{} } +func (m *Progress) String() string { return proto.CompactTextString(m) } +func (*Progress) ProtoMessage() {} +func (*Progress) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_ab210cd74615767a, []int{5} +} +func (m *Progress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Progress.Unmarshal(m, b) +} +func (m *Progress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Progress.Marshal(b, m, deterministic) +} +func (dst *Progress) XXX_Merge(src proto.Message) { + xxx_messageInfo_Progress.Merge(dst, src) +} +func (m *Progress) XXX_Size() int { + return xxx_messageInfo_Progress.Size(m) +} +func (m *Progress) XXX_DiscardUnknown() { + xxx_messageInfo_Progress.DiscardUnknown(m) +} + +var xxx_messageInfo_Progress proto.InternalMessageInfo + +func (m *Progress) GetEstimatedWork() int64 { + if m != nil { + return m.EstimatedWork + } + return 0 +} + +func (m *Progress) GetCompletedWork() int64 { + if m != nil { + return m.CompletedWork + } + return 0 +} + +func init() { + proto.RegisterType((*IndexOperationMetadata)(nil), "google.firestore.admin.v1.IndexOperationMetadata") + proto.RegisterType((*FieldOperationMetadata)(nil), "google.firestore.admin.v1.FieldOperationMetadata") + proto.RegisterType((*FieldOperationMetadata_IndexConfigDelta)(nil), "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta") + proto.RegisterType((*ExportDocumentsMetadata)(nil), "google.firestore.admin.v1.ExportDocumentsMetadata") + proto.RegisterType((*ImportDocumentsMetadata)(nil), "google.firestore.admin.v1.ImportDocumentsMetadata") + proto.RegisterType((*ExportDocumentsResponse)(nil), "google.firestore.admin.v1.ExportDocumentsResponse") + proto.RegisterType((*Progress)(nil), "google.firestore.admin.v1.Progress") + proto.RegisterEnum("google.firestore.admin.v1.OperationState", OperationState_name, OperationState_value) + proto.RegisterEnum("google.firestore.admin.v1.FieldOperationMetadata_IndexConfigDelta_ChangeType", FieldOperationMetadata_IndexConfigDelta_ChangeType_name, FieldOperationMetadata_IndexConfigDelta_ChangeType_value) +} + +func init() { + proto.RegisterFile("google/firestore/admin/v1/operation.proto", fileDescriptor_operation_ab210cd74615767a) +} + +var fileDescriptor_operation_ab210cd74615767a = []byte{ + // 848 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x1c, 0xc5, 0x71, 0x92, 0x6e, 0x7e, 0xa5, 0x59, 0x77, 0x40, 0xdb, 0xd0, 0x05, 0x35, 0x0a, 0x5a, + 0x29, 0xbb, 0x07, 0x47, 0x2d, 0x02, 0x09, 0x21, 0x2d, 0x4a, 0x1d, 0xa7, 0x18, 0xa5, 0x89, 0xe5, + 0xa4, 0x05, 0x56, 0x95, 0x2c, 0x37, 0x9e, 0x98, 0xd1, 0xda, 0x1e, 0xcb, 0x33, 0x59, 0xda, 0x23, + 0x5f, 0x84, 0x03, 0x47, 0x3e, 0x03, 0x9f, 0x80, 0x13, 0xe2, 0xa3, 0x70, 0xe4, 0x84, 0x66, 0xfc, + 0x27, 0xda, 0x92, 0x14, 0x58, 0x2a, 0xb1, 0x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 0xe9, 0xf3, 0xc3, + 0x5f, 0x0a, 0xc4, 0x85, 0x44, 0x5c, 0x94, 0x88, 0x0b, 0x89, 0xb8, 0x38, 0x3f, 0xbc, 0xac, 0xcb, + 0x55, 0x3f, 0xfa, 0x33, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x64, 0x42, 0x3c, 0xd6, 0x0a, 0x00, 0x00, +} diff --git a/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go b/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go index ac7f1bee82a5bbe10367cbb56b726216d5c5636e..86ee9d1077181c9540db672b2d1d8f10456d42fd 100644 --- a/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go +++ b/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go @@ -76,7 +76,7 @@ func (x OperationState) String() string { return proto.EnumName(OperationState_name, int32(x)) } func (OperationState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{0} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{0} } // The type of index operation. @@ -102,7 +102,7 @@ func (x IndexOperationMetadata_OperationType) String() string { return proto.EnumName(IndexOperationMetadata_OperationType_name, int32(x)) } func (IndexOperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{0, 0} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{0, 0} } // Metadata for index operations. This metadata populates @@ -133,7 +133,7 @@ func (m *IndexOperationMetadata) Reset() { *m = IndexOperationMetadata{} func (m *IndexOperationMetadata) String() string { return proto.CompactTextString(m) } func (*IndexOperationMetadata) ProtoMessage() {} func (*IndexOperationMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{0} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{0} } func (m *IndexOperationMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexOperationMetadata.Unmarshal(m, b) @@ -212,7 +212,7 @@ func (m *Progress) Reset() { *m = Progress{} } func (m *Progress) String() string { return proto.CompactTextString(m) } func (*Progress) ProtoMessage() {} func (*Progress) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{1} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{1} } func (m *Progress) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Progress.Unmarshal(m, b) @@ -263,7 +263,7 @@ func (m *CreateIndexRequest) Reset() { *m = CreateIndexRequest{} } func (m *CreateIndexRequest) String() string { return proto.CompactTextString(m) } func (*CreateIndexRequest) ProtoMessage() {} func (*CreateIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{2} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{2} } func (m *CreateIndexRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateIndexRequest.Unmarshal(m, b) @@ -311,7 +311,7 @@ func (m *GetIndexRequest) Reset() { *m = GetIndexRequest{} } func (m *GetIndexRequest) String() string { return proto.CompactTextString(m) } func (*GetIndexRequest) ProtoMessage() {} func (*GetIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{3} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{3} } func (m *GetIndexRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetIndexRequest.Unmarshal(m, b) @@ -357,7 +357,7 @@ func (m *ListIndexesRequest) Reset() { *m = ListIndexesRequest{} } func (m *ListIndexesRequest) String() string { return proto.CompactTextString(m) } func (*ListIndexesRequest) ProtoMessage() {} func (*ListIndexesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{4} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{4} } func (m *ListIndexesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListIndexesRequest.Unmarshal(m, b) @@ -419,7 +419,7 @@ func (m *DeleteIndexRequest) Reset() { *m = DeleteIndexRequest{} } func (m *DeleteIndexRequest) String() string { return proto.CompactTextString(m) } func (*DeleteIndexRequest) ProtoMessage() {} func (*DeleteIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{5} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{5} } func (m *DeleteIndexRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteIndexRequest.Unmarshal(m, b) @@ -461,7 +461,7 @@ func (m *ListIndexesResponse) Reset() { *m = ListIndexesResponse{} } func (m *ListIndexesResponse) String() string { return proto.CompactTextString(m) } func (*ListIndexesResponse) ProtoMessage() {} func (*ListIndexesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{6} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{6} } func (m *ListIndexesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListIndexesResponse.Unmarshal(m, b) @@ -520,7 +520,7 @@ func (m *ExportDocumentsRequest) Reset() { *m = ExportDocumentsRequest{} func (m *ExportDocumentsRequest) String() string { return proto.CompactTextString(m) } func (*ExportDocumentsRequest) ProtoMessage() {} func (*ExportDocumentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{7} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{7} } func (m *ExportDocumentsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ExportDocumentsRequest.Unmarshal(m, b) @@ -584,7 +584,7 @@ func (m *ImportDocumentsRequest) Reset() { *m = ImportDocumentsRequest{} func (m *ImportDocumentsRequest) String() string { return proto.CompactTextString(m) } func (*ImportDocumentsRequest) ProtoMessage() {} func (*ImportDocumentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{8} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{8} } func (m *ImportDocumentsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImportDocumentsRequest.Unmarshal(m, b) @@ -640,7 +640,7 @@ func (m *ExportDocumentsResponse) Reset() { *m = ExportDocumentsResponse func (m *ExportDocumentsResponse) String() string { return proto.CompactTextString(m) } func (*ExportDocumentsResponse) ProtoMessage() {} func (*ExportDocumentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{9} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{9} } func (m *ExportDocumentsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ExportDocumentsResponse.Unmarshal(m, b) @@ -693,7 +693,7 @@ func (m *ExportDocumentsMetadata) Reset() { *m = ExportDocumentsMetadata func (m *ExportDocumentsMetadata) String() string { return proto.CompactTextString(m) } func (*ExportDocumentsMetadata) ProtoMessage() {} func (*ExportDocumentsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{10} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{10} } func (m *ExportDocumentsMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ExportDocumentsMetadata.Unmarshal(m, b) @@ -788,7 +788,7 @@ func (m *ImportDocumentsMetadata) Reset() { *m = ImportDocumentsMetadata func (m *ImportDocumentsMetadata) String() string { return proto.CompactTextString(m) } func (*ImportDocumentsMetadata) ProtoMessage() {} func (*ImportDocumentsMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_09f1d024c210e695, []int{11} + return fileDescriptor_firestore_admin_fc9ddf055db6d044, []int{11} } func (m *ImportDocumentsMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImportDocumentsMetadata.Unmarshal(m, b) @@ -1170,10 +1170,10 @@ var _FirestoreAdmin_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("google/firestore/admin/v1beta1/firestore_admin.proto", fileDescriptor_firestore_admin_09f1d024c210e695) + proto.RegisterFile("google/firestore/admin/v1beta1/firestore_admin.proto", fileDescriptor_firestore_admin_fc9ddf055db6d044) } -var fileDescriptor_firestore_admin_09f1d024c210e695 = []byte{ +var fileDescriptor_firestore_admin_fc9ddf055db6d044 = []byte{ // 1183 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xdd, 0x6e, 0xe3, 0xc4, 0x17, 0xff, 0x3b, 0x69, 0x93, 0xe6, 0xf4, 0x9f, 0x34, 0x9d, 0x85, 0x6c, 0x94, 0xfd, 0x20, 0x32, diff --git a/googleapis/firestore/admin/v1beta1/index.pb.go b/googleapis/firestore/admin/v1beta1/index.pb.go index 396c7365fc1155fa35d4184fe99dd88506029a13..e0fc7a45388aa8a50cdbe31fa0cf8d0e10cc2616 100644 --- a/googleapis/firestore/admin/v1beta1/index.pb.go +++ b/googleapis/firestore/admin/v1beta1/index.pb.go @@ -53,7 +53,7 @@ func (x IndexField_Mode) String() string { return proto.EnumName(IndexField_Mode_name, int32(x)) } func (IndexField_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_index_1d76a8618e50431f, []int{0, 0} + return fileDescriptor_index_fc07c0d41eedbbb3, []int{0, 0} } // The state of an index. During index creation, an index will be in the @@ -99,7 +99,7 @@ func (x Index_State) String() string { return proto.EnumName(Index_State_name, int32(x)) } func (Index_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_index_1d76a8618e50431f, []int{1, 0} + return fileDescriptor_index_fc07c0d41eedbbb3, []int{1, 0} } // A field of an index. @@ -120,7 +120,7 @@ func (m *IndexField) Reset() { *m = IndexField{} } func (m *IndexField) String() string { return proto.CompactTextString(m) } func (*IndexField) ProtoMessage() {} func (*IndexField) Descriptor() ([]byte, []int) { - return fileDescriptor_index_1d76a8618e50431f, []int{0} + return fileDescriptor_index_fc07c0d41eedbbb3, []int{0} } func (m *IndexField) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexField.Unmarshal(m, b) @@ -175,7 +175,7 @@ func (m *Index) Reset() { *m = Index{} } func (m *Index) String() string { return proto.CompactTextString(m) } func (*Index) ProtoMessage() {} func (*Index) Descriptor() ([]byte, []int) { - return fileDescriptor_index_1d76a8618e50431f, []int{1} + return fileDescriptor_index_fc07c0d41eedbbb3, []int{1} } func (m *Index) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Index.Unmarshal(m, b) @@ -231,10 +231,10 @@ func init() { } func init() { - proto.RegisterFile("google/firestore/admin/v1beta1/index.proto", fileDescriptor_index_1d76a8618e50431f) + proto.RegisterFile("google/firestore/admin/v1beta1/index.proto", fileDescriptor_index_fc07c0d41eedbbb3) } -var fileDescriptor_index_1d76a8618e50431f = []byte{ +var fileDescriptor_index_fc07c0d41eedbbb3 = []byte{ // 438 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x5d, 0x8b, 0xd3, 0x40, 0x14, 0x35, 0x69, 0x52, 0xcc, 0x75, 0xb7, 0xc4, 0x41, 0xa1, 0x88, 0x4a, 0x89, 0x3e, 0x94, 0x15, diff --git a/googleapis/firestore/admin/v1beta1/location.pb.go b/googleapis/firestore/admin/v1beta1/location.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..4b5cf2b55e0580c413d9fcb2c81ba1ee9afe4f59 --- /dev/null +++ b/googleapis/firestore/admin/v1beta1/location.pb.go @@ -0,0 +1,78 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/admin/v1beta1/location.proto + +package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1beta1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "google.golang.org/genproto/googleapis/api/annotations" +import _ "google.golang.org/genproto/googleapis/type/latlng" + +// 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 metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata]. +type LocationMetadata struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocationMetadata) Reset() { *m = LocationMetadata{} } +func (m *LocationMetadata) String() string { return proto.CompactTextString(m) } +func (*LocationMetadata) ProtoMessage() {} +func (*LocationMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_location_f1b8c59cf03288d9, []int{0} +} +func (m *LocationMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LocationMetadata.Unmarshal(m, b) +} +func (m *LocationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LocationMetadata.Marshal(b, m, deterministic) +} +func (dst *LocationMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocationMetadata.Merge(dst, src) +} +func (m *LocationMetadata) XXX_Size() int { + return xxx_messageInfo_LocationMetadata.Size(m) +} +func (m *LocationMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_LocationMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_LocationMetadata proto.InternalMessageInfo + +func init() { + proto.RegisterType((*LocationMetadata)(nil), "google.firestore.admin.v1beta1.LocationMetadata") +} + +func init() { + proto.RegisterFile("google/firestore/admin/v1beta1/location.proto", fileDescriptor_location_f1b8c59cf03288d9) +} + +var fileDescriptor_location_f1b8c59cf03288d9 = []byte{ + // 217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x8f, 0x31, 0x4b, 0xc0, 0x30, + 0x10, 0x85, 0x69, 0x11, 0x87, 0x82, 0x20, 0x9d, 0xa4, 0x88, 0x43, 0x71, 0x35, 0x47, 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4e, 0x01, 0x00, 0x00, +} diff --git a/googleapis/firestore/admin/v1beta2/field.pb.go b/googleapis/firestore/admin/v1beta2/field.pb.go index 7811b0a9da43e434a7640b929610b0985cf4a492..ee90516dd9a46122c7034341fbc7a8530b7686df 100644 --- a/googleapis/firestore/admin/v1beta2/field.pb.go +++ b/googleapis/firestore/admin/v1beta2/field.pb.go @@ -65,7 +65,7 @@ func (m *Field) Reset() { *m = Field{} } func (m *Field) String() string { return proto.CompactTextString(m) } func (*Field) ProtoMessage() {} func (*Field) Descriptor() ([]byte, []int) { - return fileDescriptor_field_eabd3bc03800743e, []int{0} + return fileDescriptor_field_6bc9249960293f54, []int{0} } func (m *Field) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Field.Unmarshal(m, b) @@ -129,7 +129,7 @@ func (m *Field_IndexConfig) Reset() { *m = Field_IndexConfig{} } func (m *Field_IndexConfig) String() string { return proto.CompactTextString(m) } func (*Field_IndexConfig) ProtoMessage() {} func (*Field_IndexConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_field_eabd3bc03800743e, []int{0, 0} + return fileDescriptor_field_6bc9249960293f54, []int{0, 0} } func (m *Field_IndexConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Field_IndexConfig.Unmarshal(m, b) @@ -183,10 +183,10 @@ func init() { } func init() { - proto.RegisterFile("google/firestore/admin/v1beta2/field.proto", fileDescriptor_field_eabd3bc03800743e) + proto.RegisterFile("google/firestore/admin/v1beta2/field.proto", fileDescriptor_field_6bc9249960293f54) } -var fileDescriptor_field_eabd3bc03800743e = []byte{ +var fileDescriptor_field_6bc9249960293f54 = []byte{ // 346 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xcf, 0x4a, 0xf3, 0x40, 0x14, 0xc5, 0x99, 0xb4, 0xdf, 0xa7, 0x9d, 0xa8, 0x8b, 0xc1, 0x45, 0x28, 0x45, 0x4a, 0xb1, 0x50, diff --git a/googleapis/firestore/admin/v1beta2/firestore_admin.pb.go b/googleapis/firestore/admin/v1beta2/firestore_admin.pb.go index 4fe981dd7f9c7a4be5aad4545bb3f17617731ff1..8bb49ffc1f928aee093185e814385a138da0c9d5 100644 --- a/googleapis/firestore/admin/v1beta2/firestore_admin.pb.go +++ b/googleapis/firestore/admin/v1beta2/firestore_admin.pb.go @@ -6,7 +6,7 @@ package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import _ "github.com/golang/protobuf/ptypes/empty" +import empty "github.com/golang/protobuf/ptypes/empty" import _ "google.golang.org/genproto/googleapis/api/annotations" import longrunning "google.golang.org/genproto/googleapis/longrunning" import field_mask "google.golang.org/genproto/protobuf/field_mask" @@ -27,6 +27,258 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +// The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1beta2.FirestoreAdmin.CreateIndex]. +type CreateIndexRequest struct { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The composite index to create. + Index *Index `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateIndexRequest) Reset() { *m = CreateIndexRequest{} } +func (m *CreateIndexRequest) String() string { return proto.CompactTextString(m) } +func (*CreateIndexRequest) ProtoMessage() {} +func (*CreateIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{0} +} +func (m *CreateIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateIndexRequest.Unmarshal(m, b) +} +func (m *CreateIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateIndexRequest.Marshal(b, m, deterministic) +} +func (dst *CreateIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateIndexRequest.Merge(dst, src) +} +func (m *CreateIndexRequest) XXX_Size() int { + return xxx_messageInfo_CreateIndexRequest.Size(m) +} +func (m *CreateIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateIndexRequest proto.InternalMessageInfo + +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.ListIndexes][google.firestore.admin.v1beta2.FirestoreAdmin.ListIndexes]. +type ListIndexesRequest struct { + // A parent name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The filter to apply to list results. + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // The number of results to return. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, returned from a previous call to + // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1beta2.FirestoreAdmin.ListIndexes], that may be used to get the next + // page of results. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListIndexesRequest) Reset() { *m = ListIndexesRequest{} } +func (m *ListIndexesRequest) String() string { return proto.CompactTextString(m) } +func (*ListIndexesRequest) ProtoMessage() {} +func (*ListIndexesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{1} +} +func (m *ListIndexesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListIndexesRequest.Unmarshal(m, b) +} +func (m *ListIndexesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListIndexesRequest.Marshal(b, m, deterministic) +} +func (dst *ListIndexesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListIndexesRequest.Merge(dst, src) +} +func (m *ListIndexesRequest) XXX_Size() int { + return xxx_messageInfo_ListIndexesRequest.Size(m) +} +func (m *ListIndexesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListIndexesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListIndexesRequest proto.InternalMessageInfo + +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 response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1beta2.FirestoreAdmin.ListIndexes]. +type ListIndexesResponse struct { + // The requested indexes. + Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"` + // A page token that may be used to request another page of results. If blank, + // this is the last page. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListIndexesResponse) Reset() { *m = ListIndexesResponse{} } +func (m *ListIndexesResponse) String() string { return proto.CompactTextString(m) } +func (*ListIndexesResponse) ProtoMessage() {} +func (*ListIndexesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{2} +} +func (m *ListIndexesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListIndexesResponse.Unmarshal(m, b) +} +func (m *ListIndexesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListIndexesResponse.Marshal(b, m, deterministic) +} +func (dst *ListIndexesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListIndexesResponse.Merge(dst, src) +} +func (m *ListIndexesResponse) XXX_Size() int { + return xxx_messageInfo_ListIndexesResponse.Size(m) +} +func (m *ListIndexesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListIndexesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListIndexesResponse proto.InternalMessageInfo + +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 "" +} + +// The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1beta2.FirestoreAdmin.GetIndex]. +type GetIndexRequest struct { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetIndexRequest) Reset() { *m = GetIndexRequest{} } +func (m *GetIndexRequest) String() string { return proto.CompactTextString(m) } +func (*GetIndexRequest) ProtoMessage() {} +func (*GetIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{3} +} +func (m *GetIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetIndexRequest.Unmarshal(m, b) +} +func (m *GetIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetIndexRequest.Marshal(b, m, deterministic) +} +func (dst *GetIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetIndexRequest.Merge(dst, src) +} +func (m *GetIndexRequest) XXX_Size() int { + return xxx_messageInfo_GetIndexRequest.Size(m) +} +func (m *GetIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetIndexRequest proto.InternalMessageInfo + +func (m *GetIndexRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1beta2.FirestoreAdmin.DeleteIndex]. +type DeleteIndexRequest struct { + // A name of the form + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteIndexRequest) Reset() { *m = DeleteIndexRequest{} } +func (m *DeleteIndexRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteIndexRequest) ProtoMessage() {} +func (*DeleteIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{4} +} +func (m *DeleteIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteIndexRequest.Unmarshal(m, b) +} +func (m *DeleteIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteIndexRequest.Marshal(b, m, deterministic) +} +func (dst *DeleteIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteIndexRequest.Merge(dst, src) +} +func (m *DeleteIndexRequest) XXX_Size() int { + return xxx_messageInfo_DeleteIndexRequest.Size(m) +} +func (m *DeleteIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteIndexRequest proto.InternalMessageInfo + +func (m *DeleteIndexRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + // The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1beta2.FirestoreAdmin.UpdateField]. type UpdateFieldRequest struct { // The field to be updated. @@ -43,7 +295,7 @@ func (m *UpdateFieldRequest) Reset() { *m = UpdateFieldRequest{} } func (m *UpdateFieldRequest) String() string { return proto.CompactTextString(m) } func (*UpdateFieldRequest) ProtoMessage() {} func (*UpdateFieldRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_1ffbeeca3c483e85, []int{0} + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{5} } func (m *UpdateFieldRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateFieldRequest.Unmarshal(m, b) @@ -80,7 +332,7 @@ func (m *UpdateFieldRequest) GetUpdateMask() *field_mask.FieldMask { // The request for [FirestoreAdmin.GetField][google.firestore.admin.v1beta2.FirestoreAdmin.GetField]. type GetFieldRequest struct { // A name of the form - // `/projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -91,7 +343,7 @@ func (m *GetFieldRequest) Reset() { *m = GetFieldRequest{} } func (m *GetFieldRequest) String() string { return proto.CompactTextString(m) } func (*GetFieldRequest) ProtoMessage() {} func (*GetFieldRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_1ffbeeca3c483e85, []int{1} + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{6} } func (m *GetFieldRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetFieldRequest.Unmarshal(m, b) @@ -121,7 +373,7 @@ func (m *GetFieldRequest) GetName() string { // The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields]. type ListFieldsRequest struct { // A parent name of the form - // `/projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The filter to apply to list results. Currently, // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields] only supports listing fields @@ -144,7 +396,7 @@ func (m *ListFieldsRequest) Reset() { *m = ListFieldsRequest{} } func (m *ListFieldsRequest) String() string { return proto.CompactTextString(m) } func (*ListFieldsRequest) ProtoMessage() {} func (*ListFieldsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_1ffbeeca3c483e85, []int{2} + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{7} } func (m *ListFieldsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListFieldsRequest.Unmarshal(m, b) @@ -208,7 +460,7 @@ func (m *ListFieldsResponse) Reset() { *m = ListFieldsResponse{} } func (m *ListFieldsResponse) String() string { return proto.CompactTextString(m) } func (*ListFieldsResponse) ProtoMessage() {} func (*ListFieldsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_admin_1ffbeeca3c483e85, []int{3} + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{8} } func (m *ListFieldsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListFieldsResponse.Unmarshal(m, b) @@ -242,11 +494,148 @@ func (m *ListFieldsResponse) GetNextPageToken() string { return "" } +// The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ExportDocuments]. +type ExportDocumentsRequest struct { + // Database to export. Should be of the form: + // `projects/{project_id}/databases/{database_id}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Which collection ids to export. Unspecified means all collections. + CollectionIds []string `protobuf:"bytes,2,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // The output URI. Currently only supports Google Cloud Storage URIs of the + // form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + // of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + // Google Cloud Storage namespace path. When + // choosing a name, be sure to consider Google Cloud Storage naming + // guidelines: https://cloud.google.com/storage/docs/naming. + // If the URI is a bucket (without a namespace path), a prefix will be + // generated based on the start time. + OutputUriPrefix string `protobuf:"bytes,3,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExportDocumentsRequest) Reset() { *m = ExportDocumentsRequest{} } +func (m *ExportDocumentsRequest) String() string { return proto.CompactTextString(m) } +func (*ExportDocumentsRequest) ProtoMessage() {} +func (*ExportDocumentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{9} +} +func (m *ExportDocumentsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportDocumentsRequest.Unmarshal(m, b) +} +func (m *ExportDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportDocumentsRequest.Marshal(b, m, deterministic) +} +func (dst *ExportDocumentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportDocumentsRequest.Merge(dst, src) +} +func (m *ExportDocumentsRequest) XXX_Size() int { + return xxx_messageInfo_ExportDocumentsRequest.Size(m) +} +func (m *ExportDocumentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExportDocumentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportDocumentsRequest proto.InternalMessageInfo + +func (m *ExportDocumentsRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExportDocumentsRequest) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ExportDocumentsRequest) GetOutputUriPrefix() string { + if m != nil { + return m.OutputUriPrefix + } + return "" +} + +// The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ImportDocuments]. +type ImportDocumentsRequest struct { + // Database to import into. Should be of the form: + // `projects/{project_id}/databases/{database_id}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Which collection ids to import. Unspecified means all collections included + // in the import. + CollectionIds []string `protobuf:"bytes,2,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // Location of the exported files. + // This must match the output_uri_prefix of an ExportDocumentsResponse from + // an export that has completed successfully. + // See: + // [google.firestore.admin.v1beta2.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1beta2.ExportDocumentsResponse.output_uri_prefix]. + InputUriPrefix string `protobuf:"bytes,3,opt,name=input_uri_prefix,json=inputUriPrefix,proto3" json:"input_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportDocumentsRequest) Reset() { *m = ImportDocumentsRequest{} } +func (m *ImportDocumentsRequest) String() string { return proto.CompactTextString(m) } +func (*ImportDocumentsRequest) ProtoMessage() {} +func (*ImportDocumentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_admin_7145281113ae4e9b, []int{10} +} +func (m *ImportDocumentsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImportDocumentsRequest.Unmarshal(m, b) +} +func (m *ImportDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImportDocumentsRequest.Marshal(b, m, deterministic) +} +func (dst *ImportDocumentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportDocumentsRequest.Merge(dst, src) +} +func (m *ImportDocumentsRequest) XXX_Size() int { + return xxx_messageInfo_ImportDocumentsRequest.Size(m) +} +func (m *ImportDocumentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ImportDocumentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ImportDocumentsRequest proto.InternalMessageInfo + +func (m *ImportDocumentsRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ImportDocumentsRequest) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ImportDocumentsRequest) GetInputUriPrefix() string { + if m != nil { + return m.InputUriPrefix + } + return "" +} + func init() { + proto.RegisterType((*CreateIndexRequest)(nil), "google.firestore.admin.v1beta2.CreateIndexRequest") + proto.RegisterType((*ListIndexesRequest)(nil), "google.firestore.admin.v1beta2.ListIndexesRequest") + proto.RegisterType((*ListIndexesResponse)(nil), "google.firestore.admin.v1beta2.ListIndexesResponse") + proto.RegisterType((*GetIndexRequest)(nil), "google.firestore.admin.v1beta2.GetIndexRequest") + proto.RegisterType((*DeleteIndexRequest)(nil), "google.firestore.admin.v1beta2.DeleteIndexRequest") proto.RegisterType((*UpdateFieldRequest)(nil), "google.firestore.admin.v1beta2.UpdateFieldRequest") proto.RegisterType((*GetFieldRequest)(nil), "google.firestore.admin.v1beta2.GetFieldRequest") proto.RegisterType((*ListFieldsRequest)(nil), "google.firestore.admin.v1beta2.ListFieldsRequest") proto.RegisterType((*ListFieldsResponse)(nil), "google.firestore.admin.v1beta2.ListFieldsResponse") + proto.RegisterType((*ExportDocumentsRequest)(nil), "google.firestore.admin.v1beta2.ExportDocumentsRequest") + proto.RegisterType((*ImportDocumentsRequest)(nil), "google.firestore.admin.v1beta2.ImportDocumentsRequest") } // Reference imports to suppress errors if they are not otherwise used. @@ -261,6 +650,16 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type FirestoreAdminClient interface { + // Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + // which may be used to track the status of the creation. The metadata for + // the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1beta2.IndexOperationMetadata]. + CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) + // Lists composite indexes. + ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error) + // Gets a composite index. + GetIndex(ctx context.Context, in *GetIndexRequest, opts ...grpc.CallOption) (*Index, error) + // Deletes a composite index. + DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets the metadata and configuration for a Field. GetField(ctx context.Context, in *GetFieldRequest, opts ...grpc.CallOption) (*Field, error) // Updates a field configuration. Currently, field updates apply only to @@ -275,7 +674,7 @@ type FirestoreAdminClient interface { // // To configure the default field settings for the database, use // the special `Field` with resource name: - // `/projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. UpdateField(ctx context.Context, in *UpdateFieldRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists the field configuration and metadata for this database. // @@ -284,6 +683,21 @@ type FirestoreAdminClient interface { // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields] with the filter set to // `indexConfig.usesAncestorConfig:false`. ListFields(ctx context.Context, in *ListFieldsRequest, opts ...grpc.CallOption) (*ListFieldsResponse, error) + // Exports a copy of all or a subset of documents from Google Cloud Firestore + // to another storage system, such as Google Cloud Storage. Recent updates to + // documents may not be reflected in the export. The export occurs in the + // background and its progress can be monitored and managed via the + // Operation resource that is created. The output of an export may only be + // used once the associated operation is done. If an export operation is + // cancelled before completion it may leave partial data behind in Google + // Cloud Storage. + ExportDocuments(ctx context.Context, in *ExportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) + // Imports documents into Google Cloud Firestore. Existing documents with the + // same name are overwritten. The import occurs in the background and its + // progress can be monitored and managed via the Operation resource that is + // created. If an ImportDocuments operation is cancelled, it is possible + // that a subset of the data has already been imported to Cloud Firestore. + ImportDocuments(ctx context.Context, in *ImportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) } type firestoreAdminClient struct { @@ -294,6 +708,42 @@ func NewFirestoreAdminClient(cc *grpc.ClientConn) FirestoreAdminClient { return &firestoreAdminClient{cc} } +func (c *firestoreAdminClient) CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { + out := new(longrunning.Operation) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/CreateIndex", in, out, 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 := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/ListIndexes", in, out, 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 := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/GetIndex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/DeleteIndex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *firestoreAdminClient) GetField(ctx context.Context, in *GetFieldRequest, opts ...grpc.CallOption) (*Field, error) { out := new(Field) err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/GetField", in, out, opts...) @@ -321,8 +771,36 @@ func (c *firestoreAdminClient) ListFields(ctx context.Context, in *ListFieldsReq return out, nil } +func (c *firestoreAdminClient) ExportDocuments(ctx context.Context, in *ExportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { + out := new(longrunning.Operation) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/ExportDocuments", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreAdminClient) ImportDocuments(ctx context.Context, in *ImportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { + out := new(longrunning.Operation) + err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/ImportDocuments", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // FirestoreAdminServer is the server API for FirestoreAdmin service. type FirestoreAdminServer interface { + // Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + // which may be used to track the status of the creation. The metadata for + // the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1beta2.IndexOperationMetadata]. + CreateIndex(context.Context, *CreateIndexRequest) (*longrunning.Operation, error) + // Lists composite indexes. + ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error) + // Gets a composite index. + GetIndex(context.Context, *GetIndexRequest) (*Index, error) + // Deletes a composite index. + DeleteIndex(context.Context, *DeleteIndexRequest) (*empty.Empty, error) // Gets the metadata and configuration for a Field. GetField(context.Context, *GetFieldRequest) (*Field, error) // Updates a field configuration. Currently, field updates apply only to @@ -337,7 +815,7 @@ type FirestoreAdminServer interface { // // To configure the default field settings for the database, use // the special `Field` with resource name: - // `/projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. UpdateField(context.Context, *UpdateFieldRequest) (*longrunning.Operation, error) // Lists the field configuration and metadata for this database. // @@ -346,12 +824,99 @@ type FirestoreAdminServer interface { // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields] with the filter set to // `indexConfig.usesAncestorConfig:false`. ListFields(context.Context, *ListFieldsRequest) (*ListFieldsResponse, error) + // Exports a copy of all or a subset of documents from Google Cloud Firestore + // to another storage system, such as Google Cloud Storage. Recent updates to + // documents may not be reflected in the export. The export occurs in the + // background and its progress can be monitored and managed via the + // Operation resource that is created. The output of an export may only be + // used once the associated operation is done. If an export operation is + // cancelled before completion it may leave partial data behind in Google + // Cloud Storage. + ExportDocuments(context.Context, *ExportDocumentsRequest) (*longrunning.Operation, error) + // Imports documents into Google Cloud Firestore. Existing documents with the + // same name are overwritten. The import occurs in the background and its + // progress can be monitored and managed via the Operation resource that is + // created. If an ImportDocuments operation is cancelled, it is possible + // that a subset of the data has already been imported to Cloud Firestore. + ImportDocuments(context.Context, *ImportDocumentsRequest) (*longrunning.Operation, 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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.FirestoreAdmin/DeleteIndex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).DeleteIndex(ctx, req.(*DeleteIndexRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _FirestoreAdmin_GetField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetFieldRequest) if err := dec(in); err != nil { @@ -406,10 +971,62 @@ func _FirestoreAdmin_ListFields_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _FirestoreAdmin_ExportDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExportDocumentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreAdminServer).ExportDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/ExportDocuments", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).ExportDocuments(ctx, req.(*ExportDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FirestoreAdmin_ImportDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ImportDocumentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreAdminServer).ImportDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/ImportDocuments", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreAdminServer).ImportDocuments(ctx, req.(*ImportDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _FirestoreAdmin_serviceDesc = grpc.ServiceDesc{ ServiceName: "google.firestore.admin.v1beta2.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, + }, { MethodName: "GetField", Handler: _FirestoreAdmin_GetField_Handler, @@ -422,54 +1039,82 @@ var _FirestoreAdmin_serviceDesc = grpc.ServiceDesc{ MethodName: "ListFields", Handler: _FirestoreAdmin_ListFields_Handler, }, + { + MethodName: "ExportDocuments", + Handler: _FirestoreAdmin_ExportDocuments_Handler, + }, + { + MethodName: "ImportDocuments", + Handler: _FirestoreAdmin_ImportDocuments_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/firestore/admin/v1beta2/firestore_admin.proto", } func init() { - proto.RegisterFile("google/firestore/admin/v1beta2/firestore_admin.proto", fileDescriptor_firestore_admin_1ffbeeca3c483e85) -} - -var fileDescriptor_firestore_admin_1ffbeeca3c483e85 = []byte{ - // 610 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0x95, 0xd3, 0xb4, 0x6a, 0xa7, 0xfa, 0xbe, 0x8a, 0x41, 0x42, 0x91, 0x4b, 0x51, 0x64, 0x28, - 0xaa, 0xba, 0xf0, 0x28, 0x86, 0x15, 0x51, 0x17, 0x24, 0x28, 0x41, 0x08, 0x44, 0x48, 0xf9, 0x91, - 0xd8, 0x44, 0x93, 0xf8, 0xc6, 0x32, 0x71, 0x66, 0x8c, 0x67, 0x8c, 0x4a, 0xab, 0x0a, 0x89, 0x07, - 0x60, 0xc3, 0x1b, 0xb0, 0x64, 0xd1, 0x3d, 0xab, 0x3e, 0x04, 0xaf, 0xc0, 0x83, 0xa0, 0xf9, 0x71, - 0x7e, 0x5a, 0x20, 0x81, 0xdd, 0xcc, 0xbd, 0xe7, 0xdc, 0x7b, 0xe6, 0xfa, 0x5c, 0xa3, 0xbb, 0x11, - 0xe7, 0x51, 0x02, 0x64, 0x18, 0x67, 0x20, 0x24, 0xcf, 0x80, 0xd0, 0x70, 0x1c, 0x33, 0xf2, 0xae, - 0xd6, 0x07, 0x49, 0x83, 0x69, 0xbc, 0xa7, 0xe3, 0x7e, 0x9a, 0x71, 0xc9, 0xf1, 0x0d, 0xc3, 0xf2, - 0x27, 0x59, 0xdf, 0x64, 0x2d, 0xcb, 0xbd, 0x6e, 0xab, 0xd2, 0x34, 0x26, 0x94, 0x31, 0x2e, 0xa9, - 0x8c, 0x39, 0x13, 0x86, 0xed, 0xee, 0x2f, 0xec, 0x09, 0x49, 0xb8, 0x24, 0x36, 0x66, 0x21, 0x1c, - 0x59, 0xec, 0x4d, 0x8b, 0x4d, 0x38, 0x8b, 0xb2, 0x9c, 0xb1, 0x98, 0x45, 0x84, 0xa7, 0x90, 0xcd, - 0x35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 0x4d, 0x4b, 0x8b, 0x78, - 0x42, 0x59, 0xe4, 0xf3, 0x2c, 0x22, 0x11, 0x30, 0xbd, 0xd9, 0xc4, 0xa4, 0x68, 0x1a, 0x8b, 0xdf, - 0xfd, 0xe4, 0xea, 0xfa, 0xf6, 0xa5, 0x54, 0x6e, 0x37, 0x5b, 0x87, 0x5f, 0x4b, 0xb7, 0xda, 0xa6, - 0x58, 0x33, 0xe1, 0x79, 0xe8, 0x4f, 0x1a, 0xfa, 0xba, 0xa3, 0xff, 0xb2, 0xd6, 0x50, 0x9c, 0xfe, - 0x9a, 0xae, 0x7e, 0xe7, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xf6, 0x28, 0xdf, 0xe1, 0x05, - 0x00, 0x00, + proto.RegisterFile("google/firestore/admin/v1beta2/firestore_admin.proto", fileDescriptor_firestore_admin_7145281113ae4e9b) +} + +var fileDescriptor_firestore_admin_7145281113ae4e9b = []byte{ + // 940 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcb, 0x6e, 0x1c, 0x45, + 0x17, 0x56, 0x8d, 0x2f, 0x7f, 0x7c, 0xe6, 0xc7, 0x26, 0x15, 0x69, 0x34, 0xea, 0x10, 0x34, 0x6a, + 0x30, 0x1a, 0xcd, 0xa2, 0x5b, 0x9e, 0xa0, 0x2c, 0x3c, 0x8a, 0x50, 0x3c, 0xbe, 0x60, 0x08, 0xc2, + 0x4c, 0x08, 0x48, 0x6c, 0x46, 0xe5, 0x99, 0x72, 0xab, 0x70, 0x4f, 0x55, 0xd3, 0x55, 0x8d, 0x4c, + 0x22, 0x13, 0xc4, 0x03, 0xb0, 0xe1, 0x0d, 0x58, 0xb0, 0x00, 0x29, 0x6c, 0xd8, 0xb0, 0x62, 0xc1, + 0x23, 0xf0, 0x0a, 0xbc, 0x01, 0x2f, 0x80, 0xea, 0xd2, 0x73, 0x27,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1, + 0x2d, 0x3c, 0x30, 0xb4, 0x3b, 0xfe, 0xbd, 0x52, 0x4d, 0x73, 0xb9, 0x4b, 0x67, 0xa3, 0xec, 0xa2, + 0x96, 0x61, 0x3b, 0x37, 0x47, 0x8a, 0xd9, 0x2e, 0x1f, 0x3c, 0xd7, 0xcd, 0x96, 0x8d, 0xe6, 0xd9, + 0xee, 0x3d, 0x47, 0xe0, 0x0f, 0xc4, 0xa8, 0x80, 0xdf, 0xde, 0xad, 0xd9, 0xc9, 0x74, 0xa2, 0xc5, + 0xe1, 0x04, 0x7d, 0xd6, 0x75, 0xb0, 0x48, 0xc4, 0x84, 0x47, 0x81, 0x48, 0xa3, 0x30, 0xa2, 0xdc, + 0x48, 0x47, 0x68, 0xb7, 0x48, 0xc2, 0xe4, 0xbf, 0xfd, 0xd7, 0x77, 0xcc, 0xea, 0x87, 0xca, 0xea, + 0x51, 0xf7, 0xf0, 0xd1, 0x4f, 0x95, 0x37, 0x8f, 0xec, 0x61, 0xdd, 0x58, 0x64, 0xc3, 0x60, 0x1c, + 0x30, 0x30, 0x11, 0x83, 0x4f, 0x76, 0xf6, 0x34, 0xe6, 0x74, 0xdd, 0x9c, 0x7e, 0xf7, 0x9f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xc9, 0xcc, 0x19, 0xb3, 0xd4, 0x0c, 0x00, 0x00, } diff --git a/googleapis/firestore/admin/v1beta2/index.pb.go b/googleapis/firestore/admin/v1beta2/index.pb.go index 6a6e589bdc4bff712253a91db89f5b9e90b4a7c7..6e702a21c5bb46488447b6fff0bb07ae3c54a4e7 100644 --- a/googleapis/firestore/admin/v1beta2/index.pb.go +++ b/googleapis/firestore/admin/v1beta2/index.pb.go @@ -45,7 +45,7 @@ func (x Index_QueryScope) String() string { return proto.EnumName(Index_QueryScope_name, int32(x)) } func (Index_QueryScope) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_index_47cf3a5e57bc9ffa, []int{0, 0} + return fileDescriptor_index_30c0e9bfd16ff693, []int{0, 0} } // The state of an index. During index creation, an index will be in the @@ -94,7 +94,7 @@ func (x Index_State) String() string { return proto.EnumName(Index_State_name, int32(x)) } func (Index_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_index_47cf3a5e57bc9ffa, []int{0, 1} + return fileDescriptor_index_30c0e9bfd16ff693, []int{0, 1} } // The supported orderings. @@ -124,7 +124,7 @@ func (x Index_IndexField_Order) String() string { return proto.EnumName(Index_IndexField_Order_name, int32(x)) } func (Index_IndexField_Order) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_index_47cf3a5e57bc9ffa, []int{0, 0, 0} + return fileDescriptor_index_30c0e9bfd16ff693, []int{0, 0, 0} } // The supported array value configurations. @@ -150,7 +150,7 @@ func (x Index_IndexField_ArrayConfig) String() string { return proto.EnumName(Index_IndexField_ArrayConfig_name, int32(x)) } func (Index_IndexField_ArrayConfig) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_index_47cf3a5e57bc9ffa, []int{0, 0, 1} + return fileDescriptor_index_30c0e9bfd16ff693, []int{0, 0, 1} } // Cloud Firestore indexes enable simple and complex queries against @@ -194,7 +194,7 @@ func (m *Index) Reset() { *m = Index{} } func (m *Index) String() string { return proto.CompactTextString(m) } func (*Index) ProtoMessage() {} func (*Index) Descriptor() ([]byte, []int) { - return fileDescriptor_index_47cf3a5e57bc9ffa, []int{0} + return fileDescriptor_index_30c0e9bfd16ff693, []int{0} } func (m *Index) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Index.Unmarshal(m, b) @@ -265,7 +265,7 @@ func (m *Index_IndexField) Reset() { *m = Index_IndexField{} } func (m *Index_IndexField) String() string { return proto.CompactTextString(m) } func (*Index_IndexField) ProtoMessage() {} func (*Index_IndexField) Descriptor() ([]byte, []int) { - return fileDescriptor_index_47cf3a5e57bc9ffa, []int{0, 0} + return fileDescriptor_index_30c0e9bfd16ff693, []int{0, 0} } func (m *Index_IndexField) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Index_IndexField.Unmarshal(m, b) @@ -403,10 +403,10 @@ func init() { } func init() { - proto.RegisterFile("google/firestore/admin/v1beta2/index.proto", fileDescriptor_index_47cf3a5e57bc9ffa) + proto.RegisterFile("google/firestore/admin/v1beta2/index.proto", fileDescriptor_index_30c0e9bfd16ff693) } -var fileDescriptor_index_47cf3a5e57bc9ffa = []byte{ +var fileDescriptor_index_30c0e9bfd16ff693 = []byte{ // 545 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x6b, 0xdb, 0x4c, 0x10, 0xc6, 0x23, 0x39, 0x0a, 0xaf, 0xc7, 0x7e, 0x83, 0xba, 0x50, 0x2a, 0xd2, 0xb4, 0x18, 0xd1, diff --git a/googleapis/firestore/admin/v1beta2/operation.pb.go b/googleapis/firestore/admin/v1beta2/operation.pb.go index 6078e43b0aad9bfc3f4be5244ae03e3e740776db..d47cc29a1785a1d5edc6b52335ec173dcd96cbc6 100644 --- a/googleapis/firestore/admin/v1beta2/operation.pb.go +++ b/googleapis/firestore/admin/v1beta2/operation.pb.go @@ -69,7 +69,7 @@ func (x OperationState) String() string { return proto.EnumName(OperationState_name, int32(x)) } func (OperationState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_operation_3f6f641f194f3566, []int{0} + return fileDescriptor_operation_027e42d27180be05, []int{0} } // Specifies how the index is changing. @@ -99,7 +99,95 @@ func (x FieldOperationMetadata_IndexConfigDelta_ChangeType) String() string { return proto.EnumName(FieldOperationMetadata_IndexConfigDelta_ChangeType_name, int32(x)) } func (FieldOperationMetadata_IndexConfigDelta_ChangeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_operation_3f6f641f194f3566, []int{0, 0, 0} + return fileDescriptor_operation_027e42d27180be05, []int{1, 0, 0} +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1beta2.FirestoreAdmin.CreateIndex]. +type IndexOperationMetadata struct { + // The time this operation started. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time this operation completed. Will be unset if operation still in + // progress. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The index resource that this operation is acting on. For example: + // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + Index string `protobuf:"bytes,3,opt,name=index,proto3" json:"index,omitempty"` + // The state of the operation. + State OperationState `protobuf:"varint,4,opt,name=state,proto3,enum=google.firestore.admin.v1beta2.OperationState" json:"state,omitempty"` + // The progress, in documents, of this operation. + ProgressDocuments *Progress `protobuf:"bytes,5,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"` + // The progress, in bytes, of this operation. + ProgressBytes *Progress `protobuf:"bytes,6,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IndexOperationMetadata) Reset() { *m = IndexOperationMetadata{} } +func (m *IndexOperationMetadata) String() string { return proto.CompactTextString(m) } +func (*IndexOperationMetadata) ProtoMessage() {} +func (*IndexOperationMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_027e42d27180be05, []int{0} +} +func (m *IndexOperationMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IndexOperationMetadata.Unmarshal(m, b) +} +func (m *IndexOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IndexOperationMetadata.Marshal(b, m, deterministic) +} +func (dst *IndexOperationMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_IndexOperationMetadata.Merge(dst, src) +} +func (m *IndexOperationMetadata) XXX_Size() int { + return xxx_messageInfo_IndexOperationMetadata.Size(m) +} +func (m *IndexOperationMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_IndexOperationMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_IndexOperationMetadata proto.InternalMessageInfo + +func (m *IndexOperationMetadata) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *IndexOperationMetadata) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *IndexOperationMetadata) GetIndex() string { + if m != nil { + return m.Index + } + return "" +} + +func (m *IndexOperationMetadata) GetState() OperationState { + if m != nil { + return m.State + } + return OperationState_OPERATION_STATE_UNSPECIFIED +} + +func (m *IndexOperationMetadata) GetProgressDocuments() *Progress { + if m != nil { + return m.ProgressDocuments + } + return nil +} + +func (m *IndexOperationMetadata) GetProgressBytes() *Progress { + if m != nil { + return m.ProgressBytes + } + return nil } // Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from @@ -131,7 +219,7 @@ func (m *FieldOperationMetadata) Reset() { *m = FieldOperationMetadata{} func (m *FieldOperationMetadata) String() string { return proto.CompactTextString(m) } func (*FieldOperationMetadata) ProtoMessage() {} func (*FieldOperationMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_operation_3f6f641f194f3566, []int{0} + return fileDescriptor_operation_027e42d27180be05, []int{1} } func (m *FieldOperationMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldOperationMetadata.Unmarshal(m, b) @@ -217,7 +305,7 @@ func (m *FieldOperationMetadata_IndexConfigDelta) Reset() { func (m *FieldOperationMetadata_IndexConfigDelta) String() string { return proto.CompactTextString(m) } func (*FieldOperationMetadata_IndexConfigDelta) ProtoMessage() {} func (*FieldOperationMetadata_IndexConfigDelta) Descriptor() ([]byte, []int) { - return fileDescriptor_operation_3f6f641f194f3566, []int{0, 0} + return fileDescriptor_operation_027e42d27180be05, []int{1, 0} } func (m *FieldOperationMetadata_IndexConfigDelta) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Unmarshal(m, b) @@ -251,6 +339,240 @@ func (m *FieldOperationMetadata_IndexConfigDelta) GetIndex() *Index { return nil } +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ExportDocuments]. +type ExportDocumentsMetadata struct { + // The time this operation started. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time this operation completed. Will be unset if operation still in + // progress. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The state of the export operation. + OperationState OperationState `protobuf:"varint,3,opt,name=operation_state,json=operationState,proto3,enum=google.firestore.admin.v1beta2.OperationState" json:"operation_state,omitempty"` + // The progress, in documents, of this operation. + ProgressDocuments *Progress `protobuf:"bytes,4,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"` + // The progress, in bytes, of this operation. + ProgressBytes *Progress `protobuf:"bytes,5,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"` + // Which collection ids are being exported. + CollectionIds []string `protobuf:"bytes,6,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // Where the entities are being exported to. + OutputUriPrefix string `protobuf:"bytes,7,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExportDocumentsMetadata) Reset() { *m = ExportDocumentsMetadata{} } +func (m *ExportDocumentsMetadata) String() string { return proto.CompactTextString(m) } +func (*ExportDocumentsMetadata) ProtoMessage() {} +func (*ExportDocumentsMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_027e42d27180be05, []int{2} +} +func (m *ExportDocumentsMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportDocumentsMetadata.Unmarshal(m, b) +} +func (m *ExportDocumentsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportDocumentsMetadata.Marshal(b, m, deterministic) +} +func (dst *ExportDocumentsMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportDocumentsMetadata.Merge(dst, src) +} +func (m *ExportDocumentsMetadata) XXX_Size() int { + return xxx_messageInfo_ExportDocumentsMetadata.Size(m) +} +func (m *ExportDocumentsMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ExportDocumentsMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportDocumentsMetadata proto.InternalMessageInfo + +func (m *ExportDocumentsMetadata) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *ExportDocumentsMetadata) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *ExportDocumentsMetadata) GetOperationState() OperationState { + if m != nil { + return m.OperationState + } + return OperationState_OPERATION_STATE_UNSPECIFIED +} + +func (m *ExportDocumentsMetadata) GetProgressDocuments() *Progress { + if m != nil { + return m.ProgressDocuments + } + return nil +} + +func (m *ExportDocumentsMetadata) GetProgressBytes() *Progress { + if m != nil { + return m.ProgressBytes + } + return nil +} + +func (m *ExportDocumentsMetadata) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ExportDocumentsMetadata) GetOutputUriPrefix() string { + if m != nil { + return m.OutputUriPrefix + } + return "" +} + +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ImportDocuments]. +type ImportDocumentsMetadata struct { + // The time this operation started. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time this operation completed. Will be unset if operation still in + // progress. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The state of the import operation. + OperationState OperationState `protobuf:"varint,3,opt,name=operation_state,json=operationState,proto3,enum=google.firestore.admin.v1beta2.OperationState" json:"operation_state,omitempty"` + // The progress, in documents, of this operation. + ProgressDocuments *Progress `protobuf:"bytes,4,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"` + // The progress, in bytes, of this operation. + ProgressBytes *Progress `protobuf:"bytes,5,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"` + // Which collection ids are being imported. + CollectionIds []string `protobuf:"bytes,6,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // The location of the documents being imported. + InputUriPrefix string `protobuf:"bytes,7,opt,name=input_uri_prefix,json=inputUriPrefix,proto3" json:"input_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportDocumentsMetadata) Reset() { *m = ImportDocumentsMetadata{} } +func (m *ImportDocumentsMetadata) String() string { return proto.CompactTextString(m) } +func (*ImportDocumentsMetadata) ProtoMessage() {} +func (*ImportDocumentsMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_027e42d27180be05, []int{3} +} +func (m *ImportDocumentsMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImportDocumentsMetadata.Unmarshal(m, b) +} +func (m *ImportDocumentsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImportDocumentsMetadata.Marshal(b, m, deterministic) +} +func (dst *ImportDocumentsMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportDocumentsMetadata.Merge(dst, src) +} +func (m *ImportDocumentsMetadata) XXX_Size() int { + return xxx_messageInfo_ImportDocumentsMetadata.Size(m) +} +func (m *ImportDocumentsMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ImportDocumentsMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ImportDocumentsMetadata proto.InternalMessageInfo + +func (m *ImportDocumentsMetadata) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *ImportDocumentsMetadata) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *ImportDocumentsMetadata) GetOperationState() OperationState { + if m != nil { + return m.OperationState + } + return OperationState_OPERATION_STATE_UNSPECIFIED +} + +func (m *ImportDocumentsMetadata) GetProgressDocuments() *Progress { + if m != nil { + return m.ProgressDocuments + } + return nil +} + +func (m *ImportDocumentsMetadata) GetProgressBytes() *Progress { + if m != nil { + return m.ProgressBytes + } + return nil +} + +func (m *ImportDocumentsMetadata) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ImportDocumentsMetadata) GetInputUriPrefix() string { + if m != nil { + return m.InputUriPrefix + } + return "" +} + +// Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field. +type ExportDocumentsResponse struct { + // Location of the output files. This can be used to begin an import + // into Cloud Firestore (this project or another project) after the operation + // completes successfully. + OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExportDocumentsResponse) Reset() { *m = ExportDocumentsResponse{} } +func (m *ExportDocumentsResponse) String() string { return proto.CompactTextString(m) } +func (*ExportDocumentsResponse) ProtoMessage() {} +func (*ExportDocumentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_operation_027e42d27180be05, []int{4} +} +func (m *ExportDocumentsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportDocumentsResponse.Unmarshal(m, b) +} +func (m *ExportDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportDocumentsResponse.Marshal(b, m, deterministic) +} +func (dst *ExportDocumentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportDocumentsResponse.Merge(dst, src) +} +func (m *ExportDocumentsResponse) XXX_Size() int { + return xxx_messageInfo_ExportDocumentsResponse.Size(m) +} +func (m *ExportDocumentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExportDocumentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportDocumentsResponse proto.InternalMessageInfo + +func (m *ExportDocumentsResponse) GetOutputUriPrefix() string { + if m != nil { + return m.OutputUriPrefix + } + return "" +} + // Describes the progress of the operation. // Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1beta2.Progress] // is used. @@ -268,7 +590,7 @@ func (m *Progress) Reset() { *m = Progress{} } func (m *Progress) String() string { return proto.CompactTextString(m) } func (*Progress) ProtoMessage() {} func (*Progress) Descriptor() ([]byte, []int) { - return fileDescriptor_operation_3f6f641f194f3566, []int{1} + return fileDescriptor_operation_027e42d27180be05, []int{5} } func (m *Progress) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Progress.Unmarshal(m, b) @@ -303,59 +625,75 @@ func (m *Progress) GetCompletedWork() int64 { } func init() { + proto.RegisterType((*IndexOperationMetadata)(nil), "google.firestore.admin.v1beta2.IndexOperationMetadata") proto.RegisterType((*FieldOperationMetadata)(nil), "google.firestore.admin.v1beta2.FieldOperationMetadata") proto.RegisterType((*FieldOperationMetadata_IndexConfigDelta)(nil), "google.firestore.admin.v1beta2.FieldOperationMetadata.IndexConfigDelta") + proto.RegisterType((*ExportDocumentsMetadata)(nil), "google.firestore.admin.v1beta2.ExportDocumentsMetadata") + proto.RegisterType((*ImportDocumentsMetadata)(nil), "google.firestore.admin.v1beta2.ImportDocumentsMetadata") + proto.RegisterType((*ExportDocumentsResponse)(nil), "google.firestore.admin.v1beta2.ExportDocumentsResponse") proto.RegisterType((*Progress)(nil), "google.firestore.admin.v1beta2.Progress") proto.RegisterEnum("google.firestore.admin.v1beta2.OperationState", OperationState_name, OperationState_value) proto.RegisterEnum("google.firestore.admin.v1beta2.FieldOperationMetadata_IndexConfigDelta_ChangeType", FieldOperationMetadata_IndexConfigDelta_ChangeType_name, FieldOperationMetadata_IndexConfigDelta_ChangeType_value) } func init() { - proto.RegisterFile("google/firestore/admin/v1beta2/operation.proto", fileDescriptor_operation_3f6f641f194f3566) -} - -var fileDescriptor_operation_3f6f641f194f3566 = []byte{ - // 665 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x4f, 0x6f, 0x12, 0x4f, - 0x1c, 0xc6, 0x7f, 0x0b, 0x05, 0xda, 0x6f, 0x7f, 0x25, 0xdb, 0xd1, 0x28, 0xa1, 0xc6, 0x12, 0x62, - 0x13, 0xd2, 0xc3, 0x6c, 0x8a, 0xf1, 0x60, 0x9a, 0x98, 0x6c, 0x97, 0x05, 0x37, 0xa1, 0x40, 0x16, - 0xa8, 0xda, 0xcb, 0x66, 0x60, 0x87, 0x75, 0x53, 0x76, 0x67, 0xb3, 0x3b, 0xb5, 0xf6, 0xee, 0xd9, - 0x97, 0xe0, 0xc1, 0x9b, 0xbe, 0x4a, 0x33, 0xb3, 0x7f, 0x1a, 0x1b, 0x95, 0x98, 0x78, 0xe3, 0x19, - 0x9e, 0xe7, 0xf3, 0xfd, 0xc3, 0x0c, 0x80, 0x3d, 0xc6, 0xbc, 0x35, 0xd5, 0x56, 0x7e, 0x4c, 0x13, - 0xce, 0x62, 0xaa, 0x11, 0x37, 0xf0, 0x43, 0xed, 0xc3, 0xc9, 0x82, 0x72, 0xd2, 0xd5, 0x58, 0x44, - 0x63, 0xc2, 0x7d, 0x16, 0xe2, 0x28, 0x66, 0x9c, 0xa1, 0xa7, 0xa9, 0x1f, 0x17, 0x7e, 0x2c, 0xfd, - 0x38, 0xf3, 0x37, 0x9f, 0x64, 0x3c, 0x12, 0xf9, 0x1a, 0x09, 0x43, 0xc6, 0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6, 0x23, 0x67, 0x3a, 0xd3, 0x67, 0xf7, 0x5b, 0x54, 0xe1, - 0x7f, 0x6b, 0x64, 0xcd, 0x2c, 0x7d, 0x68, 0x5d, 0x5a, 0xa3, 0x81, 0xaa, 0xa0, 0x3a, 0xc0, 0xc4, - 0x1e, 0x1b, 0xe6, 0x74, 0x2a, 0x74, 0x49, 0x68, 0x43, 0x1f, 0x19, 0xe6, 0x70, 0x28, 0x74, 0x59, - 0xe8, 0xbe, 0x35, 0xca, 0xfd, 0x5b, 0x42, 0x4f, 0xe7, 0x86, 0xf0, 0xf7, 0xe7, 0x43, 0xb5, 0x22, - 0x66, 0xed, 0xeb, 0xd6, 0xd0, 0xec, 0xa9, 0x55, 0xb4, 0x07, 0x3b, 0x59, 0xd6, 0xec, 0xa9, 0xb5, - 0xb3, 0x6f, 0x0a, 0xb4, 0x97, 0x2c, 0xd8, 0xb0, 0xee, 0xb3, 0xbb, 0x21, 0x26, 0xe2, 0x2d, 0x4f, - 0x94, 0x4b, 0x23, 0x4b, 0x78, 0x6c, 0x4d, 0x42, 0x0f, 0xb3, 0xd8, 0xd3, 0x3c, 0x1a, 0xca, 0x97, - 0xae, 0xa5, 0x5f, 0x91, 0xc8, 0x4f, 0x7e, 0xf7, 0x87, 0x75, 0x2a, 0xd5, 0xd7, 0xd2, 0xd6, 0xc0, - 0xe8, 0x4f, 0xbf, 0x97, 0x9e, 0x0d, 0x52, 0x98, 0xb1, 0x66, 0xd7, 0x2e, 0xee, 0x17, 0x4d, 0xe8, - 0xb2, 0x89, 0x8b, 0x93, 0x33, 0x91, 0x59, 0x54, 0x25, 0xfd, 0xf9, 0x8f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x2e, 0x32, 0x9e, 0x39, 0x7b, 0x05, 0x00, 0x00, + proto.RegisterFile("google/firestore/admin/v1beta2/operation.proto", fileDescriptor_operation_027e42d27180be05) +} + +var fileDescriptor_operation_027e42d27180be05 = []byte{ + // 857 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x5d, 0x6f, 0xe3, 0x44, + 0x14, 0xc5, 0x71, 0x92, 0x6e, 0x6e, 0xa9, 0xd7, 0x1d, 0xd0, 0x36, 0xea, 0x22, 0xb6, 0x8a, 0xa8, + 0x14, 0xf5, 0xc1, 0xd1, 0x06, 0xf1, 0x80, 0x56, 0x42, 0x4a, 0x1d, 0x27, 0x58, 0xca, 0x26, 0x91, + 0x93, 0x6c, 0x61, 0x5f, 0xac, 0x69, 0x3c, 0x31, 0xa3, 0x8d, 0x3d, 0x96, 0x67, 0xc2, 0xb6, 0xef, + 0x3c, 0x23, 0x7e, 0x01, 0x0f, 0xbc, 0xc1, 0x9f, 0x42, 0xfc, 0x13, 0x34, 0xe3, 0x8f, 0x68, 0x4b, + 0x97, 0xa8, 0x14, 0x04, 0x48, 0xfb, 0xd6, 0x73, 0x73, 0xce, 0xf1, 0xcc, 0xdc, 0x73, 0xaf, 0x0a, + 0x56, 0xc8, 0x58, 0xb8, 0x26, 0x9d, 0x15, 0x4d, 0x09, 0x17, 0x2c, 0x25, 0x1d, 0x1c, 0x44, 0x34, + 0xee, 0x7c, 0xfb, 0xf4, 0x92, 0x08, 0xdc, 0xed, 0xb0, 0x84, 0xa4, 0x58, 0x50, 0x16, 0x5b, 0x49, + 0xca, 0x04, 0x43, 0x1f, 0x67, 0x7c, 0xab, 0xe4, 0x5b, 0x8a, 0x6f, 0xe5, 0xfc, 0xe3, 0x8f, 0x72, + 0x3f, 0x9c, 0xd0, 0x0e, 0x8e, 0x63, 0x26, 0x94, 0x98, 0x67, 0xea, 0xe3, 0xb3, 0x1d, 0x5f, 0xa3, + 0x71, 0x40, 0xae, 0x72, 0xee, 0x93, 0x9c, 0xab, 0xd0, 0xe5, 0x66, 0xd5, 0x11, 0x34, 0x22, 0x5c, + 0xe0, 0x28, 0xc9, 0x08, 0xad, 0x1f, 0x74, 0x78, 0xe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0xac, 0x4b, 0x3c, 0x70, + 0xc7, 0x05, 0xbf, 0x2a, 0xf1, 0x6c, 0x61, 0x4b, 0xfe, 0x60, 0x31, 0x32, 0x6b, 0x72, 0xf1, 0x0d, + 0x7a, 0xee, 0xc8, 0xe9, 0x9b, 0x75, 0x74, 0x00, 0x8d, 0x5c, 0xeb, 0xf4, 0xcd, 0xbd, 0xf3, 0x9f, + 0x35, 0x68, 0x2d, 0x59, 0xb4, 0xa3, 0xa3, 0xe7, 0xdb, 0x4b, 0x4c, 0x65, 0xc4, 0xa7, 0xda, 0x4b, + 0x3b, 0x57, 0x84, 0x6c, 0x8d, 0xe3, 0xd0, 0x62, 0x69, 0xd8, 0x09, 0x49, 0xac, 0x06, 0xa0, 0x93, + 0xfd, 0x84, 0x13, 0xca, 0xdf, 0xf6, 0x0f, 0xe5, 0x33, 0x85, 0x7e, 0xaa, 0x54, 0x87, 0xf6, 0x60, + 0xf6, 0x4b, 0xe5, 0x93, 0x61, 0x66, 0x66, 0xaf, 0xd9, 0x26, 0xb0, 0x06, 0xe5, 0x21, 0x7a, 0xea, + 0x10, 0x2f, 0x9e, 0x9e, 0x4b, 0xcd, 0x65, 0x5d, 0xb9, 0x7f, 0xfa, 0x7b, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x66, 0x9c, 0x3d, 0x65, 0x1b, 0x0b, 0x00, 0x00, } diff --git a/googleapis/firestore/v1/common.pb.go b/googleapis/firestore/v1/common.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..e8c01c20da194294d0271279df770c7021e0dacf --- /dev/null +++ b/googleapis/firestore/v1/common.pb.go @@ -0,0 +1,562 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/v1/common.proto + +package firestore // import "google.golang.org/genproto/googleapis/firestore/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +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 + +// 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 + +// A set of field paths on a document. +// Used to restrict a get or update operation on a document to a subset of its +// fields. +// This is different from standard field masks, as this is always scoped to a +// [Document][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value]. +type DocumentMask struct { + // The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field + // path syntax reference. + FieldPaths []string `protobuf:"bytes,1,rep,name=field_paths,json=fieldPaths,proto3" json:"field_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DocumentMask) Reset() { *m = DocumentMask{} } +func (m *DocumentMask) String() string { return proto.CompactTextString(m) } +func (*DocumentMask) ProtoMessage() {} +func (*DocumentMask) Descriptor() ([]byte, []int) { + return fileDescriptor_common_d742b1674d6d5f16, []int{0} +} +func (m *DocumentMask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentMask.Unmarshal(m, b) +} +func (m *DocumentMask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentMask.Marshal(b, m, deterministic) +} +func (dst *DocumentMask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentMask.Merge(dst, src) +} +func (m *DocumentMask) XXX_Size() int { + return xxx_messageInfo_DocumentMask.Size(m) +} +func (m *DocumentMask) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentMask.DiscardUnknown(m) +} + +var xxx_messageInfo_DocumentMask proto.InternalMessageInfo + +func (m *DocumentMask) GetFieldPaths() []string { + if m != nil { + return m.FieldPaths + } + return nil +} + +// A precondition on a document, used for conditional operations. +type Precondition struct { + // The type of precondition. + // + // Types that are valid to be assigned to ConditionType: + // *Precondition_Exists + // *Precondition_UpdateTime + ConditionType isPrecondition_ConditionType `protobuf_oneof:"condition_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Precondition) Reset() { *m = Precondition{} } +func (m *Precondition) String() string { return proto.CompactTextString(m) } +func (*Precondition) ProtoMessage() {} +func (*Precondition) Descriptor() ([]byte, []int) { + return fileDescriptor_common_d742b1674d6d5f16, []int{1} +} +func (m *Precondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Precondition.Unmarshal(m, b) +} +func (m *Precondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Precondition.Marshal(b, m, deterministic) +} +func (dst *Precondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_Precondition.Merge(dst, src) +} +func (m *Precondition) XXX_Size() int { + return xxx_messageInfo_Precondition.Size(m) +} +func (m *Precondition) XXX_DiscardUnknown() { + xxx_messageInfo_Precondition.DiscardUnknown(m) +} + +var xxx_messageInfo_Precondition proto.InternalMessageInfo + +type isPrecondition_ConditionType interface { + isPrecondition_ConditionType() +} + +type Precondition_Exists struct { + Exists bool `protobuf:"varint,1,opt,name=exists,proto3,oneof"` +} + +type Precondition_UpdateTime struct { + UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,oneof"` +} + +func (*Precondition_Exists) isPrecondition_ConditionType() {} + +func (*Precondition_UpdateTime) isPrecondition_ConditionType() {} + +func (m *Precondition) GetConditionType() isPrecondition_ConditionType { + if m != nil { + return m.ConditionType + } + return nil +} + +func (m *Precondition) GetExists() bool { + if x, ok := m.GetConditionType().(*Precondition_Exists); ok { + return x.Exists + } + return false +} + +func (m *Precondition) GetUpdateTime() *timestamp.Timestamp { + if x, ok := m.GetConditionType().(*Precondition_UpdateTime); ok { + return x.UpdateTime + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Precondition) 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{}) { + return _Precondition_OneofMarshaler, _Precondition_OneofUnmarshaler, _Precondition_OneofSizer, []interface{}{ + (*Precondition_Exists)(nil), + (*Precondition_UpdateTime)(nil), + } +} + +func _Precondition_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Precondition) + // condition_type + switch x := m.ConditionType.(type) { + case *Precondition_Exists: + t := uint64(0) + if x.Exists { + t = 1 + } + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(t) + case *Precondition_UpdateTime: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.UpdateTime); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Precondition.ConditionType has unexpected type %T", x) + } + return nil +} + +func _Precondition_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Precondition) + switch tag { + case 1: // condition_type.exists + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ConditionType = &Precondition_Exists{x != 0} + return true, err + case 2: // condition_type.update_time + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ConditionType = &Precondition_UpdateTime{msg} + return true, err + default: + return false, nil + } +} + +func _Precondition_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Precondition) + // condition_type + switch x := m.ConditionType.(type) { + case *Precondition_Exists: + n += 1 // tag and wire + n += 1 + case *Precondition_UpdateTime: + s := proto.Size(x.UpdateTime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Options for creating a new transaction. +type TransactionOptions struct { + // The mode of the transaction. + // + // Types that are valid to be assigned to Mode: + // *TransactionOptions_ReadOnly_ + // *TransactionOptions_ReadWrite_ + Mode isTransactionOptions_Mode `protobuf_oneof:"mode"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionOptions) Reset() { *m = TransactionOptions{} } +func (m *TransactionOptions) String() string { return proto.CompactTextString(m) } +func (*TransactionOptions) ProtoMessage() {} +func (*TransactionOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_common_d742b1674d6d5f16, []int{2} +} +func (m *TransactionOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionOptions.Unmarshal(m, b) +} +func (m *TransactionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionOptions.Marshal(b, m, deterministic) +} +func (dst *TransactionOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionOptions.Merge(dst, src) +} +func (m *TransactionOptions) XXX_Size() int { + return xxx_messageInfo_TransactionOptions.Size(m) +} +func (m *TransactionOptions) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionOptions proto.InternalMessageInfo + +type isTransactionOptions_Mode interface { + isTransactionOptions_Mode() +} + +type TransactionOptions_ReadOnly_ struct { + ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"` +} + +type TransactionOptions_ReadWrite_ struct { + ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,3,opt,name=read_write,json=readWrite,proto3,oneof"` +} + +func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {} + +func (*TransactionOptions_ReadWrite_) isTransactionOptions_Mode() {} + +func (m *TransactionOptions) GetMode() isTransactionOptions_Mode { + if m != nil { + return m.Mode + } + return nil +} + +func (m *TransactionOptions) GetReadOnly() *TransactionOptions_ReadOnly { + if x, ok := m.GetMode().(*TransactionOptions_ReadOnly_); ok { + return x.ReadOnly + } + return nil +} + +func (m *TransactionOptions) GetReadWrite() *TransactionOptions_ReadWrite { + if x, ok := m.GetMode().(*TransactionOptions_ReadWrite_); ok { + return x.ReadWrite + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TransactionOptions) 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{}) { + return _TransactionOptions_OneofMarshaler, _TransactionOptions_OneofUnmarshaler, _TransactionOptions_OneofSizer, []interface{}{ + (*TransactionOptions_ReadOnly_)(nil), + (*TransactionOptions_ReadWrite_)(nil), + } +} + +func _TransactionOptions_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TransactionOptions) + // mode + switch x := m.Mode.(type) { + case *TransactionOptions_ReadOnly_: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadOnly); err != nil { + return err + } + case *TransactionOptions_ReadWrite_: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadWrite); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TransactionOptions.Mode has unexpected type %T", x) + } + return nil +} + +func _TransactionOptions_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TransactionOptions) + switch tag { + case 2: // mode.read_only + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TransactionOptions_ReadOnly) + err := b.DecodeMessage(msg) + m.Mode = &TransactionOptions_ReadOnly_{msg} + return true, err + case 3: // mode.read_write + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TransactionOptions_ReadWrite) + err := b.DecodeMessage(msg) + m.Mode = &TransactionOptions_ReadWrite_{msg} + return true, err + default: + return false, nil + } +} + +func _TransactionOptions_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TransactionOptions) + // mode + switch x := m.Mode.(type) { + case *TransactionOptions_ReadOnly_: + s := proto.Size(x.ReadOnly) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *TransactionOptions_ReadWrite_: + s := proto.Size(x.ReadWrite) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Options for a transaction that can be used to read and write documents. +type TransactionOptions_ReadWrite struct { + // An optional transaction to retry. + RetryTransaction []byte `protobuf:"bytes,1,opt,name=retry_transaction,json=retryTransaction,proto3" json:"retry_transaction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionOptions_ReadWrite) Reset() { *m = TransactionOptions_ReadWrite{} } +func (m *TransactionOptions_ReadWrite) String() string { return proto.CompactTextString(m) } +func (*TransactionOptions_ReadWrite) ProtoMessage() {} +func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) { + return fileDescriptor_common_d742b1674d6d5f16, []int{2, 0} +} +func (m *TransactionOptions_ReadWrite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionOptions_ReadWrite.Unmarshal(m, b) +} +func (m *TransactionOptions_ReadWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionOptions_ReadWrite.Marshal(b, m, deterministic) +} +func (dst *TransactionOptions_ReadWrite) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionOptions_ReadWrite.Merge(dst, src) +} +func (m *TransactionOptions_ReadWrite) XXX_Size() int { + return xxx_messageInfo_TransactionOptions_ReadWrite.Size(m) +} +func (m *TransactionOptions_ReadWrite) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionOptions_ReadWrite.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionOptions_ReadWrite proto.InternalMessageInfo + +func (m *TransactionOptions_ReadWrite) GetRetryTransaction() []byte { + if m != nil { + return m.RetryTransaction + } + return nil +} + +// Options for a transaction that can only be used to read documents. +type TransactionOptions_ReadOnly struct { + // The consistency mode for this transaction. If not set, defaults to strong + // consistency. + // + // Types that are valid to be assigned to ConsistencySelector: + // *TransactionOptions_ReadOnly_ReadTime + ConsistencySelector isTransactionOptions_ReadOnly_ConsistencySelector `protobuf_oneof:"consistency_selector"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionOptions_ReadOnly) Reset() { *m = TransactionOptions_ReadOnly{} } +func (m *TransactionOptions_ReadOnly) String() string { return proto.CompactTextString(m) } +func (*TransactionOptions_ReadOnly) ProtoMessage() {} +func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) { + return fileDescriptor_common_d742b1674d6d5f16, []int{2, 1} +} +func (m *TransactionOptions_ReadOnly) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionOptions_ReadOnly.Unmarshal(m, b) +} +func (m *TransactionOptions_ReadOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionOptions_ReadOnly.Marshal(b, m, deterministic) +} +func (dst *TransactionOptions_ReadOnly) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionOptions_ReadOnly.Merge(dst, src) +} +func (m *TransactionOptions_ReadOnly) XXX_Size() int { + return xxx_messageInfo_TransactionOptions_ReadOnly.Size(m) +} +func (m *TransactionOptions_ReadOnly) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionOptions_ReadOnly.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionOptions_ReadOnly proto.InternalMessageInfo + +type isTransactionOptions_ReadOnly_ConsistencySelector interface { + isTransactionOptions_ReadOnly_ConsistencySelector() +} + +type TransactionOptions_ReadOnly_ReadTime struct { + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3,oneof"` +} + +func (*TransactionOptions_ReadOnly_ReadTime) isTransactionOptions_ReadOnly_ConsistencySelector() {} + +func (m *TransactionOptions_ReadOnly) GetConsistencySelector() isTransactionOptions_ReadOnly_ConsistencySelector { + if m != nil { + return m.ConsistencySelector + } + return nil +} + +func (m *TransactionOptions_ReadOnly) GetReadTime() *timestamp.Timestamp { + if x, ok := m.GetConsistencySelector().(*TransactionOptions_ReadOnly_ReadTime); ok { + return x.ReadTime + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TransactionOptions_ReadOnly) 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{}) { + return _TransactionOptions_ReadOnly_OneofMarshaler, _TransactionOptions_ReadOnly_OneofUnmarshaler, _TransactionOptions_ReadOnly_OneofSizer, []interface{}{ + (*TransactionOptions_ReadOnly_ReadTime)(nil), + } +} + +func _TransactionOptions_ReadOnly_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TransactionOptions_ReadOnly) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *TransactionOptions_ReadOnly_ReadTime: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadTime); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TransactionOptions_ReadOnly.ConsistencySelector has unexpected type %T", x) + } + return nil +} + +func _TransactionOptions_ReadOnly_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TransactionOptions_ReadOnly) + switch tag { + case 2: // consistency_selector.read_time + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ConsistencySelector = &TransactionOptions_ReadOnly_ReadTime{msg} + return true, err + default: + return false, nil + } +} + +func _TransactionOptions_ReadOnly_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TransactionOptions_ReadOnly) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *TransactionOptions_ReadOnly_ReadTime: + s := proto.Size(x.ReadTime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +func init() { + proto.RegisterType((*DocumentMask)(nil), "google.firestore.v1.DocumentMask") + proto.RegisterType((*Precondition)(nil), "google.firestore.v1.Precondition") + proto.RegisterType((*TransactionOptions)(nil), "google.firestore.v1.TransactionOptions") + proto.RegisterType((*TransactionOptions_ReadWrite)(nil), "google.firestore.v1.TransactionOptions.ReadWrite") + proto.RegisterType((*TransactionOptions_ReadOnly)(nil), "google.firestore.v1.TransactionOptions.ReadOnly") +} + +func init() { + proto.RegisterFile("google/firestore/v1/common.proto", fileDescriptor_common_d742b1674d6d5f16) +} + +var fileDescriptor_common_d742b1674d6d5f16 = []byte{ + // 459 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xd1, 0x8a, 0xd3, 0x40, + 0x14, 0x6d, 0xba, 0x4b, 0x69, 0x6f, 0x8b, 0xac, 0x51, 0xb4, 0x06, 0x61, 0x4b, 0x9f, 0x0a, 0xc2, + 0xc4, 0xe8, 0x8b, 0xa2, 0xbe, 0xb4, 0xb2, 0xdb, 0x17, 0x69, 0x89, 0xcb, 0x0a, 0x52, 0x09, 0xb3, + 0xc9, 0x6d, 0x1c, 0x4c, 0xe6, 0x86, 0x99, 0xe9, 0x6a, 0x7e, 0x47, 0xf0, 0xc5, 0x4f, 0xf1, 0x13, + 0xfc, 0x1a, 0xc9, 0x24, 0x8d, 0x8a, 0x7d, 0x70, 0xdf, 0xe6, 0xde, 0x73, 0xcf, 0x39, 0xf7, 0x5c, + 0x06, 0x26, 0x29, 0x51, 0x9a, 0xa1, 0xbf, 0x15, 0x0a, 0xb5, 0x21, 0x85, 0xfe, 0x75, 0xe0, 0xc7, + 0x94, 0xe7, 0x24, 0x59, 0xa1, 0xc8, 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 0x0d, 0x01, 0xac, 0xe0, + 0x67, 0x25, 0x0c, 0x8e, 0x8f, 0xac, 0x62, 0x70, 0x13, 0xc5, 0x77, 0x15, 0x71, 0xd9, 0x09, 0xed, + 0x5e, 0xb6, 0xf0, 0x9e, 0xc1, 0xa0, 0x45, 0xdc, 0x47, 0x70, 0x5b, 0xa1, 0x51, 0x65, 0x64, 0x7e, + 0xf3, 0xed, 0xf9, 0x46, 0xe1, 0x89, 0x05, 0xfe, 0xd0, 0xf5, 0x3e, 0x40, 0x7f, 0xbf, 0xa5, 0xfb, + 0xbc, 0x89, 0xfa, 0xdf, 0x07, 0xb5, 0xa1, 0xec, 0x39, 0xef, 0xc1, 0xdd, 0x98, 0xa4, 0x16, 0xda, + 0xa0, 0x8c, 0xcb, 0x48, 0x63, 0x86, 0xb1, 0x21, 0x35, 0xef, 0xc1, 0x71, 0x4e, 0x09, 0xce, 0xbf, + 0x39, 0x70, 0x3f, 0xa6, 0xfc, 0x50, 0xcc, 0xf9, 0x70, 0x61, 0xbf, 0xe1, 0xba, 0x72, 0x58, 0x3b, + 0xef, 0x5f, 0x36, 0x33, 0x29, 0x65, 0x5c, 0xa6, 0x8c, 0x54, 0xea, 0xa7, 0x28, 0xad, 0xbf, 0x5f, + 0x43, 0xbc, 0x10, 0xfa, 0xaf, 0x8f, 0xfc, 0xa2, 0x2d, 0xbe, 0x76, 0x8f, 0xcf, 0x17, 0x67, 0x6f, + 0xbf, 0x77, 0x1f, 0x9c, 0xd7, 0x2a, 0x8b, 0x8c, 0x76, 0x09, 0x3b, 0x6b, 0xfd, 0x2e, 0x83, 0x1f, + 0x7b, 0x6c, 0x63, 0xb1, 0x4d, 0x8b, 0x6d, 0x2e, 0x83, 0xab, 0x9e, 0xf5, 0x79, 0xfa, 0x2b, 0x00, + 0x00, 0xff, 0xff, 0x6e, 0x90, 0xee, 0x09, 0x2f, 0x03, 0x00, 0x00, +} diff --git a/googleapis/firestore/v1/document.pb.go b/googleapis/firestore/v1/document.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..9a9de6f141cc1ecd04c72cb9860960de18ce3444 --- /dev/null +++ b/googleapis/firestore/v1/document.pb.go @@ -0,0 +1,684 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/v1/document.proto + +package firestore // import "google.golang.org/genproto/googleapis/firestore/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _struct "github.com/golang/protobuf/ptypes/struct" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import _ "google.golang.org/genproto/googleapis/api/annotations" +import latlng "google.golang.org/genproto/googleapis/type/latlng" + +// 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 + +// A Firestore document. +// +// Must not exceed 1 MiB - 4 bytes. +type Document struct { + // The resource name of the document, for example + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The document's fields. + // + // The map keys represent field names. + // + // A simple field name contains only characters `a` to `z`, `A` to `Z`, + // `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + // `foo_bar_17`. + // + // Field names matching the regular expression `__.*__` are reserved. Reserved + // field names are forbidden except in certain documented contexts. The map + // keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + // empty. + // + // Field paths may be used in other contexts to refer to structured fields + // defined here. For `map_value`, the field path is represented by the simple + // or quoted field names of the containing fields, delimited by `.`. For + // example, the structured field + // `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + // represented by the field path `foo.x&y`. + // + // Within a field path, a quoted field name starts and ends with `` ` `` and + // may contain any character. Some characters, including `` ` ``, must be + // escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + // `` `bak\`tik` `` represents `` bak`tik ``. + Fields map[string]*Value `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Output only. The time at which the document was created. + // + // This value increases monotonically when a document is deleted then + // recreated. It can also be compared to values from other documents and + // the `read_time` of a query. + CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The time at which the document was last changed. + // + // This value is initially set to the `create_time` then increases + // monotonically with each change to the document. It can also be + // compared to values from other documents and the `read_time` of a query. + UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Document) Reset() { *m = Document{} } +func (m *Document) String() string { return proto.CompactTextString(m) } +func (*Document) ProtoMessage() {} +func (*Document) Descriptor() ([]byte, []int) { + return fileDescriptor_document_29c6fb566b77c4b5, []int{0} +} +func (m *Document) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Document.Unmarshal(m, b) +} +func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Document.Marshal(b, m, deterministic) +} +func (dst *Document) XXX_Merge(src proto.Message) { + xxx_messageInfo_Document.Merge(dst, src) +} +func (m *Document) XXX_Size() int { + return xxx_messageInfo_Document.Size(m) +} +func (m *Document) XXX_DiscardUnknown() { + xxx_messageInfo_Document.DiscardUnknown(m) +} + +var xxx_messageInfo_Document proto.InternalMessageInfo + +func (m *Document) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Document) GetFields() map[string]*Value { + if m != nil { + return m.Fields + } + return nil +} + +func (m *Document) GetCreateTime() *timestamp.Timestamp { + if m != nil { + return m.CreateTime + } + return nil +} + +func (m *Document) GetUpdateTime() *timestamp.Timestamp { + if m != nil { + return m.UpdateTime + } + return nil +} + +// A message that can hold any of the supported value types. +type Value struct { + // Must have a value set. + // + // Types that are valid to be assigned to ValueType: + // *Value_NullValue + // *Value_BooleanValue + // *Value_IntegerValue + // *Value_DoubleValue + // *Value_TimestampValue + // *Value_StringValue + // *Value_BytesValue + // *Value_ReferenceValue + // *Value_GeoPointValue + // *Value_ArrayValue + // *Value_MapValue + ValueType isValue_ValueType `protobuf_oneof:"value_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Value) Reset() { *m = Value{} } +func (m *Value) String() string { return proto.CompactTextString(m) } +func (*Value) ProtoMessage() {} +func (*Value) Descriptor() ([]byte, []int) { + return fileDescriptor_document_29c6fb566b77c4b5, []int{1} +} +func (m *Value) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Value.Unmarshal(m, b) +} +func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Value.Marshal(b, m, deterministic) +} +func (dst *Value) XXX_Merge(src proto.Message) { + xxx_messageInfo_Value.Merge(dst, src) +} +func (m *Value) XXX_Size() int { + return xxx_messageInfo_Value.Size(m) +} +func (m *Value) XXX_DiscardUnknown() { + xxx_messageInfo_Value.DiscardUnknown(m) +} + +var xxx_messageInfo_Value proto.InternalMessageInfo + +type isValue_ValueType interface { + isValue_ValueType() +} + +type Value_NullValue struct { + NullValue _struct.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` +} + +type Value_BooleanValue struct { + BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"` +} + +type Value_IntegerValue struct { + IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"` +} + +type Value_DoubleValue struct { + DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"` +} + +type Value_TimestampValue struct { + TimestampValue *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` +} + +type Value_StringValue struct { + StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Value_BytesValue struct { + BytesValue []byte `protobuf:"bytes,18,opt,name=bytes_value,json=bytesValue,proto3,oneof"` +} + +type Value_ReferenceValue struct { + ReferenceValue string `protobuf:"bytes,5,opt,name=reference_value,json=referenceValue,proto3,oneof"` +} + +type Value_GeoPointValue struct { + GeoPointValue *latlng.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"` +} + +type Value_ArrayValue struct { + ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof"` +} + +type Value_MapValue struct { + MapValue *MapValue `protobuf:"bytes,6,opt,name=map_value,json=mapValue,proto3,oneof"` +} + +func (*Value_NullValue) isValue_ValueType() {} + +func (*Value_BooleanValue) isValue_ValueType() {} + +func (*Value_IntegerValue) isValue_ValueType() {} + +func (*Value_DoubleValue) isValue_ValueType() {} + +func (*Value_TimestampValue) isValue_ValueType() {} + +func (*Value_StringValue) isValue_ValueType() {} + +func (*Value_BytesValue) isValue_ValueType() {} + +func (*Value_ReferenceValue) isValue_ValueType() {} + +func (*Value_GeoPointValue) isValue_ValueType() {} + +func (*Value_ArrayValue) isValue_ValueType() {} + +func (*Value_MapValue) isValue_ValueType() {} + +func (m *Value) GetValueType() isValue_ValueType { + if m != nil { + return m.ValueType + } + return nil +} + +func (m *Value) GetNullValue() _struct.NullValue { + if x, ok := m.GetValueType().(*Value_NullValue); ok { + return x.NullValue + } + return _struct.NullValue_NULL_VALUE +} + +func (m *Value) GetBooleanValue() bool { + if x, ok := m.GetValueType().(*Value_BooleanValue); ok { + return x.BooleanValue + } + return false +} + +func (m *Value) GetIntegerValue() int64 { + if x, ok := m.GetValueType().(*Value_IntegerValue); ok { + return x.IntegerValue + } + return 0 +} + +func (m *Value) GetDoubleValue() float64 { + if x, ok := m.GetValueType().(*Value_DoubleValue); ok { + return x.DoubleValue + } + return 0 +} + +func (m *Value) GetTimestampValue() *timestamp.Timestamp { + if x, ok := m.GetValueType().(*Value_TimestampValue); ok { + return x.TimestampValue + } + return nil +} + +func (m *Value) GetStringValue() string { + if x, ok := m.GetValueType().(*Value_StringValue); ok { + return x.StringValue + } + return "" +} + +func (m *Value) GetBytesValue() []byte { + if x, ok := m.GetValueType().(*Value_BytesValue); ok { + return x.BytesValue + } + return nil +} + +func (m *Value) GetReferenceValue() string { + if x, ok := m.GetValueType().(*Value_ReferenceValue); ok { + return x.ReferenceValue + } + return "" +} + +func (m *Value) GetGeoPointValue() *latlng.LatLng { + if x, ok := m.GetValueType().(*Value_GeoPointValue); ok { + return x.GeoPointValue + } + return nil +} + +func (m *Value) GetArrayValue() *ArrayValue { + if x, ok := m.GetValueType().(*Value_ArrayValue); ok { + return x.ArrayValue + } + return nil +} + +func (m *Value) GetMapValue() *MapValue { + if x, ok := m.GetValueType().(*Value_MapValue); ok { + return x.MapValue + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Value) 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{}) { + return _Value_OneofMarshaler, _Value_OneofUnmarshaler, _Value_OneofSizer, []interface{}{ + (*Value_NullValue)(nil), + (*Value_BooleanValue)(nil), + (*Value_IntegerValue)(nil), + (*Value_DoubleValue)(nil), + (*Value_TimestampValue)(nil), + (*Value_StringValue)(nil), + (*Value_BytesValue)(nil), + (*Value_ReferenceValue)(nil), + (*Value_GeoPointValue)(nil), + (*Value_ArrayValue)(nil), + (*Value_MapValue)(nil), + } +} + +func _Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Value) + // value_type + switch x := m.ValueType.(type) { + case *Value_NullValue: + b.EncodeVarint(11<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.NullValue)) + case *Value_BooleanValue: + t := uint64(0) + if x.BooleanValue { + t = 1 + } + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(t) + case *Value_IntegerValue: + b.EncodeVarint(2<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.IntegerValue)) + case *Value_DoubleValue: + b.EncodeVarint(3<<3 | proto.WireFixed64) + b.EncodeFixed64(math.Float64bits(x.DoubleValue)) + case *Value_TimestampValue: + b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TimestampValue); err != nil { + return err + } + case *Value_StringValue: + b.EncodeVarint(17<<3 | proto.WireBytes) + b.EncodeStringBytes(x.StringValue) + case *Value_BytesValue: + b.EncodeVarint(18<<3 | proto.WireBytes) + b.EncodeRawBytes(x.BytesValue) + case *Value_ReferenceValue: + b.EncodeVarint(5<<3 | proto.WireBytes) + b.EncodeStringBytes(x.ReferenceValue) + case *Value_GeoPointValue: + b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GeoPointValue); err != nil { + return err + } + case *Value_ArrayValue: + b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ArrayValue); err != nil { + return err + } + case *Value_MapValue: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.MapValue); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Value.ValueType has unexpected type %T", x) + } + return nil +} + +func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Value) + switch tag { + case 11: // value_type.null_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ValueType = &Value_NullValue{_struct.NullValue(x)} + return true, err + case 1: // value_type.boolean_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ValueType = &Value_BooleanValue{x != 0} + return true, err + case 2: // value_type.integer_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ValueType = &Value_IntegerValue{int64(x)} + return true, err + case 3: // value_type.double_value + if wire != proto.WireFixed64 { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeFixed64() + m.ValueType = &Value_DoubleValue{math.Float64frombits(x)} + return true, err + case 10: // value_type.timestamp_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ValueType = &Value_TimestampValue{msg} + return true, err + case 17: // value_type.string_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ValueType = &Value_StringValue{x} + return true, err + case 18: // value_type.bytes_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ValueType = &Value_BytesValue{x} + return true, err + case 5: // value_type.reference_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ValueType = &Value_ReferenceValue{x} + return true, err + case 8: // value_type.geo_point_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(latlng.LatLng) + err := b.DecodeMessage(msg) + m.ValueType = &Value_GeoPointValue{msg} + return true, err + case 9: // value_type.array_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ArrayValue) + err := b.DecodeMessage(msg) + m.ValueType = &Value_ArrayValue{msg} + return true, err + case 6: // value_type.map_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MapValue) + err := b.DecodeMessage(msg) + m.ValueType = &Value_MapValue{msg} + return true, err + default: + return false, nil + } +} + +func _Value_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Value) + // value_type + switch x := m.ValueType.(type) { + case *Value_NullValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.NullValue)) + case *Value_BooleanValue: + n += 1 // tag and wire + n += 1 + case *Value_IntegerValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.IntegerValue)) + case *Value_DoubleValue: + n += 1 // tag and wire + n += 8 + case *Value_TimestampValue: + s := proto.Size(x.TimestampValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Value_StringValue: + n += 2 // tag and wire + n += proto.SizeVarint(uint64(len(x.StringValue))) + n += len(x.StringValue) + case *Value_BytesValue: + n += 2 // tag and wire + n += proto.SizeVarint(uint64(len(x.BytesValue))) + n += len(x.BytesValue) + case *Value_ReferenceValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.ReferenceValue))) + n += len(x.ReferenceValue) + case *Value_GeoPointValue: + s := proto.Size(x.GeoPointValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Value_ArrayValue: + s := proto.Size(x.ArrayValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Value_MapValue: + s := proto.Size(x.MapValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// An array value. +type ArrayValue struct { + // Values in the array. + Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArrayValue) Reset() { *m = ArrayValue{} } +func (m *ArrayValue) String() string { return proto.CompactTextString(m) } +func (*ArrayValue) ProtoMessage() {} +func (*ArrayValue) Descriptor() ([]byte, []int) { + return fileDescriptor_document_29c6fb566b77c4b5, []int{2} +} +func (m *ArrayValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArrayValue.Unmarshal(m, b) +} +func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArrayValue.Marshal(b, m, deterministic) +} +func (dst *ArrayValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArrayValue.Merge(dst, src) +} +func (m *ArrayValue) XXX_Size() int { + return xxx_messageInfo_ArrayValue.Size(m) +} +func (m *ArrayValue) XXX_DiscardUnknown() { + xxx_messageInfo_ArrayValue.DiscardUnknown(m) +} + +var xxx_messageInfo_ArrayValue proto.InternalMessageInfo + +func (m *ArrayValue) GetValues() []*Value { + if m != nil { + return m.Values + } + return nil +} + +// A map value. +type MapValue struct { + // The map's fields. + // + // The map keys represent field names. Field names matching the regular + // expression `__.*__` are reserved. Reserved field names are forbidden except + // in certain documented contexts. The map keys, represented as UTF-8, must + // not exceed 1,500 bytes and cannot be empty. + Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MapValue) Reset() { *m = MapValue{} } +func (m *MapValue) String() string { return proto.CompactTextString(m) } +func (*MapValue) ProtoMessage() {} +func (*MapValue) Descriptor() ([]byte, []int) { + return fileDescriptor_document_29c6fb566b77c4b5, []int{3} +} +func (m *MapValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MapValue.Unmarshal(m, b) +} +func (m *MapValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MapValue.Marshal(b, m, deterministic) +} +func (dst *MapValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapValue.Merge(dst, src) +} +func (m *MapValue) XXX_Size() int { + return xxx_messageInfo_MapValue.Size(m) +} +func (m *MapValue) XXX_DiscardUnknown() { + xxx_messageInfo_MapValue.DiscardUnknown(m) +} + +var xxx_messageInfo_MapValue proto.InternalMessageInfo + +func (m *MapValue) GetFields() map[string]*Value { + if m != nil { + return m.Fields + } + return nil +} + +func init() { + proto.RegisterType((*Document)(nil), "google.firestore.v1.Document") + proto.RegisterMapType((map[string]*Value)(nil), "google.firestore.v1.Document.FieldsEntry") + proto.RegisterType((*Value)(nil), "google.firestore.v1.Value") + proto.RegisterType((*ArrayValue)(nil), "google.firestore.v1.ArrayValue") + proto.RegisterType((*MapValue)(nil), "google.firestore.v1.MapValue") + proto.RegisterMapType((map[string]*Value)(nil), "google.firestore.v1.MapValue.FieldsEntry") +} + +func init() { + proto.RegisterFile("google/firestore/v1/document.proto", fileDescriptor_document_29c6fb566b77c4b5) +} + +var fileDescriptor_document_29c6fb566b77c4b5 = []byte{ + // 649 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x6e, 0xd3, 0x4c, + 0x14, 0xc5, 0xe3, 0x24, 0x8d, 0x92, 0xeb, 0xb4, 0xfd, 0x3e, 0x77, 0x41, 0x88, 0x40, 0x0d, 0x41, + 0x48, 0xe9, 0xc6, 0x26, 0x65, 0x83, 0x68, 0x91, 0x68, 0x4a, 0xdb, 0x2c, 0x0a, 0xaa, 0x0c, 0x74, + 0x81, 0x2a, 0x45, 0x93, 0x64, 0x62, 0x59, 0x8c, 0x67, 0xac, 0xf1, 0xb8, 0x52, 0x5e, 0x07, 0x21, + 0x21, 0xb1, 0xe4, 0x09, 0x58, 0xf3, 0x54, 0x68, 0xfe, 0xb6, 0x41, 0x51, 0xbb, 0x62, 0xe7, 0xb9, + 0xf7, 0x77, 0xce, 0x3d, 0x1e, 0xcf, 0x18, 0xfa, 0x09, 0x63, 0x09, 0xc1, 0xd1, 0x22, 0xe5, 0xb8, + 0x10, 0x8c, 0xe3, 0xe8, 0x7a, 0x18, 0xcd, 0xd9, 0xac, 0xcc, 0x30, 0x15, 0x61, 0xce, 0x99, 0x60, + 0xc1, 0x8e, 0x66, 0x42, 0xc7, 0x84, 0xd7, 0xc3, 0xee, 0x23, 0x23, 0x44, 0x79, 0x1a, 0x21, 0x4a, + 0x99, 0x40, 0x22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0x76, 0xdb, + 0x1a, 0xca, 0xe1, 0xf1, 0x5a, 0x87, 0x77, 0x28, 0xb7, 0xfa, 0x66, 0x66, 0x9e, 0x47, 0x6d, 0x00, + 0xa5, 0x9c, 0xc8, 0x9c, 0xfd, 0x37, 0x00, 0x37, 0x73, 0x82, 0x7d, 0x68, 0xa8, 0x5e, 0xd1, 0xf1, + 0xd4, 0x25, 0xbb, 0xeb, 0x1c, 0x1a, 0xb2, 0xff, 0xcd, 0x83, 0xa6, 0x1d, 0x74, 0xeb, 0x96, 0x7a, + 0x77, 0xdc, 0x52, 0x8b, 0xaf, 0xbb, 0xa5, 0xff, 0xe8, 0xae, 0x8c, 0xbe, 0x7b, 0xf0, 0x60, 0xc6, + 0xb2, 0x75, 0xf0, 0x68, 0xd3, 0xfe, 0x36, 0x2e, 0xe4, 0xa1, 0xbb, 0xf0, 0x3e, 0x1f, 0x1a, 0x2a, + 0x61, 0x04, 0xd1, 0x24, 0x64, 0x3c, 0x89, 0x12, 0x4c, 0xd5, 0x91, 0x8c, 0x74, 0x0b, 0xe5, 0x69, + 0xb1, 0xf2, 0x73, 0x3d, 0x70, 0x8b, 0xaf, 0xd5, 0xfa, 0xd9, 0xf1, 0xe9, 0x87, 0x1f, 0xd5, 0x87, + 0x67, 0xda, 0xe5, 0x98, 0xb0, 0x72, 0x1e, 0x9e, 0xba, 0x89, 0x97, 0xc3, 0xdf, 0xb6, 0x77, 0xa5, + 0x7a, 0x57, 0xae, 0x77, 0x75, 0x39, 0x9c, 0x36, 0xd4, 0x9c, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x36, 0xf3, 0xbc, 0x13, 0xc3, 0x05, 0x00, 0x00, +} diff --git a/googleapis/firestore/v1/firestore.pb.go b/googleapis/firestore/v1/firestore.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..1865a1989ea903bb27de8af5d5d3b8493c0ca641 --- /dev/null +++ b/googleapis/firestore/v1/firestore.pb.go @@ -0,0 +1,3721 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/v1/firestore.proto + +package firestore // import "google.golang.org/genproto/googleapis/firestore/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import empty "github.com/golang/protobuf/ptypes/empty" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import _ "google.golang.org/genproto/googleapis/api/annotations" +import status "google.golang.org/genproto/googleapis/rpc/status" + +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 change. +type TargetChange_TargetChangeType int32 + +const ( + // No change has occurred. Used only to send an updated `resume_token`. + TargetChange_NO_CHANGE TargetChange_TargetChangeType = 0 + // The targets have been added. + TargetChange_ADD TargetChange_TargetChangeType = 1 + // The targets have been removed. + TargetChange_REMOVE TargetChange_TargetChangeType = 2 + // The targets reflect all changes committed before the targets were added + // to the stream. + // + // This will be sent after or with a `read_time` that is greater than or + // equal to the time at which the targets were added. + // + // Listeners can wait for this change if read-after-write semantics + // are desired. + TargetChange_CURRENT TargetChange_TargetChangeType = 3 + // The targets have been reset, and a new initial state for the targets + // will be returned in subsequent changes. + // + // After the initial state is complete, `CURRENT` will be returned even + // if the target was previously indicated to be `CURRENT`. + TargetChange_RESET TargetChange_TargetChangeType = 4 +) + +var TargetChange_TargetChangeType_name = map[int32]string{ + 0: "NO_CHANGE", + 1: "ADD", + 2: "REMOVE", + 3: "CURRENT", + 4: "RESET", +} +var TargetChange_TargetChangeType_value = map[string]int32{ + "NO_CHANGE": 0, + "ADD": 1, + "REMOVE": 2, + "CURRENT": 3, + "RESET": 4, +} + +func (x TargetChange_TargetChangeType) String() string { + return proto.EnumName(TargetChange_TargetChangeType_name, int32(x)) +} +func (TargetChange_TargetChangeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{20, 0} +} + +// The request for [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument]. +type GetDocumentRequest struct { + // The resource name of the Document to get. In the format: + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The fields to return. If not set, returns all fields. + // + // If the document has a field that is not present in this mask, that field + // will not be returned in the response. + Mask *DocumentMask `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"` + // The consistency mode for this transaction. + // If not set, defaults to strong consistency. + // + // Types that are valid to be assigned to ConsistencySelector: + // *GetDocumentRequest_Transaction + // *GetDocumentRequest_ReadTime + ConsistencySelector isGetDocumentRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDocumentRequest) Reset() { *m = GetDocumentRequest{} } +func (m *GetDocumentRequest) String() string { return proto.CompactTextString(m) } +func (*GetDocumentRequest) ProtoMessage() {} +func (*GetDocumentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{0} +} +func (m *GetDocumentRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDocumentRequest.Unmarshal(m, b) +} +func (m *GetDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDocumentRequest.Marshal(b, m, deterministic) +} +func (dst *GetDocumentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDocumentRequest.Merge(dst, src) +} +func (m *GetDocumentRequest) XXX_Size() int { + return xxx_messageInfo_GetDocumentRequest.Size(m) +} +func (m *GetDocumentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDocumentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDocumentRequest proto.InternalMessageInfo + +func (m *GetDocumentRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *GetDocumentRequest) GetMask() *DocumentMask { + if m != nil { + return m.Mask + } + return nil +} + +type isGetDocumentRequest_ConsistencySelector interface { + isGetDocumentRequest_ConsistencySelector() +} + +type GetDocumentRequest_Transaction struct { + Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3,oneof"` +} + +type GetDocumentRequest_ReadTime struct { + ReadTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=read_time,json=readTime,proto3,oneof"` +} + +func (*GetDocumentRequest_Transaction) isGetDocumentRequest_ConsistencySelector() {} + +func (*GetDocumentRequest_ReadTime) isGetDocumentRequest_ConsistencySelector() {} + +func (m *GetDocumentRequest) GetConsistencySelector() isGetDocumentRequest_ConsistencySelector { + if m != nil { + return m.ConsistencySelector + } + return nil +} + +func (m *GetDocumentRequest) GetTransaction() []byte { + if x, ok := m.GetConsistencySelector().(*GetDocumentRequest_Transaction); ok { + return x.Transaction + } + return nil +} + +func (m *GetDocumentRequest) GetReadTime() *timestamp.Timestamp { + if x, ok := m.GetConsistencySelector().(*GetDocumentRequest_ReadTime); ok { + return x.ReadTime + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*GetDocumentRequest) 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{}) { + return _GetDocumentRequest_OneofMarshaler, _GetDocumentRequest_OneofUnmarshaler, _GetDocumentRequest_OneofSizer, []interface{}{ + (*GetDocumentRequest_Transaction)(nil), + (*GetDocumentRequest_ReadTime)(nil), + } +} + +func _GetDocumentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*GetDocumentRequest) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *GetDocumentRequest_Transaction: + b.EncodeVarint(3<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Transaction) + case *GetDocumentRequest_ReadTime: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadTime); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("GetDocumentRequest.ConsistencySelector has unexpected type %T", x) + } + return nil +} + +func _GetDocumentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*GetDocumentRequest) + switch tag { + case 3: // consistency_selector.transaction + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ConsistencySelector = &GetDocumentRequest_Transaction{x} + return true, err + case 5: // consistency_selector.read_time + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ConsistencySelector = &GetDocumentRequest_ReadTime{msg} + return true, err + default: + return false, nil + } +} + +func _GetDocumentRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*GetDocumentRequest) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *GetDocumentRequest_Transaction: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Transaction))) + n += len(x.Transaction) + case *GetDocumentRequest_ReadTime: + s := proto.Size(x.ReadTime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The request for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments]. +type ListDocumentsRequest struct { + // The parent resource name. In the format: + // `projects/{project_id}/databases/{database_id}/documents` or + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + // For example: + // `projects/my-project/databases/my-database/documents` or + // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The collection ID, relative to `parent`, to list. For example: `chatrooms` + // or `messages`. + CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` + // The maximum number of documents to return. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // The `next_page_token` value returned from a previous List request, if any. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // The order to sort results by. For example: `priority desc, name`. + OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // The fields to return. If not set, returns all fields. + // + // If a document has a field that is not present in this mask, that field + // will not be returned in the response. + Mask *DocumentMask `protobuf:"bytes,7,opt,name=mask,proto3" json:"mask,omitempty"` + // The consistency mode for this transaction. + // If not set, defaults to strong consistency. + // + // Types that are valid to be assigned to ConsistencySelector: + // *ListDocumentsRequest_Transaction + // *ListDocumentsRequest_ReadTime + ConsistencySelector isListDocumentsRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"` + // If the list should show missing documents. A missing document is a + // document that does not exist but has sub-documents. These documents will + // be returned with a key but will not have fields, [Document.create_time][google.firestore.v1.Document.create_time], + // or [Document.update_time][google.firestore.v1.Document.update_time] set. + // + // Requests with `show_missing` may not specify `where` or + // `order_by`. + ShowMissing bool `protobuf:"varint,12,opt,name=show_missing,json=showMissing,proto3" json:"show_missing,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} } +func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) } +func (*ListDocumentsRequest) ProtoMessage() {} +func (*ListDocumentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{1} +} +func (m *ListDocumentsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDocumentsRequest.Unmarshal(m, b) +} +func (m *ListDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDocumentsRequest.Marshal(b, m, deterministic) +} +func (dst *ListDocumentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDocumentsRequest.Merge(dst, src) +} +func (m *ListDocumentsRequest) XXX_Size() int { + return xxx_messageInfo_ListDocumentsRequest.Size(m) +} +func (m *ListDocumentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListDocumentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDocumentsRequest proto.InternalMessageInfo + +func (m *ListDocumentsRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *ListDocumentsRequest) GetCollectionId() string { + if m != nil { + return m.CollectionId + } + return "" +} + +func (m *ListDocumentsRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListDocumentsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +func (m *ListDocumentsRequest) GetOrderBy() string { + if m != nil { + return m.OrderBy + } + return "" +} + +func (m *ListDocumentsRequest) GetMask() *DocumentMask { + if m != nil { + return m.Mask + } + return nil +} + +type isListDocumentsRequest_ConsistencySelector interface { + isListDocumentsRequest_ConsistencySelector() +} + +type ListDocumentsRequest_Transaction struct { + Transaction []byte `protobuf:"bytes,8,opt,name=transaction,proto3,oneof"` +} + +type ListDocumentsRequest_ReadTime struct { + ReadTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=read_time,json=readTime,proto3,oneof"` +} + +func (*ListDocumentsRequest_Transaction) isListDocumentsRequest_ConsistencySelector() {} + +func (*ListDocumentsRequest_ReadTime) isListDocumentsRequest_ConsistencySelector() {} + +func (m *ListDocumentsRequest) GetConsistencySelector() isListDocumentsRequest_ConsistencySelector { + if m != nil { + return m.ConsistencySelector + } + return nil +} + +func (m *ListDocumentsRequest) GetTransaction() []byte { + if x, ok := m.GetConsistencySelector().(*ListDocumentsRequest_Transaction); ok { + return x.Transaction + } + return nil +} + +func (m *ListDocumentsRequest) GetReadTime() *timestamp.Timestamp { + if x, ok := m.GetConsistencySelector().(*ListDocumentsRequest_ReadTime); ok { + return x.ReadTime + } + return nil +} + +func (m *ListDocumentsRequest) GetShowMissing() bool { + if m != nil { + return m.ShowMissing + } + return false +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ListDocumentsRequest) 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{}) { + return _ListDocumentsRequest_OneofMarshaler, _ListDocumentsRequest_OneofUnmarshaler, _ListDocumentsRequest_OneofSizer, []interface{}{ + (*ListDocumentsRequest_Transaction)(nil), + (*ListDocumentsRequest_ReadTime)(nil), + } +} + +func _ListDocumentsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ListDocumentsRequest) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *ListDocumentsRequest_Transaction: + b.EncodeVarint(8<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Transaction) + case *ListDocumentsRequest_ReadTime: + b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadTime); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ListDocumentsRequest.ConsistencySelector has unexpected type %T", x) + } + return nil +} + +func _ListDocumentsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ListDocumentsRequest) + switch tag { + case 8: // consistency_selector.transaction + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ConsistencySelector = &ListDocumentsRequest_Transaction{x} + return true, err + case 10: // consistency_selector.read_time + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ConsistencySelector = &ListDocumentsRequest_ReadTime{msg} + return true, err + default: + return false, nil + } +} + +func _ListDocumentsRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ListDocumentsRequest) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *ListDocumentsRequest_Transaction: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Transaction))) + n += len(x.Transaction) + case *ListDocumentsRequest_ReadTime: + s := proto.Size(x.ReadTime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The response for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments]. +type ListDocumentsResponse struct { + // The Documents found. + Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"` + // The next page token. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} } +func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) } +func (*ListDocumentsResponse) ProtoMessage() {} +func (*ListDocumentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{2} +} +func (m *ListDocumentsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDocumentsResponse.Unmarshal(m, b) +} +func (m *ListDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDocumentsResponse.Marshal(b, m, deterministic) +} +func (dst *ListDocumentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDocumentsResponse.Merge(dst, src) +} +func (m *ListDocumentsResponse) XXX_Size() int { + return xxx_messageInfo_ListDocumentsResponse.Size(m) +} +func (m *ListDocumentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListDocumentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDocumentsResponse proto.InternalMessageInfo + +func (m *ListDocumentsResponse) GetDocuments() []*Document { + if m != nil { + return m.Documents + } + return nil +} + +func (m *ListDocumentsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +// The request for [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument]. +type CreateDocumentRequest struct { + // The parent resource. For example: + // `projects/{project_id}/databases/{database_id}/documents` or + // `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The collection ID, relative to `parent`, to list. For example: `chatrooms`. + CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` + // The client-assigned document ID to use for this document. + // + // Optional. If not specified, an ID will be assigned by the service. + DocumentId string `protobuf:"bytes,3,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + // The document to create. `name` must not be set. + Document *Document `protobuf:"bytes,4,opt,name=document,proto3" json:"document,omitempty"` + // The fields to return. If not set, returns all fields. + // + // If the document has a field that is not present in this mask, that field + // will not be returned in the response. + Mask *DocumentMask `protobuf:"bytes,5,opt,name=mask,proto3" json:"mask,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDocumentRequest) Reset() { *m = CreateDocumentRequest{} } +func (m *CreateDocumentRequest) String() string { return proto.CompactTextString(m) } +func (*CreateDocumentRequest) ProtoMessage() {} +func (*CreateDocumentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{3} +} +func (m *CreateDocumentRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDocumentRequest.Unmarshal(m, b) +} +func (m *CreateDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDocumentRequest.Marshal(b, m, deterministic) +} +func (dst *CreateDocumentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDocumentRequest.Merge(dst, src) +} +func (m *CreateDocumentRequest) XXX_Size() int { + return xxx_messageInfo_CreateDocumentRequest.Size(m) +} +func (m *CreateDocumentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDocumentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDocumentRequest proto.InternalMessageInfo + +func (m *CreateDocumentRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *CreateDocumentRequest) GetCollectionId() string { + if m != nil { + return m.CollectionId + } + return "" +} + +func (m *CreateDocumentRequest) GetDocumentId() string { + if m != nil { + return m.DocumentId + } + return "" +} + +func (m *CreateDocumentRequest) GetDocument() *Document { + if m != nil { + return m.Document + } + return nil +} + +func (m *CreateDocumentRequest) GetMask() *DocumentMask { + if m != nil { + return m.Mask + } + return nil +} + +// The request for [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument]. +type UpdateDocumentRequest struct { + // The updated document. + // Creates the document if it does not already exist. + Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` + // The fields to update. + // None of the field paths in the mask may contain a reserved name. + // + // If the document exists on the server and has fields not referenced in the + // mask, they are left unchanged. + // Fields referenced in the mask, but not present in the input document, are + // deleted from the document on the server. + UpdateMask *DocumentMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // The fields to return. If not set, returns all fields. + // + // If the document has a field that is not present in this mask, that field + // will not be returned in the response. + Mask *DocumentMask `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"` + // An optional precondition on the document. + // The request will fail if this is set and not met by the target document. + CurrentDocument *Precondition `protobuf:"bytes,4,opt,name=current_document,json=currentDocument,proto3" json:"current_document,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateDocumentRequest) Reset() { *m = UpdateDocumentRequest{} } +func (m *UpdateDocumentRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateDocumentRequest) ProtoMessage() {} +func (*UpdateDocumentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{4} +} +func (m *UpdateDocumentRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateDocumentRequest.Unmarshal(m, b) +} +func (m *UpdateDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateDocumentRequest.Marshal(b, m, deterministic) +} +func (dst *UpdateDocumentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateDocumentRequest.Merge(dst, src) +} +func (m *UpdateDocumentRequest) XXX_Size() int { + return xxx_messageInfo_UpdateDocumentRequest.Size(m) +} +func (m *UpdateDocumentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateDocumentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateDocumentRequest proto.InternalMessageInfo + +func (m *UpdateDocumentRequest) GetDocument() *Document { + if m != nil { + return m.Document + } + return nil +} + +func (m *UpdateDocumentRequest) GetUpdateMask() *DocumentMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *UpdateDocumentRequest) GetMask() *DocumentMask { + if m != nil { + return m.Mask + } + return nil +} + +func (m *UpdateDocumentRequest) GetCurrentDocument() *Precondition { + if m != nil { + return m.CurrentDocument + } + return nil +} + +// The request for [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument]. +type DeleteDocumentRequest struct { + // The resource name of the Document to delete. In the format: + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // An optional precondition on the document. + // The request will fail if this is set and not met by the target document. + CurrentDocument *Precondition `protobuf:"bytes,2,opt,name=current_document,json=currentDocument,proto3" json:"current_document,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} } +func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteDocumentRequest) ProtoMessage() {} +func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{5} +} +func (m *DeleteDocumentRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteDocumentRequest.Unmarshal(m, b) +} +func (m *DeleteDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteDocumentRequest.Marshal(b, m, deterministic) +} +func (dst *DeleteDocumentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteDocumentRequest.Merge(dst, src) +} +func (m *DeleteDocumentRequest) XXX_Size() int { + return xxx_messageInfo_DeleteDocumentRequest.Size(m) +} +func (m *DeleteDocumentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteDocumentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteDocumentRequest proto.InternalMessageInfo + +func (m *DeleteDocumentRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DeleteDocumentRequest) GetCurrentDocument() *Precondition { + if m != nil { + return m.CurrentDocument + } + return nil +} + +// The request for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments]. +type BatchGetDocumentsRequest struct { + // The database name. In the format: + // `projects/{project_id}/databases/{database_id}`. + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + // The names of the documents to retrieve. In the format: + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + // The request will fail if any of the document is not a child resource of the + // given `database`. Duplicate names will be elided. + Documents []string `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"` + // The fields to return. If not set, returns all fields. + // + // If a document has a field that is not present in this mask, that field will + // not be returned in the response. + Mask *DocumentMask `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"` + // The consistency mode for this transaction. + // If not set, defaults to strong consistency. + // + // Types that are valid to be assigned to ConsistencySelector: + // *BatchGetDocumentsRequest_Transaction + // *BatchGetDocumentsRequest_NewTransaction + // *BatchGetDocumentsRequest_ReadTime + ConsistencySelector isBatchGetDocumentsRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchGetDocumentsRequest) Reset() { *m = BatchGetDocumentsRequest{} } +func (m *BatchGetDocumentsRequest) String() string { return proto.CompactTextString(m) } +func (*BatchGetDocumentsRequest) ProtoMessage() {} +func (*BatchGetDocumentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{6} +} +func (m *BatchGetDocumentsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BatchGetDocumentsRequest.Unmarshal(m, b) +} +func (m *BatchGetDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BatchGetDocumentsRequest.Marshal(b, m, deterministic) +} +func (dst *BatchGetDocumentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchGetDocumentsRequest.Merge(dst, src) +} +func (m *BatchGetDocumentsRequest) XXX_Size() int { + return xxx_messageInfo_BatchGetDocumentsRequest.Size(m) +} +func (m *BatchGetDocumentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchGetDocumentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchGetDocumentsRequest proto.InternalMessageInfo + +func (m *BatchGetDocumentsRequest) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *BatchGetDocumentsRequest) GetDocuments() []string { + if m != nil { + return m.Documents + } + return nil +} + +func (m *BatchGetDocumentsRequest) GetMask() *DocumentMask { + if m != nil { + return m.Mask + } + return nil +} + +type isBatchGetDocumentsRequest_ConsistencySelector interface { + isBatchGetDocumentsRequest_ConsistencySelector() +} + +type BatchGetDocumentsRequest_Transaction struct { + Transaction []byte `protobuf:"bytes,4,opt,name=transaction,proto3,oneof"` +} + +type BatchGetDocumentsRequest_NewTransaction struct { + NewTransaction *TransactionOptions `protobuf:"bytes,5,opt,name=new_transaction,json=newTransaction,proto3,oneof"` +} + +type BatchGetDocumentsRequest_ReadTime struct { + ReadTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3,oneof"` +} + +func (*BatchGetDocumentsRequest_Transaction) isBatchGetDocumentsRequest_ConsistencySelector() {} + +func (*BatchGetDocumentsRequest_NewTransaction) isBatchGetDocumentsRequest_ConsistencySelector() {} + +func (*BatchGetDocumentsRequest_ReadTime) isBatchGetDocumentsRequest_ConsistencySelector() {} + +func (m *BatchGetDocumentsRequest) GetConsistencySelector() isBatchGetDocumentsRequest_ConsistencySelector { + if m != nil { + return m.ConsistencySelector + } + return nil +} + +func (m *BatchGetDocumentsRequest) GetTransaction() []byte { + if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_Transaction); ok { + return x.Transaction + } + return nil +} + +func (m *BatchGetDocumentsRequest) GetNewTransaction() *TransactionOptions { + if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_NewTransaction); ok { + return x.NewTransaction + } + return nil +} + +func (m *BatchGetDocumentsRequest) GetReadTime() *timestamp.Timestamp { + if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_ReadTime); ok { + return x.ReadTime + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*BatchGetDocumentsRequest) 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{}) { + return _BatchGetDocumentsRequest_OneofMarshaler, _BatchGetDocumentsRequest_OneofUnmarshaler, _BatchGetDocumentsRequest_OneofSizer, []interface{}{ + (*BatchGetDocumentsRequest_Transaction)(nil), + (*BatchGetDocumentsRequest_NewTransaction)(nil), + (*BatchGetDocumentsRequest_ReadTime)(nil), + } +} + +func _BatchGetDocumentsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*BatchGetDocumentsRequest) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *BatchGetDocumentsRequest_Transaction: + b.EncodeVarint(4<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Transaction) + case *BatchGetDocumentsRequest_NewTransaction: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NewTransaction); err != nil { + return err + } + case *BatchGetDocumentsRequest_ReadTime: + b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadTime); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("BatchGetDocumentsRequest.ConsistencySelector has unexpected type %T", x) + } + return nil +} + +func _BatchGetDocumentsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*BatchGetDocumentsRequest) + switch tag { + case 4: // consistency_selector.transaction + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ConsistencySelector = &BatchGetDocumentsRequest_Transaction{x} + return true, err + case 5: // consistency_selector.new_transaction + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TransactionOptions) + err := b.DecodeMessage(msg) + m.ConsistencySelector = &BatchGetDocumentsRequest_NewTransaction{msg} + return true, err + case 7: // consistency_selector.read_time + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ConsistencySelector = &BatchGetDocumentsRequest_ReadTime{msg} + return true, err + default: + return false, nil + } +} + +func _BatchGetDocumentsRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*BatchGetDocumentsRequest) + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *BatchGetDocumentsRequest_Transaction: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Transaction))) + n += len(x.Transaction) + case *BatchGetDocumentsRequest_NewTransaction: + s := proto.Size(x.NewTransaction) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchGetDocumentsRequest_ReadTime: + s := proto.Size(x.ReadTime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments]. +type BatchGetDocumentsResponse struct { + // A single result. + // This can be empty if the server is just returning a transaction. + // + // Types that are valid to be assigned to Result: + // *BatchGetDocumentsResponse_Found + // *BatchGetDocumentsResponse_Missing + Result isBatchGetDocumentsResponse_Result `protobuf_oneof:"result"` + // The transaction that was started as part of this request. + // Will only be set in the first response, and only if + // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction] was set in the request. + Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` + // The time at which the document was read. + // This may be monotically increasing, in this case the previous documents in + // the result stream are guaranteed not to have changed between their + // read_time and this one. + ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchGetDocumentsResponse) Reset() { *m = BatchGetDocumentsResponse{} } +func (m *BatchGetDocumentsResponse) String() string { return proto.CompactTextString(m) } +func (*BatchGetDocumentsResponse) ProtoMessage() {} +func (*BatchGetDocumentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{7} +} +func (m *BatchGetDocumentsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BatchGetDocumentsResponse.Unmarshal(m, b) +} +func (m *BatchGetDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BatchGetDocumentsResponse.Marshal(b, m, deterministic) +} +func (dst *BatchGetDocumentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchGetDocumentsResponse.Merge(dst, src) +} +func (m *BatchGetDocumentsResponse) XXX_Size() int { + return xxx_messageInfo_BatchGetDocumentsResponse.Size(m) +} +func (m *BatchGetDocumentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchGetDocumentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchGetDocumentsResponse proto.InternalMessageInfo + +type isBatchGetDocumentsResponse_Result interface { + isBatchGetDocumentsResponse_Result() +} + +type BatchGetDocumentsResponse_Found struct { + Found *Document `protobuf:"bytes,1,opt,name=found,proto3,oneof"` +} + +type BatchGetDocumentsResponse_Missing struct { + Missing string `protobuf:"bytes,2,opt,name=missing,proto3,oneof"` +} + +func (*BatchGetDocumentsResponse_Found) isBatchGetDocumentsResponse_Result() {} + +func (*BatchGetDocumentsResponse_Missing) isBatchGetDocumentsResponse_Result() {} + +func (m *BatchGetDocumentsResponse) GetResult() isBatchGetDocumentsResponse_Result { + if m != nil { + return m.Result + } + return nil +} + +func (m *BatchGetDocumentsResponse) GetFound() *Document { + if x, ok := m.GetResult().(*BatchGetDocumentsResponse_Found); ok { + return x.Found + } + return nil +} + +func (m *BatchGetDocumentsResponse) GetMissing() string { + if x, ok := m.GetResult().(*BatchGetDocumentsResponse_Missing); ok { + return x.Missing + } + return "" +} + +func (m *BatchGetDocumentsResponse) GetTransaction() []byte { + if m != nil { + return m.Transaction + } + return nil +} + +func (m *BatchGetDocumentsResponse) GetReadTime() *timestamp.Timestamp { + if m != nil { + return m.ReadTime + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*BatchGetDocumentsResponse) 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{}) { + return _BatchGetDocumentsResponse_OneofMarshaler, _BatchGetDocumentsResponse_OneofUnmarshaler, _BatchGetDocumentsResponse_OneofSizer, []interface{}{ + (*BatchGetDocumentsResponse_Found)(nil), + (*BatchGetDocumentsResponse_Missing)(nil), + } +} + +func _BatchGetDocumentsResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*BatchGetDocumentsResponse) + // result + switch x := m.Result.(type) { + case *BatchGetDocumentsResponse_Found: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Found); err != nil { + return err + } + case *BatchGetDocumentsResponse_Missing: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.Missing) + case nil: + default: + return fmt.Errorf("BatchGetDocumentsResponse.Result has unexpected type %T", x) + } + return nil +} + +func _BatchGetDocumentsResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*BatchGetDocumentsResponse) + switch tag { + case 1: // result.found + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Document) + err := b.DecodeMessage(msg) + m.Result = &BatchGetDocumentsResponse_Found{msg} + return true, err + case 2: // result.missing + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Result = &BatchGetDocumentsResponse_Missing{x} + return true, err + default: + return false, nil + } +} + +func _BatchGetDocumentsResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*BatchGetDocumentsResponse) + // result + switch x := m.Result.(type) { + case *BatchGetDocumentsResponse_Found: + s := proto.Size(x.Found) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchGetDocumentsResponse_Missing: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Missing))) + n += len(x.Missing) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The request for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction]. +type BeginTransactionRequest struct { + // The database name. In the format: + // `projects/{project_id}/databases/{database_id}`. + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + // The options for the transaction. + // Defaults to a read-write transaction. + Options *TransactionOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BeginTransactionRequest) Reset() { *m = BeginTransactionRequest{} } +func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) } +func (*BeginTransactionRequest) ProtoMessage() {} +func (*BeginTransactionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{8} +} +func (m *BeginTransactionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BeginTransactionRequest.Unmarshal(m, b) +} +func (m *BeginTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BeginTransactionRequest.Marshal(b, m, deterministic) +} +func (dst *BeginTransactionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BeginTransactionRequest.Merge(dst, src) +} +func (m *BeginTransactionRequest) XXX_Size() int { + return xxx_messageInfo_BeginTransactionRequest.Size(m) +} +func (m *BeginTransactionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BeginTransactionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BeginTransactionRequest proto.InternalMessageInfo + +func (m *BeginTransactionRequest) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *BeginTransactionRequest) GetOptions() *TransactionOptions { + if m != nil { + return m.Options + } + return nil +} + +// The response for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction]. +type BeginTransactionResponse struct { + // The transaction that was started. + Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BeginTransactionResponse) Reset() { *m = BeginTransactionResponse{} } +func (m *BeginTransactionResponse) String() string { return proto.CompactTextString(m) } +func (*BeginTransactionResponse) ProtoMessage() {} +func (*BeginTransactionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{9} +} +func (m *BeginTransactionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BeginTransactionResponse.Unmarshal(m, b) +} +func (m *BeginTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BeginTransactionResponse.Marshal(b, m, deterministic) +} +func (dst *BeginTransactionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BeginTransactionResponse.Merge(dst, src) +} +func (m *BeginTransactionResponse) XXX_Size() int { + return xxx_messageInfo_BeginTransactionResponse.Size(m) +} +func (m *BeginTransactionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BeginTransactionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BeginTransactionResponse proto.InternalMessageInfo + +func (m *BeginTransactionResponse) GetTransaction() []byte { + if m != nil { + return m.Transaction + } + return nil +} + +// The request for [Firestore.Commit][google.firestore.v1.Firestore.Commit]. +type CommitRequest struct { + // The database name. In the format: + // `projects/{project_id}/databases/{database_id}`. + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + // The writes to apply. + // + // Always executed atomically and in order. + Writes []*Write `protobuf:"bytes,2,rep,name=writes,proto3" json:"writes,omitempty"` + // If set, applies all writes in this transaction, and commits it. + Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitRequest) Reset() { *m = CommitRequest{} } +func (m *CommitRequest) String() string { return proto.CompactTextString(m) } +func (*CommitRequest) ProtoMessage() {} +func (*CommitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{10} +} +func (m *CommitRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommitRequest.Unmarshal(m, b) +} +func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommitRequest.Marshal(b, m, deterministic) +} +func (dst *CommitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitRequest.Merge(dst, src) +} +func (m *CommitRequest) XXX_Size() int { + return xxx_messageInfo_CommitRequest.Size(m) +} +func (m *CommitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CommitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CommitRequest proto.InternalMessageInfo + +func (m *CommitRequest) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *CommitRequest) GetWrites() []*Write { + if m != nil { + return m.Writes + } + return nil +} + +func (m *CommitRequest) GetTransaction() []byte { + if m != nil { + return m.Transaction + } + return nil +} + +// The response for [Firestore.Commit][google.firestore.v1.Firestore.Commit]. +type CommitResponse struct { + // The result of applying the writes. + // + // This i-th write result corresponds to the i-th write in the + // request. + WriteResults []*WriteResult `protobuf:"bytes,1,rep,name=write_results,json=writeResults,proto3" json:"write_results,omitempty"` + // The time at which the commit occurred. + CommitTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitResponse) Reset() { *m = CommitResponse{} } +func (m *CommitResponse) String() string { return proto.CompactTextString(m) } +func (*CommitResponse) ProtoMessage() {} +func (*CommitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{11} +} +func (m *CommitResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommitResponse.Unmarshal(m, b) +} +func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommitResponse.Marshal(b, m, deterministic) +} +func (dst *CommitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitResponse.Merge(dst, src) +} +func (m *CommitResponse) XXX_Size() int { + return xxx_messageInfo_CommitResponse.Size(m) +} +func (m *CommitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CommitResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CommitResponse proto.InternalMessageInfo + +func (m *CommitResponse) GetWriteResults() []*WriteResult { + if m != nil { + return m.WriteResults + } + return nil +} + +func (m *CommitResponse) GetCommitTime() *timestamp.Timestamp { + if m != nil { + return m.CommitTime + } + return nil +} + +// The request for [Firestore.Rollback][google.firestore.v1.Firestore.Rollback]. +type RollbackRequest struct { + // The database name. In the format: + // `projects/{project_id}/databases/{database_id}`. + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + // The transaction to roll back. + Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RollbackRequest) Reset() { *m = RollbackRequest{} } +func (m *RollbackRequest) String() string { return proto.CompactTextString(m) } +func (*RollbackRequest) ProtoMessage() {} +func (*RollbackRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{12} +} +func (m *RollbackRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RollbackRequest.Unmarshal(m, b) +} +func (m *RollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RollbackRequest.Marshal(b, m, deterministic) +} +func (dst *RollbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RollbackRequest.Merge(dst, src) +} +func (m *RollbackRequest) XXX_Size() int { + return xxx_messageInfo_RollbackRequest.Size(m) +} +func (m *RollbackRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RollbackRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RollbackRequest proto.InternalMessageInfo + +func (m *RollbackRequest) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *RollbackRequest) GetTransaction() []byte { + if m != nil { + return m.Transaction + } + return nil +} + +// The request for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery]. +type RunQueryRequest struct { + // The parent resource name. In the format: + // `projects/{project_id}/databases/{database_id}/documents` or + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + // For example: + // `projects/my-project/databases/my-database/documents` or + // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The query to run. + // + // Types that are valid to be assigned to QueryType: + // *RunQueryRequest_StructuredQuery + QueryType isRunQueryRequest_QueryType `protobuf_oneof:"query_type"` + // The consistency mode for this transaction. + // If not set, defaults to strong consistency. + // + // Types that are valid to be assigned to ConsistencySelector: + // *RunQueryRequest_Transaction + // *RunQueryRequest_NewTransaction + // *RunQueryRequest_ReadTime + ConsistencySelector isRunQueryRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RunQueryRequest) Reset() { *m = RunQueryRequest{} } +func (m *RunQueryRequest) String() string { return proto.CompactTextString(m) } +func (*RunQueryRequest) ProtoMessage() {} +func (*RunQueryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{13} +} +func (m *RunQueryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RunQueryRequest.Unmarshal(m, b) +} +func (m *RunQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RunQueryRequest.Marshal(b, m, deterministic) +} +func (dst *RunQueryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunQueryRequest.Merge(dst, src) +} +func (m *RunQueryRequest) XXX_Size() int { + return xxx_messageInfo_RunQueryRequest.Size(m) +} +func (m *RunQueryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RunQueryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RunQueryRequest proto.InternalMessageInfo + +func (m *RunQueryRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +type isRunQueryRequest_QueryType interface { + isRunQueryRequest_QueryType() +} + +type RunQueryRequest_StructuredQuery struct { + StructuredQuery *StructuredQuery `protobuf:"bytes,2,opt,name=structured_query,json=structuredQuery,proto3,oneof"` +} + +func (*RunQueryRequest_StructuredQuery) isRunQueryRequest_QueryType() {} + +func (m *RunQueryRequest) GetQueryType() isRunQueryRequest_QueryType { + if m != nil { + return m.QueryType + } + return nil +} + +func (m *RunQueryRequest) GetStructuredQuery() *StructuredQuery { + if x, ok := m.GetQueryType().(*RunQueryRequest_StructuredQuery); ok { + return x.StructuredQuery + } + return nil +} + +type isRunQueryRequest_ConsistencySelector interface { + isRunQueryRequest_ConsistencySelector() +} + +type RunQueryRequest_Transaction struct { + Transaction []byte `protobuf:"bytes,5,opt,name=transaction,proto3,oneof"` +} + +type RunQueryRequest_NewTransaction struct { + NewTransaction *TransactionOptions `protobuf:"bytes,6,opt,name=new_transaction,json=newTransaction,proto3,oneof"` +} + +type RunQueryRequest_ReadTime struct { + ReadTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3,oneof"` +} + +func (*RunQueryRequest_Transaction) isRunQueryRequest_ConsistencySelector() {} + +func (*RunQueryRequest_NewTransaction) isRunQueryRequest_ConsistencySelector() {} + +func (*RunQueryRequest_ReadTime) isRunQueryRequest_ConsistencySelector() {} + +func (m *RunQueryRequest) GetConsistencySelector() isRunQueryRequest_ConsistencySelector { + if m != nil { + return m.ConsistencySelector + } + return nil +} + +func (m *RunQueryRequest) GetTransaction() []byte { + if x, ok := m.GetConsistencySelector().(*RunQueryRequest_Transaction); ok { + return x.Transaction + } + return nil +} + +func (m *RunQueryRequest) GetNewTransaction() *TransactionOptions { + if x, ok := m.GetConsistencySelector().(*RunQueryRequest_NewTransaction); ok { + return x.NewTransaction + } + return nil +} + +func (m *RunQueryRequest) GetReadTime() *timestamp.Timestamp { + if x, ok := m.GetConsistencySelector().(*RunQueryRequest_ReadTime); ok { + return x.ReadTime + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*RunQueryRequest) 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{}) { + return _RunQueryRequest_OneofMarshaler, _RunQueryRequest_OneofUnmarshaler, _RunQueryRequest_OneofSizer, []interface{}{ + (*RunQueryRequest_StructuredQuery)(nil), + (*RunQueryRequest_Transaction)(nil), + (*RunQueryRequest_NewTransaction)(nil), + (*RunQueryRequest_ReadTime)(nil), + } +} + +func _RunQueryRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RunQueryRequest) + // query_type + switch x := m.QueryType.(type) { + case *RunQueryRequest_StructuredQuery: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.StructuredQuery); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RunQueryRequest.QueryType has unexpected type %T", x) + } + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *RunQueryRequest_Transaction: + b.EncodeVarint(5<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Transaction) + case *RunQueryRequest_NewTransaction: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NewTransaction); err != nil { + return err + } + case *RunQueryRequest_ReadTime: + b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadTime); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RunQueryRequest.ConsistencySelector has unexpected type %T", x) + } + return nil +} + +func _RunQueryRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RunQueryRequest) + switch tag { + case 2: // query_type.structured_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(StructuredQuery) + err := b.DecodeMessage(msg) + m.QueryType = &RunQueryRequest_StructuredQuery{msg} + return true, err + case 5: // consistency_selector.transaction + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ConsistencySelector = &RunQueryRequest_Transaction{x} + return true, err + case 6: // consistency_selector.new_transaction + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TransactionOptions) + err := b.DecodeMessage(msg) + m.ConsistencySelector = &RunQueryRequest_NewTransaction{msg} + return true, err + case 7: // consistency_selector.read_time + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ConsistencySelector = &RunQueryRequest_ReadTime{msg} + return true, err + default: + return false, nil + } +} + +func _RunQueryRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RunQueryRequest) + // query_type + switch x := m.QueryType.(type) { + case *RunQueryRequest_StructuredQuery: + s := proto.Size(x.StructuredQuery) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + // consistency_selector + switch x := m.ConsistencySelector.(type) { + case *RunQueryRequest_Transaction: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Transaction))) + n += len(x.Transaction) + case *RunQueryRequest_NewTransaction: + s := proto.Size(x.NewTransaction) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *RunQueryRequest_ReadTime: + s := proto.Size(x.ReadTime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The response for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery]. +type RunQueryResponse struct { + // The transaction that was started as part of this request. + // Can only be set in the first response, and only if + // [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request. + // If set, no other fields will be set in this response. + Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` + // A query result. + // Not set when reporting partial progress. + Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` + // The time at which the document was read. This may be monotonically + // increasing; in this case, the previous documents in the result stream are + // guaranteed not to have changed between their `read_time` and this one. + // + // If the query returns no results, a response with `read_time` and no + // `document` will be sent, and this represents the time at which the query + // was run. + ReadTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + // The number of results that have been skipped due to an offset between + // the last response and the current response. + SkippedResults int32 `protobuf:"varint,4,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RunQueryResponse) Reset() { *m = RunQueryResponse{} } +func (m *RunQueryResponse) String() string { return proto.CompactTextString(m) } +func (*RunQueryResponse) ProtoMessage() {} +func (*RunQueryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{14} +} +func (m *RunQueryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RunQueryResponse.Unmarshal(m, b) +} +func (m *RunQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RunQueryResponse.Marshal(b, m, deterministic) +} +func (dst *RunQueryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunQueryResponse.Merge(dst, src) +} +func (m *RunQueryResponse) XXX_Size() int { + return xxx_messageInfo_RunQueryResponse.Size(m) +} +func (m *RunQueryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RunQueryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RunQueryResponse proto.InternalMessageInfo + +func (m *RunQueryResponse) GetTransaction() []byte { + if m != nil { + return m.Transaction + } + return nil +} + +func (m *RunQueryResponse) GetDocument() *Document { + if m != nil { + return m.Document + } + return nil +} + +func (m *RunQueryResponse) GetReadTime() *timestamp.Timestamp { + if m != nil { + return m.ReadTime + } + return nil +} + +func (m *RunQueryResponse) GetSkippedResults() int32 { + if m != nil { + return m.SkippedResults + } + return 0 +} + +// The request for [Firestore.Write][google.firestore.v1.Firestore.Write]. +// +// The first request creates a stream, or resumes an existing one from a token. +// +// When creating a new stream, the server replies with a response containing +// only an ID and a token, to use in the next request. +// +// When resuming a stream, the server first streams any responses later than the +// given token, then a response containing only an up-to-date token, to use in +// the next request. +type WriteRequest struct { + // The database name. In the format: + // `projects/{project_id}/databases/{database_id}`. + // This is only required in the first message. + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + // The ID of the write stream to resume. + // This may only be set in the first message. When left empty, a new write + // stream will be created. + StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` + // The writes to apply. + // + // Always executed atomically and in order. + // This must be empty on the first request. + // This may be empty on the last request. + // This must not be empty on all other requests. + Writes []*Write `protobuf:"bytes,3,rep,name=writes,proto3" json:"writes,omitempty"` + // A stream token that was previously sent by the server. + // + // The client should set this field to the token from the most recent + // [WriteResponse][google.firestore.v1.WriteResponse] it has received. This acknowledges that the client has + // received responses up to this token. After sending this token, earlier + // tokens may not be used anymore. + // + // The server may close the stream if there are too many unacknowledged + // responses. + // + // Leave this field unset when creating a new stream. To resume a stream at + // a specific point, set this field and the `stream_id` field. + // + // Leave this field unset when creating a new stream. + StreamToken []byte `protobuf:"bytes,4,opt,name=stream_token,json=streamToken,proto3" json:"stream_token,omitempty"` + // Labels associated with this write request. + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteRequest) Reset() { *m = WriteRequest{} } +func (m *WriteRequest) String() string { return proto.CompactTextString(m) } +func (*WriteRequest) ProtoMessage() {} +func (*WriteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{15} +} +func (m *WriteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WriteRequest.Unmarshal(m, b) +} +func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic) +} +func (dst *WriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteRequest.Merge(dst, src) +} +func (m *WriteRequest) XXX_Size() int { + return xxx_messageInfo_WriteRequest.Size(m) +} +func (m *WriteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WriteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WriteRequest proto.InternalMessageInfo + +func (m *WriteRequest) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +func (m *WriteRequest) GetStreamId() string { + if m != nil { + return m.StreamId + } + return "" +} + +func (m *WriteRequest) GetWrites() []*Write { + if m != nil { + return m.Writes + } + return nil +} + +func (m *WriteRequest) GetStreamToken() []byte { + if m != nil { + return m.StreamToken + } + return nil +} + +func (m *WriteRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +// The response for [Firestore.Write][google.firestore.v1.Firestore.Write]. +type WriteResponse struct { + // The ID of the stream. + // Only set on the first message, when a new stream was created. + StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` + // A token that represents the position of this response in the stream. + // This can be used by a client to resume the stream at this point. + // + // This field is always set. + StreamToken []byte `protobuf:"bytes,2,opt,name=stream_token,json=streamToken,proto3" json:"stream_token,omitempty"` + // The result of applying the writes. + // + // This i-th write result corresponds to the i-th write in the + // request. + WriteResults []*WriteResult `protobuf:"bytes,3,rep,name=write_results,json=writeResults,proto3" json:"write_results,omitempty"` + // The time at which the commit occurred. + CommitTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteResponse) Reset() { *m = WriteResponse{} } +func (m *WriteResponse) String() string { return proto.CompactTextString(m) } +func (*WriteResponse) ProtoMessage() {} +func (*WriteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{16} +} +func (m *WriteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WriteResponse.Unmarshal(m, b) +} +func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic) +} +func (dst *WriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteResponse.Merge(dst, src) +} +func (m *WriteResponse) XXX_Size() int { + return xxx_messageInfo_WriteResponse.Size(m) +} +func (m *WriteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WriteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WriteResponse proto.InternalMessageInfo + +func (m *WriteResponse) GetStreamId() string { + if m != nil { + return m.StreamId + } + return "" +} + +func (m *WriteResponse) GetStreamToken() []byte { + if m != nil { + return m.StreamToken + } + return nil +} + +func (m *WriteResponse) GetWriteResults() []*WriteResult { + if m != nil { + return m.WriteResults + } + return nil +} + +func (m *WriteResponse) GetCommitTime() *timestamp.Timestamp { + if m != nil { + return m.CommitTime + } + return nil +} + +// A request for [Firestore.Listen][google.firestore.v1.Firestore.Listen] +type ListenRequest struct { + // The database name. In the format: + // `projects/{project_id}/databases/{database_id}`. + Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` + // The supported target changes. + // + // Types that are valid to be assigned to TargetChange: + // *ListenRequest_AddTarget + // *ListenRequest_RemoveTarget + TargetChange isListenRequest_TargetChange `protobuf_oneof:"target_change"` + // Labels associated with this target change. + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenRequest) Reset() { *m = ListenRequest{} } +func (m *ListenRequest) String() string { return proto.CompactTextString(m) } +func (*ListenRequest) ProtoMessage() {} +func (*ListenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{17} +} +func (m *ListenRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenRequest.Unmarshal(m, b) +} +func (m *ListenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenRequest.Marshal(b, m, deterministic) +} +func (dst *ListenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenRequest.Merge(dst, src) +} +func (m *ListenRequest) XXX_Size() int { + return xxx_messageInfo_ListenRequest.Size(m) +} +func (m *ListenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenRequest proto.InternalMessageInfo + +func (m *ListenRequest) GetDatabase() string { + if m != nil { + return m.Database + } + return "" +} + +type isListenRequest_TargetChange interface { + isListenRequest_TargetChange() +} + +type ListenRequest_AddTarget struct { + AddTarget *Target `protobuf:"bytes,2,opt,name=add_target,json=addTarget,proto3,oneof"` +} + +type ListenRequest_RemoveTarget struct { + RemoveTarget int32 `protobuf:"varint,3,opt,name=remove_target,json=removeTarget,proto3,oneof"` +} + +func (*ListenRequest_AddTarget) isListenRequest_TargetChange() {} + +func (*ListenRequest_RemoveTarget) isListenRequest_TargetChange() {} + +func (m *ListenRequest) GetTargetChange() isListenRequest_TargetChange { + if m != nil { + return m.TargetChange + } + return nil +} + +func (m *ListenRequest) GetAddTarget() *Target { + if x, ok := m.GetTargetChange().(*ListenRequest_AddTarget); ok { + return x.AddTarget + } + return nil +} + +func (m *ListenRequest) GetRemoveTarget() int32 { + if x, ok := m.GetTargetChange().(*ListenRequest_RemoveTarget); ok { + return x.RemoveTarget + } + return 0 +} + +func (m *ListenRequest) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ListenRequest) 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{}) { + return _ListenRequest_OneofMarshaler, _ListenRequest_OneofUnmarshaler, _ListenRequest_OneofSizer, []interface{}{ + (*ListenRequest_AddTarget)(nil), + (*ListenRequest_RemoveTarget)(nil), + } +} + +func _ListenRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ListenRequest) + // target_change + switch x := m.TargetChange.(type) { + case *ListenRequest_AddTarget: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.AddTarget); err != nil { + return err + } + case *ListenRequest_RemoveTarget: + b.EncodeVarint(3<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.RemoveTarget)) + case nil: + default: + return fmt.Errorf("ListenRequest.TargetChange has unexpected type %T", x) + } + return nil +} + +func _ListenRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ListenRequest) + switch tag { + case 2: // target_change.add_target + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Target) + err := b.DecodeMessage(msg) + m.TargetChange = &ListenRequest_AddTarget{msg} + return true, err + case 3: // target_change.remove_target + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.TargetChange = &ListenRequest_RemoveTarget{int32(x)} + return true, err + default: + return false, nil + } +} + +func _ListenRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ListenRequest) + // target_change + switch x := m.TargetChange.(type) { + case *ListenRequest_AddTarget: + s := proto.Size(x.AddTarget) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ListenRequest_RemoveTarget: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.RemoveTarget)) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The response for [Firestore.Listen][google.firestore.v1.Firestore.Listen]. +type ListenResponse struct { + // The supported responses. + // + // Types that are valid to be assigned to ResponseType: + // *ListenResponse_TargetChange + // *ListenResponse_DocumentChange + // *ListenResponse_DocumentDelete + // *ListenResponse_DocumentRemove + // *ListenResponse_Filter + ResponseType isListenResponse_ResponseType `protobuf_oneof:"response_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListenResponse) Reset() { *m = ListenResponse{} } +func (m *ListenResponse) String() string { return proto.CompactTextString(m) } +func (*ListenResponse) ProtoMessage() {} +func (*ListenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{18} +} +func (m *ListenResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListenResponse.Unmarshal(m, b) +} +func (m *ListenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListenResponse.Marshal(b, m, deterministic) +} +func (dst *ListenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenResponse.Merge(dst, src) +} +func (m *ListenResponse) XXX_Size() int { + return xxx_messageInfo_ListenResponse.Size(m) +} +func (m *ListenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenResponse proto.InternalMessageInfo + +type isListenResponse_ResponseType interface { + isListenResponse_ResponseType() +} + +type ListenResponse_TargetChange struct { + TargetChange *TargetChange `protobuf:"bytes,2,opt,name=target_change,json=targetChange,proto3,oneof"` +} + +type ListenResponse_DocumentChange struct { + DocumentChange *DocumentChange `protobuf:"bytes,3,opt,name=document_change,json=documentChange,proto3,oneof"` +} + +type ListenResponse_DocumentDelete struct { + DocumentDelete *DocumentDelete `protobuf:"bytes,4,opt,name=document_delete,json=documentDelete,proto3,oneof"` +} + +type ListenResponse_DocumentRemove struct { + DocumentRemove *DocumentRemove `protobuf:"bytes,6,opt,name=document_remove,json=documentRemove,proto3,oneof"` +} + +type ListenResponse_Filter struct { + Filter *ExistenceFilter `protobuf:"bytes,5,opt,name=filter,proto3,oneof"` +} + +func (*ListenResponse_TargetChange) isListenResponse_ResponseType() {} + +func (*ListenResponse_DocumentChange) isListenResponse_ResponseType() {} + +func (*ListenResponse_DocumentDelete) isListenResponse_ResponseType() {} + +func (*ListenResponse_DocumentRemove) isListenResponse_ResponseType() {} + +func (*ListenResponse_Filter) isListenResponse_ResponseType() {} + +func (m *ListenResponse) GetResponseType() isListenResponse_ResponseType { + if m != nil { + return m.ResponseType + } + return nil +} + +func (m *ListenResponse) GetTargetChange() *TargetChange { + if x, ok := m.GetResponseType().(*ListenResponse_TargetChange); ok { + return x.TargetChange + } + return nil +} + +func (m *ListenResponse) GetDocumentChange() *DocumentChange { + if x, ok := m.GetResponseType().(*ListenResponse_DocumentChange); ok { + return x.DocumentChange + } + return nil +} + +func (m *ListenResponse) GetDocumentDelete() *DocumentDelete { + if x, ok := m.GetResponseType().(*ListenResponse_DocumentDelete); ok { + return x.DocumentDelete + } + return nil +} + +func (m *ListenResponse) GetDocumentRemove() *DocumentRemove { + if x, ok := m.GetResponseType().(*ListenResponse_DocumentRemove); ok { + return x.DocumentRemove + } + return nil +} + +func (m *ListenResponse) GetFilter() *ExistenceFilter { + if x, ok := m.GetResponseType().(*ListenResponse_Filter); ok { + return x.Filter + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ListenResponse) 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{}) { + return _ListenResponse_OneofMarshaler, _ListenResponse_OneofUnmarshaler, _ListenResponse_OneofSizer, []interface{}{ + (*ListenResponse_TargetChange)(nil), + (*ListenResponse_DocumentChange)(nil), + (*ListenResponse_DocumentDelete)(nil), + (*ListenResponse_DocumentRemove)(nil), + (*ListenResponse_Filter)(nil), + } +} + +func _ListenResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ListenResponse) + // response_type + switch x := m.ResponseType.(type) { + case *ListenResponse_TargetChange: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TargetChange); err != nil { + return err + } + case *ListenResponse_DocumentChange: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.DocumentChange); err != nil { + return err + } + case *ListenResponse_DocumentDelete: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.DocumentDelete); err != nil { + return err + } + case *ListenResponse_DocumentRemove: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.DocumentRemove); err != nil { + return err + } + case *ListenResponse_Filter: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Filter); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ListenResponse.ResponseType has unexpected type %T", x) + } + return nil +} + +func _ListenResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ListenResponse) + switch tag { + case 2: // response_type.target_change + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TargetChange) + err := b.DecodeMessage(msg) + m.ResponseType = &ListenResponse_TargetChange{msg} + return true, err + case 3: // response_type.document_change + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(DocumentChange) + err := b.DecodeMessage(msg) + m.ResponseType = &ListenResponse_DocumentChange{msg} + return true, err + case 4: // response_type.document_delete + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(DocumentDelete) + err := b.DecodeMessage(msg) + m.ResponseType = &ListenResponse_DocumentDelete{msg} + return true, err + case 6: // response_type.document_remove + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(DocumentRemove) + err := b.DecodeMessage(msg) + m.ResponseType = &ListenResponse_DocumentRemove{msg} + return true, err + case 5: // response_type.filter + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ExistenceFilter) + err := b.DecodeMessage(msg) + m.ResponseType = &ListenResponse_Filter{msg} + return true, err + default: + return false, nil + } +} + +func _ListenResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ListenResponse) + // response_type + switch x := m.ResponseType.(type) { + case *ListenResponse_TargetChange: + s := proto.Size(x.TargetChange) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ListenResponse_DocumentChange: + s := proto.Size(x.DocumentChange) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ListenResponse_DocumentDelete: + s := proto.Size(x.DocumentDelete) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ListenResponse_DocumentRemove: + s := proto.Size(x.DocumentRemove) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ListenResponse_Filter: + s := proto.Size(x.Filter) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A specification of a set of documents to listen to. +type Target struct { + // The type of target to listen to. + // + // Types that are valid to be assigned to TargetType: + // *Target_Query + // *Target_Documents + TargetType isTarget_TargetType `protobuf_oneof:"target_type"` + // When to start listening. + // + // If not specified, all matching Documents are returned before any + // subsequent changes. + // + // Types that are valid to be assigned to ResumeType: + // *Target_ResumeToken + // *Target_ReadTime + ResumeType isTarget_ResumeType `protobuf_oneof:"resume_type"` + // A client provided target ID. + // + // If not set, the server will assign an ID for the target. + // + // Used for resuming a target without changing IDs. The IDs can either be + // client-assigned or be server-assigned in a previous stream. All targets + // with client provided IDs must be added before adding a target that needs + // a server-assigned id. + TargetId int32 `protobuf:"varint,5,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` + // If the target should be removed once it is current and consistent. + Once bool `protobuf:"varint,6,opt,name=once,proto3" json:"once,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Target) Reset() { *m = Target{} } +func (m *Target) String() string { return proto.CompactTextString(m) } +func (*Target) ProtoMessage() {} +func (*Target) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{19} +} +func (m *Target) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Target.Unmarshal(m, b) +} +func (m *Target) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Target.Marshal(b, m, deterministic) +} +func (dst *Target) XXX_Merge(src proto.Message) { + xxx_messageInfo_Target.Merge(dst, src) +} +func (m *Target) XXX_Size() int { + return xxx_messageInfo_Target.Size(m) +} +func (m *Target) XXX_DiscardUnknown() { + xxx_messageInfo_Target.DiscardUnknown(m) +} + +var xxx_messageInfo_Target proto.InternalMessageInfo + +type isTarget_TargetType interface { + isTarget_TargetType() +} + +type Target_Query struct { + Query *Target_QueryTarget `protobuf:"bytes,2,opt,name=query,proto3,oneof"` +} + +type Target_Documents struct { + Documents *Target_DocumentsTarget `protobuf:"bytes,3,opt,name=documents,proto3,oneof"` +} + +func (*Target_Query) isTarget_TargetType() {} + +func (*Target_Documents) isTarget_TargetType() {} + +func (m *Target) GetTargetType() isTarget_TargetType { + if m != nil { + return m.TargetType + } + return nil +} + +func (m *Target) GetQuery() *Target_QueryTarget { + if x, ok := m.GetTargetType().(*Target_Query); ok { + return x.Query + } + return nil +} + +func (m *Target) GetDocuments() *Target_DocumentsTarget { + if x, ok := m.GetTargetType().(*Target_Documents); ok { + return x.Documents + } + return nil +} + +type isTarget_ResumeType interface { + isTarget_ResumeType() +} + +type Target_ResumeToken struct { + ResumeToken []byte `protobuf:"bytes,4,opt,name=resume_token,json=resumeToken,proto3,oneof"` +} + +type Target_ReadTime struct { + ReadTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=read_time,json=readTime,proto3,oneof"` +} + +func (*Target_ResumeToken) isTarget_ResumeType() {} + +func (*Target_ReadTime) isTarget_ResumeType() {} + +func (m *Target) GetResumeType() isTarget_ResumeType { + if m != nil { + return m.ResumeType + } + return nil +} + +func (m *Target) GetResumeToken() []byte { + if x, ok := m.GetResumeType().(*Target_ResumeToken); ok { + return x.ResumeToken + } + return nil +} + +func (m *Target) GetReadTime() *timestamp.Timestamp { + if x, ok := m.GetResumeType().(*Target_ReadTime); ok { + return x.ReadTime + } + return nil +} + +func (m *Target) GetTargetId() int32 { + if m != nil { + return m.TargetId + } + return 0 +} + +func (m *Target) GetOnce() bool { + if m != nil { + return m.Once + } + return false +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Target) 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{}) { + return _Target_OneofMarshaler, _Target_OneofUnmarshaler, _Target_OneofSizer, []interface{}{ + (*Target_Query)(nil), + (*Target_Documents)(nil), + (*Target_ResumeToken)(nil), + (*Target_ReadTime)(nil), + } +} + +func _Target_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Target) + // target_type + switch x := m.TargetType.(type) { + case *Target_Query: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Query); err != nil { + return err + } + case *Target_Documents: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Documents); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Target.TargetType has unexpected type %T", x) + } + // resume_type + switch x := m.ResumeType.(type) { + case *Target_ResumeToken: + b.EncodeVarint(4<<3 | proto.WireBytes) + b.EncodeRawBytes(x.ResumeToken) + case *Target_ReadTime: + b.EncodeVarint(11<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReadTime); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Target.ResumeType has unexpected type %T", x) + } + return nil +} + +func _Target_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Target) + switch tag { + case 2: // target_type.query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Target_QueryTarget) + err := b.DecodeMessage(msg) + m.TargetType = &Target_Query{msg} + return true, err + case 3: // target_type.documents + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Target_DocumentsTarget) + err := b.DecodeMessage(msg) + m.TargetType = &Target_Documents{msg} + return true, err + case 4: // resume_type.resume_token + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ResumeType = &Target_ResumeToken{x} + return true, err + case 11: // resume_type.read_time + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ResumeType = &Target_ReadTime{msg} + return true, err + default: + return false, nil + } +} + +func _Target_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Target) + // target_type + switch x := m.TargetType.(type) { + case *Target_Query: + s := proto.Size(x.Query) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Target_Documents: + s := proto.Size(x.Documents) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + // resume_type + switch x := m.ResumeType.(type) { + case *Target_ResumeToken: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.ResumeToken))) + n += len(x.ResumeToken) + case *Target_ReadTime: + s := proto.Size(x.ReadTime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A target specified by a set of documents names. +type Target_DocumentsTarget struct { + // The names of the documents to retrieve. In the format: + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + // The request will fail if any of the document is not a child resource of + // the given `database`. Duplicate names will be elided. + Documents []string `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Target_DocumentsTarget) Reset() { *m = Target_DocumentsTarget{} } +func (m *Target_DocumentsTarget) String() string { return proto.CompactTextString(m) } +func (*Target_DocumentsTarget) ProtoMessage() {} +func (*Target_DocumentsTarget) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{19, 0} +} +func (m *Target_DocumentsTarget) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Target_DocumentsTarget.Unmarshal(m, b) +} +func (m *Target_DocumentsTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Target_DocumentsTarget.Marshal(b, m, deterministic) +} +func (dst *Target_DocumentsTarget) XXX_Merge(src proto.Message) { + xxx_messageInfo_Target_DocumentsTarget.Merge(dst, src) +} +func (m *Target_DocumentsTarget) XXX_Size() int { + return xxx_messageInfo_Target_DocumentsTarget.Size(m) +} +func (m *Target_DocumentsTarget) XXX_DiscardUnknown() { + xxx_messageInfo_Target_DocumentsTarget.DiscardUnknown(m) +} + +var xxx_messageInfo_Target_DocumentsTarget proto.InternalMessageInfo + +func (m *Target_DocumentsTarget) GetDocuments() []string { + if m != nil { + return m.Documents + } + return nil +} + +// A target specified by a query. +type Target_QueryTarget struct { + // The parent resource name. In the format: + // `projects/{project_id}/databases/{database_id}/documents` or + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + // For example: + // `projects/my-project/databases/my-database/documents` or + // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The query to run. + // + // Types that are valid to be assigned to QueryType: + // *Target_QueryTarget_StructuredQuery + QueryType isTarget_QueryTarget_QueryType `protobuf_oneof:"query_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Target_QueryTarget) Reset() { *m = Target_QueryTarget{} } +func (m *Target_QueryTarget) String() string { return proto.CompactTextString(m) } +func (*Target_QueryTarget) ProtoMessage() {} +func (*Target_QueryTarget) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{19, 1} +} +func (m *Target_QueryTarget) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Target_QueryTarget.Unmarshal(m, b) +} +func (m *Target_QueryTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Target_QueryTarget.Marshal(b, m, deterministic) +} +func (dst *Target_QueryTarget) XXX_Merge(src proto.Message) { + xxx_messageInfo_Target_QueryTarget.Merge(dst, src) +} +func (m *Target_QueryTarget) XXX_Size() int { + return xxx_messageInfo_Target_QueryTarget.Size(m) +} +func (m *Target_QueryTarget) XXX_DiscardUnknown() { + xxx_messageInfo_Target_QueryTarget.DiscardUnknown(m) +} + +var xxx_messageInfo_Target_QueryTarget proto.InternalMessageInfo + +func (m *Target_QueryTarget) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +type isTarget_QueryTarget_QueryType interface { + isTarget_QueryTarget_QueryType() +} + +type Target_QueryTarget_StructuredQuery struct { + StructuredQuery *StructuredQuery `protobuf:"bytes,2,opt,name=structured_query,json=structuredQuery,proto3,oneof"` +} + +func (*Target_QueryTarget_StructuredQuery) isTarget_QueryTarget_QueryType() {} + +func (m *Target_QueryTarget) GetQueryType() isTarget_QueryTarget_QueryType { + if m != nil { + return m.QueryType + } + return nil +} + +func (m *Target_QueryTarget) GetStructuredQuery() *StructuredQuery { + if x, ok := m.GetQueryType().(*Target_QueryTarget_StructuredQuery); ok { + return x.StructuredQuery + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Target_QueryTarget) 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{}) { + return _Target_QueryTarget_OneofMarshaler, _Target_QueryTarget_OneofUnmarshaler, _Target_QueryTarget_OneofSizer, []interface{}{ + (*Target_QueryTarget_StructuredQuery)(nil), + } +} + +func _Target_QueryTarget_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Target_QueryTarget) + // query_type + switch x := m.QueryType.(type) { + case *Target_QueryTarget_StructuredQuery: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.StructuredQuery); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Target_QueryTarget.QueryType has unexpected type %T", x) + } + return nil +} + +func _Target_QueryTarget_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Target_QueryTarget) + switch tag { + case 2: // query_type.structured_query + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(StructuredQuery) + err := b.DecodeMessage(msg) + m.QueryType = &Target_QueryTarget_StructuredQuery{msg} + return true, err + default: + return false, nil + } +} + +func _Target_QueryTarget_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Target_QueryTarget) + // query_type + switch x := m.QueryType.(type) { + case *Target_QueryTarget_StructuredQuery: + s := proto.Size(x.StructuredQuery) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Targets being watched have changed. +type TargetChange struct { + // The type of change that occurred. + TargetChangeType TargetChange_TargetChangeType `protobuf:"varint,1,opt,name=target_change_type,json=targetChangeType,proto3,enum=google.firestore.v1.TargetChange_TargetChangeType" json:"target_change_type,omitempty"` + // The target IDs of targets that have changed. + // + // If empty, the change applies to all targets. + // + // For `target_change_type=ADD`, the order of the target IDs matches the order + // of the requests to add the targets. This allows clients to unambiguously + // associate server-assigned target IDs with added targets. + // + // For other states, the order of the target IDs is not defined. + TargetIds []int32 `protobuf:"varint,2,rep,packed,name=target_ids,json=targetIds,proto3" json:"target_ids,omitempty"` + // The error that resulted in this change, if applicable. + Cause *status.Status `protobuf:"bytes,3,opt,name=cause,proto3" json:"cause,omitempty"` + // A token that can be used to resume the stream for the given `target_ids`, + // or all targets if `target_ids` is empty. + // + // Not set on every target change. + ResumeToken []byte `protobuf:"bytes,4,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"` + // The consistent `read_time` for the given `target_ids` (omitted when the + // target_ids are not at a consistent snapshot). + // + // The stream is guaranteed to send a `read_time` with `target_ids` empty + // whenever the entire stream reaches a new consistent snapshot. ADD, + // CURRENT, and RESET messages are guaranteed to (eventually) result in a + // new consistent snapshot (while NO_CHANGE and REMOVE messages are not). + // + // For a given stream, `read_time` is guaranteed to be monotonically + // increasing. + ReadTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TargetChange) Reset() { *m = TargetChange{} } +func (m *TargetChange) String() string { return proto.CompactTextString(m) } +func (*TargetChange) ProtoMessage() {} +func (*TargetChange) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{20} +} +func (m *TargetChange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TargetChange.Unmarshal(m, b) +} +func (m *TargetChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TargetChange.Marshal(b, m, deterministic) +} +func (dst *TargetChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_TargetChange.Merge(dst, src) +} +func (m *TargetChange) XXX_Size() int { + return xxx_messageInfo_TargetChange.Size(m) +} +func (m *TargetChange) XXX_DiscardUnknown() { + xxx_messageInfo_TargetChange.DiscardUnknown(m) +} + +var xxx_messageInfo_TargetChange proto.InternalMessageInfo + +func (m *TargetChange) GetTargetChangeType() TargetChange_TargetChangeType { + if m != nil { + return m.TargetChangeType + } + return TargetChange_NO_CHANGE +} + +func (m *TargetChange) GetTargetIds() []int32 { + if m != nil { + return m.TargetIds + } + return nil +} + +func (m *TargetChange) GetCause() *status.Status { + if m != nil { + return m.Cause + } + return nil +} + +func (m *TargetChange) GetResumeToken() []byte { + if m != nil { + return m.ResumeToken + } + return nil +} + +func (m *TargetChange) GetReadTime() *timestamp.Timestamp { + if m != nil { + return m.ReadTime + } + return nil +} + +// The request for [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds]. +type ListCollectionIdsRequest struct { + // The parent document. In the format: + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + // For example: + // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The maximum number of results to return. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token. Must be a value from + // [ListCollectionIdsResponse][google.firestore.v1.ListCollectionIdsResponse]. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListCollectionIdsRequest) Reset() { *m = ListCollectionIdsRequest{} } +func (m *ListCollectionIdsRequest) String() string { return proto.CompactTextString(m) } +func (*ListCollectionIdsRequest) ProtoMessage() {} +func (*ListCollectionIdsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{21} +} +func (m *ListCollectionIdsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListCollectionIdsRequest.Unmarshal(m, b) +} +func (m *ListCollectionIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListCollectionIdsRequest.Marshal(b, m, deterministic) +} +func (dst *ListCollectionIdsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListCollectionIdsRequest.Merge(dst, src) +} +func (m *ListCollectionIdsRequest) XXX_Size() int { + return xxx_messageInfo_ListCollectionIdsRequest.Size(m) +} +func (m *ListCollectionIdsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListCollectionIdsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListCollectionIdsRequest proto.InternalMessageInfo + +func (m *ListCollectionIdsRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *ListCollectionIdsRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListCollectionIdsRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +// The response from [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds]. +type ListCollectionIdsResponse struct { + // The collection ids. + CollectionIds []string `protobuf:"bytes,1,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` + // A page token that may be used to continue the list. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListCollectionIdsResponse) Reset() { *m = ListCollectionIdsResponse{} } +func (m *ListCollectionIdsResponse) String() string { return proto.CompactTextString(m) } +func (*ListCollectionIdsResponse) ProtoMessage() {} +func (*ListCollectionIdsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_firestore_8cfb6beecf7e5e42, []int{22} +} +func (m *ListCollectionIdsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListCollectionIdsResponse.Unmarshal(m, b) +} +func (m *ListCollectionIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListCollectionIdsResponse.Marshal(b, m, deterministic) +} +func (dst *ListCollectionIdsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListCollectionIdsResponse.Merge(dst, src) +} +func (m *ListCollectionIdsResponse) XXX_Size() int { + return xxx_messageInfo_ListCollectionIdsResponse.Size(m) +} +func (m *ListCollectionIdsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListCollectionIdsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListCollectionIdsResponse proto.InternalMessageInfo + +func (m *ListCollectionIdsResponse) GetCollectionIds() []string { + if m != nil { + return m.CollectionIds + } + return nil +} + +func (m *ListCollectionIdsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +func init() { + proto.RegisterType((*GetDocumentRequest)(nil), "google.firestore.v1.GetDocumentRequest") + proto.RegisterType((*ListDocumentsRequest)(nil), "google.firestore.v1.ListDocumentsRequest") + proto.RegisterType((*ListDocumentsResponse)(nil), "google.firestore.v1.ListDocumentsResponse") + proto.RegisterType((*CreateDocumentRequest)(nil), "google.firestore.v1.CreateDocumentRequest") + proto.RegisterType((*UpdateDocumentRequest)(nil), "google.firestore.v1.UpdateDocumentRequest") + proto.RegisterType((*DeleteDocumentRequest)(nil), "google.firestore.v1.DeleteDocumentRequest") + proto.RegisterType((*BatchGetDocumentsRequest)(nil), "google.firestore.v1.BatchGetDocumentsRequest") + proto.RegisterType((*BatchGetDocumentsResponse)(nil), "google.firestore.v1.BatchGetDocumentsResponse") + proto.RegisterType((*BeginTransactionRequest)(nil), "google.firestore.v1.BeginTransactionRequest") + proto.RegisterType((*BeginTransactionResponse)(nil), "google.firestore.v1.BeginTransactionResponse") + proto.RegisterType((*CommitRequest)(nil), "google.firestore.v1.CommitRequest") + proto.RegisterType((*CommitResponse)(nil), "google.firestore.v1.CommitResponse") + proto.RegisterType((*RollbackRequest)(nil), "google.firestore.v1.RollbackRequest") + proto.RegisterType((*RunQueryRequest)(nil), "google.firestore.v1.RunQueryRequest") + proto.RegisterType((*RunQueryResponse)(nil), "google.firestore.v1.RunQueryResponse") + proto.RegisterType((*WriteRequest)(nil), "google.firestore.v1.WriteRequest") + proto.RegisterMapType((map[string]string)(nil), "google.firestore.v1.WriteRequest.LabelsEntry") + proto.RegisterType((*WriteResponse)(nil), "google.firestore.v1.WriteResponse") + proto.RegisterType((*ListenRequest)(nil), "google.firestore.v1.ListenRequest") + proto.RegisterMapType((map[string]string)(nil), "google.firestore.v1.ListenRequest.LabelsEntry") + proto.RegisterType((*ListenResponse)(nil), "google.firestore.v1.ListenResponse") + proto.RegisterType((*Target)(nil), "google.firestore.v1.Target") + proto.RegisterType((*Target_DocumentsTarget)(nil), "google.firestore.v1.Target.DocumentsTarget") + proto.RegisterType((*Target_QueryTarget)(nil), "google.firestore.v1.Target.QueryTarget") + proto.RegisterType((*TargetChange)(nil), "google.firestore.v1.TargetChange") + proto.RegisterType((*ListCollectionIdsRequest)(nil), "google.firestore.v1.ListCollectionIdsRequest") + proto.RegisterType((*ListCollectionIdsResponse)(nil), "google.firestore.v1.ListCollectionIdsResponse") + proto.RegisterEnum("google.firestore.v1.TargetChange_TargetChangeType", TargetChange_TargetChangeType_name, TargetChange_TargetChangeType_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 + +// FirestoreClient is the client API for Firestore service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type FirestoreClient interface { + // Gets a single document. + GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error) + // Lists documents. + ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) + // Creates a new document. + CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*Document, error) + // Updates or inserts a document. + UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*Document, error) + // Deletes a document. + DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Gets multiple documents. + // + // Documents returned by this method are not guaranteed to be returned in the + // same order that they were requested. + BatchGetDocuments(ctx context.Context, in *BatchGetDocumentsRequest, opts ...grpc.CallOption) (Firestore_BatchGetDocumentsClient, error) + // Starts a new transaction. + BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error) + // Commits a transaction, while optionally updating documents. + Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) + // Rolls back a transaction. + Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Runs a query. + RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (Firestore_RunQueryClient, error) + // Streams batches of document updates and deletes, in order. + Write(ctx context.Context, opts ...grpc.CallOption) (Firestore_WriteClient, error) + // Listens to changes. + Listen(ctx context.Context, opts ...grpc.CallOption) (Firestore_ListenClient, error) + // Lists all the collection IDs underneath a document. + ListCollectionIds(ctx context.Context, in *ListCollectionIdsRequest, opts ...grpc.CallOption) (*ListCollectionIdsResponse, error) +} + +type firestoreClient struct { + cc *grpc.ClientConn +} + +func NewFirestoreClient(cc *grpc.ClientConn) FirestoreClient { + return &firestoreClient{cc} +} + +func (c *firestoreClient) GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error) { + out := new(Document) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/GetDocument", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) { + out := new(ListDocumentsResponse) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/ListDocuments", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*Document, error) { + out := new(Document) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/CreateDocument", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*Document, error) { + out := new(Document) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/UpdateDocument", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/DeleteDocument", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) BatchGetDocuments(ctx context.Context, in *BatchGetDocumentsRequest, opts ...grpc.CallOption) (Firestore_BatchGetDocumentsClient, error) { + stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[0], "/google.firestore.v1.Firestore/BatchGetDocuments", opts...) + if err != nil { + return nil, err + } + x := &firestoreBatchGetDocumentsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Firestore_BatchGetDocumentsClient interface { + Recv() (*BatchGetDocumentsResponse, error) + grpc.ClientStream +} + +type firestoreBatchGetDocumentsClient struct { + grpc.ClientStream +} + +func (x *firestoreBatchGetDocumentsClient) Recv() (*BatchGetDocumentsResponse, error) { + m := new(BatchGetDocumentsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *firestoreClient) BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error) { + out := new(BeginTransactionResponse) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/BeginTransaction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) { + out := new(CommitResponse) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/Commit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/Rollback", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *firestoreClient) RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (Firestore_RunQueryClient, error) { + stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[1], "/google.firestore.v1.Firestore/RunQuery", opts...) + if err != nil { + return nil, err + } + x := &firestoreRunQueryClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Firestore_RunQueryClient interface { + Recv() (*RunQueryResponse, error) + grpc.ClientStream +} + +type firestoreRunQueryClient struct { + grpc.ClientStream +} + +func (x *firestoreRunQueryClient) Recv() (*RunQueryResponse, error) { + m := new(RunQueryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *firestoreClient) Write(ctx context.Context, opts ...grpc.CallOption) (Firestore_WriteClient, error) { + stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[2], "/google.firestore.v1.Firestore/Write", opts...) + if err != nil { + return nil, err + } + x := &firestoreWriteClient{stream} + return x, nil +} + +type Firestore_WriteClient interface { + Send(*WriteRequest) error + Recv() (*WriteResponse, error) + grpc.ClientStream +} + +type firestoreWriteClient struct { + grpc.ClientStream +} + +func (x *firestoreWriteClient) Send(m *WriteRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *firestoreWriteClient) Recv() (*WriteResponse, error) { + m := new(WriteResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *firestoreClient) Listen(ctx context.Context, opts ...grpc.CallOption) (Firestore_ListenClient, error) { + stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[3], "/google.firestore.v1.Firestore/Listen", opts...) + if err != nil { + return nil, err + } + x := &firestoreListenClient{stream} + return x, nil +} + +type Firestore_ListenClient interface { + Send(*ListenRequest) error + Recv() (*ListenResponse, error) + grpc.ClientStream +} + +type firestoreListenClient struct { + grpc.ClientStream +} + +func (x *firestoreListenClient) Send(m *ListenRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *firestoreListenClient) Recv() (*ListenResponse, error) { + m := new(ListenResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *firestoreClient) ListCollectionIds(ctx context.Context, in *ListCollectionIdsRequest, opts ...grpc.CallOption) (*ListCollectionIdsResponse, error) { + out := new(ListCollectionIdsResponse) + err := c.cc.Invoke(ctx, "/google.firestore.v1.Firestore/ListCollectionIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FirestoreServer is the server API for Firestore service. +type FirestoreServer interface { + // Gets a single document. + GetDocument(context.Context, *GetDocumentRequest) (*Document, error) + // Lists documents. + ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error) + // Creates a new document. + CreateDocument(context.Context, *CreateDocumentRequest) (*Document, error) + // Updates or inserts a document. + UpdateDocument(context.Context, *UpdateDocumentRequest) (*Document, error) + // Deletes a document. + DeleteDocument(context.Context, *DeleteDocumentRequest) (*empty.Empty, error) + // Gets multiple documents. + // + // Documents returned by this method are not guaranteed to be returned in the + // same order that they were requested. + BatchGetDocuments(*BatchGetDocumentsRequest, Firestore_BatchGetDocumentsServer) error + // Starts a new transaction. + BeginTransaction(context.Context, *BeginTransactionRequest) (*BeginTransactionResponse, error) + // Commits a transaction, while optionally updating documents. + Commit(context.Context, *CommitRequest) (*CommitResponse, error) + // Rolls back a transaction. + Rollback(context.Context, *RollbackRequest) (*empty.Empty, error) + // Runs a query. + RunQuery(*RunQueryRequest, Firestore_RunQueryServer) error + // Streams batches of document updates and deletes, in order. + Write(Firestore_WriteServer) error + // Listens to changes. + Listen(Firestore_ListenServer) error + // Lists all the collection IDs underneath a document. + ListCollectionIds(context.Context, *ListCollectionIdsRequest) (*ListCollectionIdsResponse, error) +} + +func RegisterFirestoreServer(s *grpc.Server, srv FirestoreServer) { + s.RegisterService(&_Firestore_serviceDesc, srv) +} + +func _Firestore_GetDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).GetDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/GetDocument", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).GetDocument(ctx, req.(*GetDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_ListDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDocumentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).ListDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/ListDocuments", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).ListDocuments(ctx, req.(*ListDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_CreateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).CreateDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/CreateDocument", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).CreateDocument(ctx, req.(*CreateDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_UpdateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).UpdateDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/UpdateDocument", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).UpdateDocument(ctx, req.(*UpdateDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_DeleteDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).DeleteDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/DeleteDocument", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).DeleteDocument(ctx, req.(*DeleteDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_BatchGetDocuments_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BatchGetDocumentsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(FirestoreServer).BatchGetDocuments(m, &firestoreBatchGetDocumentsServer{stream}) +} + +type Firestore_BatchGetDocumentsServer interface { + Send(*BatchGetDocumentsResponse) error + grpc.ServerStream +} + +type firestoreBatchGetDocumentsServer struct { + grpc.ServerStream +} + +func (x *firestoreBatchGetDocumentsServer) Send(m *BatchGetDocumentsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Firestore_BeginTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BeginTransactionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).BeginTransaction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/BeginTransaction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).BeginTransaction(ctx, req.(*BeginTransactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).Commit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/Commit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).Commit(ctx, req.(*CommitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_Rollback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RollbackRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).Rollback(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/Rollback", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).Rollback(ctx, req.(*RollbackRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Firestore_RunQuery_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(RunQueryRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(FirestoreServer).RunQuery(m, &firestoreRunQueryServer{stream}) +} + +type Firestore_RunQueryServer interface { + Send(*RunQueryResponse) error + grpc.ServerStream +} + +type firestoreRunQueryServer struct { + grpc.ServerStream +} + +func (x *firestoreRunQueryServer) Send(m *RunQueryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Firestore_Write_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(FirestoreServer).Write(&firestoreWriteServer{stream}) +} + +type Firestore_WriteServer interface { + Send(*WriteResponse) error + Recv() (*WriteRequest, error) + grpc.ServerStream +} + +type firestoreWriteServer struct { + grpc.ServerStream +} + +func (x *firestoreWriteServer) Send(m *WriteResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *firestoreWriteServer) Recv() (*WriteRequest, error) { + m := new(WriteRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Firestore_Listen_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(FirestoreServer).Listen(&firestoreListenServer{stream}) +} + +type Firestore_ListenServer interface { + Send(*ListenResponse) error + Recv() (*ListenRequest, error) + grpc.ServerStream +} + +type firestoreListenServer struct { + grpc.ServerStream +} + +func (x *firestoreListenServer) Send(m *ListenResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *firestoreListenServer) Recv() (*ListenRequest, error) { + m := new(ListenRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Firestore_ListCollectionIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListCollectionIdsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FirestoreServer).ListCollectionIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.firestore.v1.Firestore/ListCollectionIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FirestoreServer).ListCollectionIds(ctx, req.(*ListCollectionIdsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Firestore_serviceDesc = grpc.ServiceDesc{ + ServiceName: "google.firestore.v1.Firestore", + HandlerType: (*FirestoreServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetDocument", + Handler: _Firestore_GetDocument_Handler, + }, + { + MethodName: "ListDocuments", + Handler: _Firestore_ListDocuments_Handler, + }, + { + MethodName: "CreateDocument", + Handler: _Firestore_CreateDocument_Handler, + }, + { + MethodName: "UpdateDocument", + Handler: _Firestore_UpdateDocument_Handler, + }, + { + MethodName: "DeleteDocument", + Handler: _Firestore_DeleteDocument_Handler, + }, + { + MethodName: "BeginTransaction", + Handler: _Firestore_BeginTransaction_Handler, + }, + { + MethodName: "Commit", + Handler: _Firestore_Commit_Handler, + }, + { + MethodName: "Rollback", + Handler: _Firestore_Rollback_Handler, + }, + { + MethodName: "ListCollectionIds", + Handler: _Firestore_ListCollectionIds_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "BatchGetDocuments", + Handler: _Firestore_BatchGetDocuments_Handler, + ServerStreams: true, + }, + { + StreamName: "RunQuery", + Handler: _Firestore_RunQuery_Handler, + ServerStreams: true, + }, + { + StreamName: "Write", + Handler: _Firestore_Write_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "Listen", + Handler: _Firestore_Listen_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "google/firestore/v1/firestore.proto", +} + +func init() { + proto.RegisterFile("google/firestore/v1/firestore.proto", fileDescriptor_firestore_8cfb6beecf7e5e42) +} + +var fileDescriptor_firestore_8cfb6beecf7e5e42 = []byte{ + // 2188 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0xcd, 0x6f, 0xdb, 0xc8, + 0x15, 0xd7, 0x50, 0x1f, 0x96, 0x9e, 0x3e, 0xac, 0x9d, 0xe6, 0x43, 0x51, 0x36, 0x58, 0x87, 0x6e, + 0x1a, 0x57, 0xed, 0x4a, 0xb1, 0x8b, 0xb4, 0x89, 0x9d, 0xed, 0x26, 0xb6, 0x95, 0xc8, 0x5d, 0xc7, + 0xc9, 0xd2, 0xde, 0x14, 0x58, 0x04, 0x50, 0x69, 0x72, 0xa2, 0x70, 0x2d, 0x91, 0x5c, 0x92, 0xb2, + 0xa3, 0xdd, 0xfa, 0xd0, 0x0f, 0xf4, 0x52, 0xb4, 0x7b, 0xe8, 0xa2, 0x28, 0xb0, 0x97, 0xa2, 0xe8, + 0x61, 0xd1, 0x4b, 0x81, 0xde, 0x0a, 0xf4, 0x2f, 0xe8, 0xad, 0x58, 0x74, 0xaf, 0xbd, 0xb4, 0xe8, + 0x1f, 0xd1, 0x43, 0x0b, 0xce, 0x0c, 0x29, 0x92, 0xa2, 0xbe, 0x9c, 0xa0, 0x37, 0xcd, 0xe3, 0x9b, + 0x37, 0xbf, 0xf7, 0x39, 0x6f, 0x9e, 0x60, 0xb9, 0x63, 0x18, 0x9d, 0x2e, 0x69, 0x3c, 0xd3, 0x2c, + 0x62, 0x3b, 0x86, 0x45, 0x1a, 0xc7, 0xab, 0xc3, 0x45, 0xdd, 0xb4, 0x0c, 0xc7, 0xc0, 0x5f, 0x61, + 0x4c, 0xf5, 0x21, 0xfd, 0x78, 0xb5, 0xfa, 0x3a, 0xdf, 0x29, 0x9b, 0x5a, 0x43, 0xd6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 0xc8, + 0x74, 0xe5, 0x43, 0xd2, 0xb5, 0x2b, 0x69, 0x2a, 0xf6, 0xcd, 0x49, 0xa9, 0x49, 0x55, 0xa8, 0xef, + 0x52, 0xfe, 0xa6, 0xee, 0x58, 0x03, 0x89, 0x6f, 0xae, 0xde, 0x86, 0x7c, 0x80, 0x8c, 0xcb, 0x90, + 0x3c, 0x22, 0x03, 0xae, 0xa0, 0xfb, 0x13, 0x9f, 0x83, 0xf4, 0xb1, 0xdc, 0xed, 0x13, 0xae, 0x17, + 0x5b, 0xac, 0x0b, 0xb7, 0x90, 0x7b, 0x91, 0x14, 0xbd, 0xd4, 0x67, 0x3e, 0x0f, 0xd9, 0x01, 0x45, + 0xec, 0x10, 0xd5, 0x49, 0x88, 0xd3, 0x29, 0x52, 0x75, 0x92, 0xaf, 0xa2, 0xea, 0xa4, 0xe6, 0xaa, + 0x3a, 0xbf, 0x17, 0xa0, 0xb8, 0x4b, 0x43, 0x7c, 0x16, 0xcf, 0xdf, 0x01, 0x90, 0x55, 0xb5, 0xed, + 0xc8, 0x56, 0x87, 0x78, 0xdd, 0xce, 0xe5, 0xf8, 0x54, 0xa5, 0x2c, 0xad, 0x84, 0x94, 0x93, 0x55, + 0x95, 0x2d, 0xf0, 0x35, 0x28, 0x5a, 0xa4, 0x67, 0x1c, 0x13, 0x4f, 0x00, 0x7d, 0x10, 0xb5, 0x12, + 0x52, 0x81, 0x91, 0x39, 0xdb, 0x7d, 0xdf, 0xd5, 0x29, 0x6a, 0x8f, 0x7a, 0xec, 0x01, 0x21, 0xd0, + 0xaf, 0xd8, 0xd7, 0x9b, 0x8b, 0x50, 0x64, 0x10, 0xdb, 0xca, 0x73, 0x59, 0xef, 0x10, 0xf1, 0xb3, + 0x24, 0x94, 0xbc, 0x13, 0xb9, 0xf7, 0x5b, 0x11, 0x9e, 0x89, 0xcd, 0x1f, 0x53, 0x6d, 0x8b, 0x32, + 0xba, 0x0a, 0x3b, 0x81, 0x35, 0xde, 0x83, 0x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0x88, 0xc8, 0x6d, 0x5c, + 0x84, 0x3c, 0x57, 0xd5, 0x5b, 0x7a, 0x96, 0x75, 0x23, 0xe0, 0x5f, 0x02, 0x14, 0x82, 0x39, 0x86, + 0x7f, 0x00, 0x38, 0x94, 0x9d, 0x94, 0x8d, 0x62, 0x2e, 0xad, 0xad, 0x4d, 0x4d, 0xd1, 0xd0, 0xe2, + 0x60, 0x60, 0x12, 0xa9, 0xec, 0x44, 0x28, 0xf8, 0x0a, 0x80, 0x6f, 0x7b, 0x66, 0xb8, 0xb4, 0x94, + 0xf3, 0x8c, 0x6f, 0xe3, 0x15, 0x48, 0x2b, 0x72, 0xdf, 0xf6, 0x52, 0x19, 0x7b, 0x67, 0x5a, 0xa6, + 0x52, 0xdf, 0xa7, 0x13, 0x35, 0x89, 0x31, 0xb8, 0x37, 0xc5, 0x68, 0x90, 0x84, 0x43, 0x24, 0xd4, + 0x00, 0x64, 0x66, 0x6f, 0x00, 0xc4, 0x3d, 0x28, 0x47, 0x55, 0xc1, 0x45, 0xc8, 0xed, 0x3d, 0x6a, + 0x6f, 0xb5, 0xee, 0xed, 0x3d, 0x68, 0x96, 0x13, 0x78, 0x01, 0x92, 0xf7, 0xb6, 0xb7, 0xcb, 0x08, + 0x03, 0x64, 0xa4, 0xe6, 0xc3, 0x47, 0x4f, 0x9a, 0x65, 0x01, 0xe7, 0x61, 0x61, 0xeb, 0x3d, 0x49, + 0x6a, 0xee, 0x1d, 0x94, 0x93, 0x38, 0x07, 0x69, 0xa9, 0xb9, 0xdf, 0x3c, 0x28, 0xa7, 0x44, 0x1d, + 0x2a, 0x6e, 0x19, 0xdc, 0x0a, 0x8c, 0x39, 0xa6, 0x0e, 0xca, 0x42, 0x33, 0x30, 0x61, 0xe2, 0x0c, + 0x2c, 0x19, 0x99, 0x81, 0x89, 0x1f, 0xc0, 0xa5, 0x98, 0xf3, 0x78, 0x05, 0xbe, 0x06, 0xa5, 0xd0, + 0x10, 0x86, 0xb5, 0xed, 0x39,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fe, 0xb7, 0xa7, 0x4f, 0x56, 0x0f, 0x33, 0xf4, 0x9c, 0x6f, 0xfd, 0x2f, + 0x00, 0x00, 0xff, 0xff, 0x03, 0x8c, 0x0d, 0x98, 0xcc, 0x1f, 0x00, 0x00, +} diff --git a/googleapis/firestore/v1/query.pb.go b/googleapis/firestore/v1/query.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..a4de533afb103d0d0505f22fe1acc8c34e246718 --- /dev/null +++ b/googleapis/firestore/v1/query.pb.go @@ -0,0 +1,1016 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/v1/query.proto + +package firestore // import "google.golang.org/genproto/googleapis/firestore/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import wrappers "github.com/golang/protobuf/ptypes/wrappers" +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 + +// 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 + +// A sort direction. +type StructuredQuery_Direction int32 + +const ( + // Unspecified. + StructuredQuery_DIRECTION_UNSPECIFIED StructuredQuery_Direction = 0 + // Ascending. + StructuredQuery_ASCENDING StructuredQuery_Direction = 1 + // Descending. + StructuredQuery_DESCENDING StructuredQuery_Direction = 2 +) + +var StructuredQuery_Direction_name = map[int32]string{ + 0: "DIRECTION_UNSPECIFIED", + 1: "ASCENDING", + 2: "DESCENDING", +} +var StructuredQuery_Direction_value = map[string]int32{ + "DIRECTION_UNSPECIFIED": 0, + "ASCENDING": 1, + "DESCENDING": 2, +} + +func (x StructuredQuery_Direction) String() string { + return proto.EnumName(StructuredQuery_Direction_name, int32(x)) +} +func (StructuredQuery_Direction) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 0} +} + +// A composite filter operator. +type StructuredQuery_CompositeFilter_Operator int32 + +const ( + // Unspecified. This value must not be used. + StructuredQuery_CompositeFilter_OPERATOR_UNSPECIFIED StructuredQuery_CompositeFilter_Operator = 0 + // The results are required to satisfy each of the combined filters. + StructuredQuery_CompositeFilter_AND StructuredQuery_CompositeFilter_Operator = 1 +) + +var StructuredQuery_CompositeFilter_Operator_name = map[int32]string{ + 0: "OPERATOR_UNSPECIFIED", + 1: "AND", +} +var StructuredQuery_CompositeFilter_Operator_value = map[string]int32{ + "OPERATOR_UNSPECIFIED": 0, + "AND": 1, +} + +func (x StructuredQuery_CompositeFilter_Operator) String() string { + return proto.EnumName(StructuredQuery_CompositeFilter_Operator_name, int32(x)) +} +func (StructuredQuery_CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 2, 0} +} + +// A field filter operator. +type StructuredQuery_FieldFilter_Operator int32 + +const ( + // Unspecified. This value must not be used. + StructuredQuery_FieldFilter_OPERATOR_UNSPECIFIED StructuredQuery_FieldFilter_Operator = 0 + // Less than. Requires that the field come first in `order_by`. + StructuredQuery_FieldFilter_LESS_THAN StructuredQuery_FieldFilter_Operator = 1 + // Less than or equal. Requires that the field come first in `order_by`. + StructuredQuery_FieldFilter_LESS_THAN_OR_EQUAL StructuredQuery_FieldFilter_Operator = 2 + // Greater than. Requires that the field come first in `order_by`. + StructuredQuery_FieldFilter_GREATER_THAN StructuredQuery_FieldFilter_Operator = 3 + // Greater than or equal. Requires that the field come first in + // `order_by`. + StructuredQuery_FieldFilter_GREATER_THAN_OR_EQUAL StructuredQuery_FieldFilter_Operator = 4 + // Equal. + StructuredQuery_FieldFilter_EQUAL StructuredQuery_FieldFilter_Operator = 5 + // Contains. Requires that the field is an array. + StructuredQuery_FieldFilter_ARRAY_CONTAINS StructuredQuery_FieldFilter_Operator = 7 +) + +var StructuredQuery_FieldFilter_Operator_name = map[int32]string{ + 0: "OPERATOR_UNSPECIFIED", + 1: "LESS_THAN", + 2: "LESS_THAN_OR_EQUAL", + 3: "GREATER_THAN", + 4: "GREATER_THAN_OR_EQUAL", + 5: "EQUAL", + 7: "ARRAY_CONTAINS", +} +var StructuredQuery_FieldFilter_Operator_value = map[string]int32{ + "OPERATOR_UNSPECIFIED": 0, + "LESS_THAN": 1, + "LESS_THAN_OR_EQUAL": 2, + "GREATER_THAN": 3, + "GREATER_THAN_OR_EQUAL": 4, + "EQUAL": 5, + "ARRAY_CONTAINS": 7, +} + +func (x StructuredQuery_FieldFilter_Operator) String() string { + return proto.EnumName(StructuredQuery_FieldFilter_Operator_name, int32(x)) +} +func (StructuredQuery_FieldFilter_Operator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 3, 0} +} + +// A unary operator. +type StructuredQuery_UnaryFilter_Operator int32 + +const ( + // Unspecified. This value must not be used. + StructuredQuery_UnaryFilter_OPERATOR_UNSPECIFIED StructuredQuery_UnaryFilter_Operator = 0 + // Test if a field is equal to NaN. + StructuredQuery_UnaryFilter_IS_NAN StructuredQuery_UnaryFilter_Operator = 2 + // Test if an exprestion evaluates to Null. + StructuredQuery_UnaryFilter_IS_NULL StructuredQuery_UnaryFilter_Operator = 3 +) + +var StructuredQuery_UnaryFilter_Operator_name = map[int32]string{ + 0: "OPERATOR_UNSPECIFIED", + 2: "IS_NAN", + 3: "IS_NULL", +} +var StructuredQuery_UnaryFilter_Operator_value = map[string]int32{ + "OPERATOR_UNSPECIFIED": 0, + "IS_NAN": 2, + "IS_NULL": 3, +} + +func (x StructuredQuery_UnaryFilter_Operator) String() string { + return proto.EnumName(StructuredQuery_UnaryFilter_Operator_name, int32(x)) +} +func (StructuredQuery_UnaryFilter_Operator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 4, 0} +} + +// A Firestore query. +type StructuredQuery struct { + // The projection to return. + Select *StructuredQuery_Projection `protobuf:"bytes,1,opt,name=select,proto3" json:"select,omitempty"` + // The collections to query. + From []*StructuredQuery_CollectionSelector `protobuf:"bytes,2,rep,name=from,proto3" json:"from,omitempty"` + // The filter to apply. + Where *StructuredQuery_Filter `protobuf:"bytes,3,opt,name=where,proto3" json:"where,omitempty"` + // The order to apply to the query results. + // + // Firestore guarantees a stable ordering through the following rules: + // + // * Any field required to appear in `order_by`, that is not already + // specified in `order_by`, is appended to the order in field name order + // by default. + // * If an order on `__name__` is not specified, it is appended by default. + // + // Fields are appended with the same sort direction as the last order + // specified, or 'ASCENDING' if no order was specified. For example: + // + // * `SELECT * FROM Foo ORDER BY A` becomes + // `SELECT * FROM Foo ORDER BY A, __name__` + // * `SELECT * FROM Foo ORDER BY A DESC` becomes + // `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC` + // * `SELECT * FROM Foo WHERE A > 1` becomes + // `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__` + OrderBy []*StructuredQuery_Order `protobuf:"bytes,4,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // A starting point for the query results. + StartAt *Cursor `protobuf:"bytes,7,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` + // A end point for the query results. + EndAt *Cursor `protobuf:"bytes,8,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` + // The number of results to skip. + // + // Applies before limit, but after all other constraints. Must be >= 0 if + // specified. + Offset int32 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + // The maximum number of results to return. + // + // Applies after all other constraints. + // Must be >= 0 if specified. + Limit *wrappers.Int32Value `protobuf:"bytes,5,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery) Reset() { *m = StructuredQuery{} } +func (m *StructuredQuery) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery) ProtoMessage() {} +func (*StructuredQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0} +} +func (m *StructuredQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery.Unmarshal(m, b) +} +func (m *StructuredQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery.Merge(dst, src) +} +func (m *StructuredQuery) XXX_Size() int { + return xxx_messageInfo_StructuredQuery.Size(m) +} +func (m *StructuredQuery) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery proto.InternalMessageInfo + +func (m *StructuredQuery) GetSelect() *StructuredQuery_Projection { + if m != nil { + return m.Select + } + return nil +} + +func (m *StructuredQuery) GetFrom() []*StructuredQuery_CollectionSelector { + if m != nil { + return m.From + } + return nil +} + +func (m *StructuredQuery) GetWhere() *StructuredQuery_Filter { + if m != nil { + return m.Where + } + return nil +} + +func (m *StructuredQuery) GetOrderBy() []*StructuredQuery_Order { + if m != nil { + return m.OrderBy + } + return nil +} + +func (m *StructuredQuery) GetStartAt() *Cursor { + if m != nil { + return m.StartAt + } + return nil +} + +func (m *StructuredQuery) GetEndAt() *Cursor { + if m != nil { + return m.EndAt + } + return nil +} + +func (m *StructuredQuery) GetOffset() int32 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *StructuredQuery) GetLimit() *wrappers.Int32Value { + if m != nil { + return m.Limit + } + return nil +} + +// A selection of a collection, such as `messages as m1`. +type StructuredQuery_CollectionSelector struct { + // The collection ID. + // When set, selects only collections with this ID. + CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` + // When false, selects only collections that are immediate children of + // the `parent` specified in the containing `RunQueryRequest`. + // When true, selects all descendant collections. + AllDescendants bool `protobuf:"varint,3,opt,name=all_descendants,json=allDescendants,proto3" json:"all_descendants,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_CollectionSelector) Reset() { *m = StructuredQuery_CollectionSelector{} } +func (m *StructuredQuery_CollectionSelector) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_CollectionSelector) ProtoMessage() {} +func (*StructuredQuery_CollectionSelector) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 0} +} +func (m *StructuredQuery_CollectionSelector) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_CollectionSelector.Unmarshal(m, b) +} +func (m *StructuredQuery_CollectionSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_CollectionSelector.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_CollectionSelector) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_CollectionSelector.Merge(dst, src) +} +func (m *StructuredQuery_CollectionSelector) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_CollectionSelector.Size(m) +} +func (m *StructuredQuery_CollectionSelector) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_CollectionSelector.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_CollectionSelector proto.InternalMessageInfo + +func (m *StructuredQuery_CollectionSelector) GetCollectionId() string { + if m != nil { + return m.CollectionId + } + return "" +} + +func (m *StructuredQuery_CollectionSelector) GetAllDescendants() bool { + if m != nil { + return m.AllDescendants + } + return false +} + +// A filter. +type StructuredQuery_Filter struct { + // The type of filter. + // + // Types that are valid to be assigned to FilterType: + // *StructuredQuery_Filter_CompositeFilter + // *StructuredQuery_Filter_FieldFilter + // *StructuredQuery_Filter_UnaryFilter + FilterType isStructuredQuery_Filter_FilterType `protobuf_oneof:"filter_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_Filter) Reset() { *m = StructuredQuery_Filter{} } +func (m *StructuredQuery_Filter) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_Filter) ProtoMessage() {} +func (*StructuredQuery_Filter) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 1} +} +func (m *StructuredQuery_Filter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_Filter.Unmarshal(m, b) +} +func (m *StructuredQuery_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_Filter.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_Filter) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_Filter.Merge(dst, src) +} +func (m *StructuredQuery_Filter) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_Filter.Size(m) +} +func (m *StructuredQuery_Filter) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_Filter.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_Filter proto.InternalMessageInfo + +type isStructuredQuery_Filter_FilterType interface { + isStructuredQuery_Filter_FilterType() +} + +type StructuredQuery_Filter_CompositeFilter struct { + CompositeFilter *StructuredQuery_CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"` +} + +type StructuredQuery_Filter_FieldFilter struct { + FieldFilter *StructuredQuery_FieldFilter `protobuf:"bytes,2,opt,name=field_filter,json=fieldFilter,proto3,oneof"` +} + +type StructuredQuery_Filter_UnaryFilter struct { + UnaryFilter *StructuredQuery_UnaryFilter `protobuf:"bytes,3,opt,name=unary_filter,json=unaryFilter,proto3,oneof"` +} + +func (*StructuredQuery_Filter_CompositeFilter) isStructuredQuery_Filter_FilterType() {} + +func (*StructuredQuery_Filter_FieldFilter) isStructuredQuery_Filter_FilterType() {} + +func (*StructuredQuery_Filter_UnaryFilter) isStructuredQuery_Filter_FilterType() {} + +func (m *StructuredQuery_Filter) GetFilterType() isStructuredQuery_Filter_FilterType { + if m != nil { + return m.FilterType + } + return nil +} + +func (m *StructuredQuery_Filter) GetCompositeFilter() *StructuredQuery_CompositeFilter { + if x, ok := m.GetFilterType().(*StructuredQuery_Filter_CompositeFilter); ok { + return x.CompositeFilter + } + return nil +} + +func (m *StructuredQuery_Filter) GetFieldFilter() *StructuredQuery_FieldFilter { + if x, ok := m.GetFilterType().(*StructuredQuery_Filter_FieldFilter); ok { + return x.FieldFilter + } + return nil +} + +func (m *StructuredQuery_Filter) GetUnaryFilter() *StructuredQuery_UnaryFilter { + if x, ok := m.GetFilterType().(*StructuredQuery_Filter_UnaryFilter); ok { + return x.UnaryFilter + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*StructuredQuery_Filter) 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{}) { + return _StructuredQuery_Filter_OneofMarshaler, _StructuredQuery_Filter_OneofUnmarshaler, _StructuredQuery_Filter_OneofSizer, []interface{}{ + (*StructuredQuery_Filter_CompositeFilter)(nil), + (*StructuredQuery_Filter_FieldFilter)(nil), + (*StructuredQuery_Filter_UnaryFilter)(nil), + } +} + +func _StructuredQuery_Filter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*StructuredQuery_Filter) + // filter_type + switch x := m.FilterType.(type) { + case *StructuredQuery_Filter_CompositeFilter: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CompositeFilter); err != nil { + return err + } + case *StructuredQuery_Filter_FieldFilter: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.FieldFilter); err != nil { + return err + } + case *StructuredQuery_Filter_UnaryFilter: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.UnaryFilter); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("StructuredQuery_Filter.FilterType has unexpected type %T", x) + } + return nil +} + +func _StructuredQuery_Filter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*StructuredQuery_Filter) + switch tag { + case 1: // filter_type.composite_filter + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(StructuredQuery_CompositeFilter) + err := b.DecodeMessage(msg) + m.FilterType = &StructuredQuery_Filter_CompositeFilter{msg} + return true, err + case 2: // filter_type.field_filter + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(StructuredQuery_FieldFilter) + err := b.DecodeMessage(msg) + m.FilterType = &StructuredQuery_Filter_FieldFilter{msg} + return true, err + case 3: // filter_type.unary_filter + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(StructuredQuery_UnaryFilter) + err := b.DecodeMessage(msg) + m.FilterType = &StructuredQuery_Filter_UnaryFilter{msg} + return true, err + default: + return false, nil + } +} + +func _StructuredQuery_Filter_OneofSizer(msg proto.Message) (n int) { + m := msg.(*StructuredQuery_Filter) + // filter_type + switch x := m.FilterType.(type) { + case *StructuredQuery_Filter_CompositeFilter: + s := proto.Size(x.CompositeFilter) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StructuredQuery_Filter_FieldFilter: + s := proto.Size(x.FieldFilter) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StructuredQuery_Filter_UnaryFilter: + s := proto.Size(x.UnaryFilter) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A filter that merges multiple other filters using the given operator. +type StructuredQuery_CompositeFilter struct { + // The operator for combining multiple filters. + Op StructuredQuery_CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.firestore.v1.StructuredQuery_CompositeFilter_Operator" json:"op,omitempty"` + // The list of filters to combine. + // Must contain at least one filter. + Filters []*StructuredQuery_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_CompositeFilter) Reset() { *m = StructuredQuery_CompositeFilter{} } +func (m *StructuredQuery_CompositeFilter) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_CompositeFilter) ProtoMessage() {} +func (*StructuredQuery_CompositeFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 2} +} +func (m *StructuredQuery_CompositeFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_CompositeFilter.Unmarshal(m, b) +} +func (m *StructuredQuery_CompositeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_CompositeFilter.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_CompositeFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_CompositeFilter.Merge(dst, src) +} +func (m *StructuredQuery_CompositeFilter) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_CompositeFilter.Size(m) +} +func (m *StructuredQuery_CompositeFilter) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_CompositeFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_CompositeFilter proto.InternalMessageInfo + +func (m *StructuredQuery_CompositeFilter) GetOp() StructuredQuery_CompositeFilter_Operator { + if m != nil { + return m.Op + } + return StructuredQuery_CompositeFilter_OPERATOR_UNSPECIFIED +} + +func (m *StructuredQuery_CompositeFilter) GetFilters() []*StructuredQuery_Filter { + if m != nil { + return m.Filters + } + return nil +} + +// A filter on a specific field. +type StructuredQuery_FieldFilter struct { + // The field to filter by. + Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + // The operator to filter by. + Op StructuredQuery_FieldFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.firestore.v1.StructuredQuery_FieldFilter_Operator" json:"op,omitempty"` + // The value to compare to. + Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_FieldFilter) Reset() { *m = StructuredQuery_FieldFilter{} } +func (m *StructuredQuery_FieldFilter) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_FieldFilter) ProtoMessage() {} +func (*StructuredQuery_FieldFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 3} +} +func (m *StructuredQuery_FieldFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_FieldFilter.Unmarshal(m, b) +} +func (m *StructuredQuery_FieldFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_FieldFilter.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_FieldFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_FieldFilter.Merge(dst, src) +} +func (m *StructuredQuery_FieldFilter) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_FieldFilter.Size(m) +} +func (m *StructuredQuery_FieldFilter) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_FieldFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_FieldFilter proto.InternalMessageInfo + +func (m *StructuredQuery_FieldFilter) GetField() *StructuredQuery_FieldReference { + if m != nil { + return m.Field + } + return nil +} + +func (m *StructuredQuery_FieldFilter) GetOp() StructuredQuery_FieldFilter_Operator { + if m != nil { + return m.Op + } + return StructuredQuery_FieldFilter_OPERATOR_UNSPECIFIED +} + +func (m *StructuredQuery_FieldFilter) GetValue() *Value { + if m != nil { + return m.Value + } + return nil +} + +// A filter with a single operand. +type StructuredQuery_UnaryFilter struct { + // The unary operator to apply. + Op StructuredQuery_UnaryFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.firestore.v1.StructuredQuery_UnaryFilter_Operator" json:"op,omitempty"` + // The argument to the filter. + // + // Types that are valid to be assigned to OperandType: + // *StructuredQuery_UnaryFilter_Field + OperandType isStructuredQuery_UnaryFilter_OperandType `protobuf_oneof:"operand_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_UnaryFilter) Reset() { *m = StructuredQuery_UnaryFilter{} } +func (m *StructuredQuery_UnaryFilter) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_UnaryFilter) ProtoMessage() {} +func (*StructuredQuery_UnaryFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 4} +} +func (m *StructuredQuery_UnaryFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_UnaryFilter.Unmarshal(m, b) +} +func (m *StructuredQuery_UnaryFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_UnaryFilter.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_UnaryFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_UnaryFilter.Merge(dst, src) +} +func (m *StructuredQuery_UnaryFilter) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_UnaryFilter.Size(m) +} +func (m *StructuredQuery_UnaryFilter) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_UnaryFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_UnaryFilter proto.InternalMessageInfo + +func (m *StructuredQuery_UnaryFilter) GetOp() StructuredQuery_UnaryFilter_Operator { + if m != nil { + return m.Op + } + return StructuredQuery_UnaryFilter_OPERATOR_UNSPECIFIED +} + +type isStructuredQuery_UnaryFilter_OperandType interface { + isStructuredQuery_UnaryFilter_OperandType() +} + +type StructuredQuery_UnaryFilter_Field struct { + Field *StructuredQuery_FieldReference `protobuf:"bytes,2,opt,name=field,proto3,oneof"` +} + +func (*StructuredQuery_UnaryFilter_Field) isStructuredQuery_UnaryFilter_OperandType() {} + +func (m *StructuredQuery_UnaryFilter) GetOperandType() isStructuredQuery_UnaryFilter_OperandType { + if m != nil { + return m.OperandType + } + return nil +} + +func (m *StructuredQuery_UnaryFilter) GetField() *StructuredQuery_FieldReference { + if x, ok := m.GetOperandType().(*StructuredQuery_UnaryFilter_Field); ok { + return x.Field + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*StructuredQuery_UnaryFilter) 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{}) { + return _StructuredQuery_UnaryFilter_OneofMarshaler, _StructuredQuery_UnaryFilter_OneofUnmarshaler, _StructuredQuery_UnaryFilter_OneofSizer, []interface{}{ + (*StructuredQuery_UnaryFilter_Field)(nil), + } +} + +func _StructuredQuery_UnaryFilter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*StructuredQuery_UnaryFilter) + // operand_type + switch x := m.OperandType.(type) { + case *StructuredQuery_UnaryFilter_Field: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Field); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("StructuredQuery_UnaryFilter.OperandType has unexpected type %T", x) + } + return nil +} + +func _StructuredQuery_UnaryFilter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*StructuredQuery_UnaryFilter) + switch tag { + case 2: // operand_type.field + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(StructuredQuery_FieldReference) + err := b.DecodeMessage(msg) + m.OperandType = &StructuredQuery_UnaryFilter_Field{msg} + return true, err + default: + return false, nil + } +} + +func _StructuredQuery_UnaryFilter_OneofSizer(msg proto.Message) (n int) { + m := msg.(*StructuredQuery_UnaryFilter) + // operand_type + switch x := m.OperandType.(type) { + case *StructuredQuery_UnaryFilter_Field: + s := proto.Size(x.Field) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// An order on a field. +type StructuredQuery_Order struct { + // The field to order by. + Field *StructuredQuery_FieldReference `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + // The direction to order by. Defaults to `ASCENDING`. + Direction StructuredQuery_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.firestore.v1.StructuredQuery_Direction" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_Order) Reset() { *m = StructuredQuery_Order{} } +func (m *StructuredQuery_Order) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_Order) ProtoMessage() {} +func (*StructuredQuery_Order) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 5} +} +func (m *StructuredQuery_Order) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_Order.Unmarshal(m, b) +} +func (m *StructuredQuery_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_Order.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_Order) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_Order.Merge(dst, src) +} +func (m *StructuredQuery_Order) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_Order.Size(m) +} +func (m *StructuredQuery_Order) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_Order.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_Order proto.InternalMessageInfo + +func (m *StructuredQuery_Order) GetField() *StructuredQuery_FieldReference { + if m != nil { + return m.Field + } + return nil +} + +func (m *StructuredQuery_Order) GetDirection() StructuredQuery_Direction { + if m != nil { + return m.Direction + } + return StructuredQuery_DIRECTION_UNSPECIFIED +} + +// A reference to a field, such as `max(messages.time) as max_time`. +type StructuredQuery_FieldReference struct { + FieldPath string `protobuf:"bytes,2,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_FieldReference) Reset() { *m = StructuredQuery_FieldReference{} } +func (m *StructuredQuery_FieldReference) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_FieldReference) ProtoMessage() {} +func (*StructuredQuery_FieldReference) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 6} +} +func (m *StructuredQuery_FieldReference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_FieldReference.Unmarshal(m, b) +} +func (m *StructuredQuery_FieldReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_FieldReference.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_FieldReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_FieldReference.Merge(dst, src) +} +func (m *StructuredQuery_FieldReference) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_FieldReference.Size(m) +} +func (m *StructuredQuery_FieldReference) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_FieldReference.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_FieldReference proto.InternalMessageInfo + +func (m *StructuredQuery_FieldReference) GetFieldPath() string { + if m != nil { + return m.FieldPath + } + return "" +} + +// The projection of document's fields to return. +type StructuredQuery_Projection struct { + // The fields to return. + // + // If empty, all fields are returned. To only return the name + // of the document, use `['__name__']`. + Fields []*StructuredQuery_FieldReference `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredQuery_Projection) Reset() { *m = StructuredQuery_Projection{} } +func (m *StructuredQuery_Projection) String() string { return proto.CompactTextString(m) } +func (*StructuredQuery_Projection) ProtoMessage() {} +func (*StructuredQuery_Projection) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{0, 7} +} +func (m *StructuredQuery_Projection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredQuery_Projection.Unmarshal(m, b) +} +func (m *StructuredQuery_Projection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredQuery_Projection.Marshal(b, m, deterministic) +} +func (dst *StructuredQuery_Projection) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredQuery_Projection.Merge(dst, src) +} +func (m *StructuredQuery_Projection) XXX_Size() int { + return xxx_messageInfo_StructuredQuery_Projection.Size(m) +} +func (m *StructuredQuery_Projection) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredQuery_Projection.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredQuery_Projection proto.InternalMessageInfo + +func (m *StructuredQuery_Projection) GetFields() []*StructuredQuery_FieldReference { + if m != nil { + return m.Fields + } + return nil +} + +// A position in a query result set. +type Cursor struct { + // The values that represent a position, in the order they appear in + // the order by clause of a query. + // + // Can contain fewer values than specified in the order by clause. + Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // If the position is just before or just after the given values, relative + // to the sort order defined by the query. + Before bool `protobuf:"varint,2,opt,name=before,proto3" json:"before,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Cursor) Reset() { *m = Cursor{} } +func (m *Cursor) String() string { return proto.CompactTextString(m) } +func (*Cursor) ProtoMessage() {} +func (*Cursor) Descriptor() ([]byte, []int) { + return fileDescriptor_query_3e898438c0f3b928, []int{1} +} +func (m *Cursor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Cursor.Unmarshal(m, b) +} +func (m *Cursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Cursor.Marshal(b, m, deterministic) +} +func (dst *Cursor) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cursor.Merge(dst, src) +} +func (m *Cursor) XXX_Size() int { + return xxx_messageInfo_Cursor.Size(m) +} +func (m *Cursor) XXX_DiscardUnknown() { + xxx_messageInfo_Cursor.DiscardUnknown(m) +} + +var xxx_messageInfo_Cursor proto.InternalMessageInfo + +func (m *Cursor) GetValues() []*Value { + if m != nil { + return m.Values + } + return nil +} + +func (m *Cursor) GetBefore() bool { + if m != nil { + return m.Before + } + return false +} + +func init() { + proto.RegisterType((*StructuredQuery)(nil), "google.firestore.v1.StructuredQuery") + proto.RegisterType((*StructuredQuery_CollectionSelector)(nil), "google.firestore.v1.StructuredQuery.CollectionSelector") + proto.RegisterType((*StructuredQuery_Filter)(nil), "google.firestore.v1.StructuredQuery.Filter") + proto.RegisterType((*StructuredQuery_CompositeFilter)(nil), "google.firestore.v1.StructuredQuery.CompositeFilter") + proto.RegisterType((*StructuredQuery_FieldFilter)(nil), "google.firestore.v1.StructuredQuery.FieldFilter") + proto.RegisterType((*StructuredQuery_UnaryFilter)(nil), "google.firestore.v1.StructuredQuery.UnaryFilter") + proto.RegisterType((*StructuredQuery_Order)(nil), "google.firestore.v1.StructuredQuery.Order") + proto.RegisterType((*StructuredQuery_FieldReference)(nil), "google.firestore.v1.StructuredQuery.FieldReference") + proto.RegisterType((*StructuredQuery_Projection)(nil), "google.firestore.v1.StructuredQuery.Projection") + proto.RegisterType((*Cursor)(nil), "google.firestore.v1.Cursor") + proto.RegisterEnum("google.firestore.v1.StructuredQuery_Direction", StructuredQuery_Direction_name, StructuredQuery_Direction_value) + proto.RegisterEnum("google.firestore.v1.StructuredQuery_CompositeFilter_Operator", StructuredQuery_CompositeFilter_Operator_name, StructuredQuery_CompositeFilter_Operator_value) + proto.RegisterEnum("google.firestore.v1.StructuredQuery_FieldFilter_Operator", StructuredQuery_FieldFilter_Operator_name, StructuredQuery_FieldFilter_Operator_value) + proto.RegisterEnum("google.firestore.v1.StructuredQuery_UnaryFilter_Operator", StructuredQuery_UnaryFilter_Operator_name, StructuredQuery_UnaryFilter_Operator_value) +} + +func init() { + proto.RegisterFile("google/firestore/v1/query.proto", fileDescriptor_query_3e898438c0f3b928) +} + +var fileDescriptor_query_3e898438c0f3b928 = []byte{ + // 977 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdf, 0x6e, 0xe3, 0xc4, + 0x17, 0xae, 0x9d, 0xe6, 0xdf, 0x49, 0x9b, 0x5a, 0xf3, 0xfb, 0xb1, 0x64, 0xcd, 0xbf, 0x2a, 0x5c, + 0x50, 0x81, 0x70, 0xb6, 0x2d, 0x02, 0x21, 0xd8, 0x0b, 0x37, 0x71, 0x5b, 0xab, 0xc5, 0xc9, 0x4e, + 0xd2, 0x4a, 0x8b, 0x2a, 0x59, 0xae, 0x3d, 0x4e, 0x8d, 0x5c, 0x8f, 0x19, 0x8f, 0xbb, 0xea, 0x93, + 0x70, 0x8b, 0x10, 0x17, 0x88, 0x1b, 0xde, 0x83, 0x07, 0xe0, 0x35, 0xb8, 0xe1, 0x01, 0x90, 0xc7, + 0x93, 0xa4, 0xd9, 0xad, 0x20, 0xad, 0xb8, 0xf3, 0x39, 0x73, 0xbe, 0x6f, 0xce, 0x7c, 0xe7, 0x9c, + 0x19, 0xc3, 0x07, 0x53, 0x4a, 0xa7, 0x31, 0xe9, 0x85, 0x11, 0x23, 0x19, 0xa7, 0x8c, 0xf4, 0x6e, + 0x76, 0x7b, 0xdf, 0xe7, 0x84, 0xdd, 0x1a, 0x29, 0xa3, 0x9c, 0xa2, 0xff, 0x95, 0x01, 0xc6, 0x3c, + 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0xc9, 0xc8, 0x3a, 0x8a, 0xc8, 0xee, 0x9f, 0x66, + 0x48, 0x46, 0x16, 0xef, 0xd9, 0x25, 0x09, 0x29, 0x23, 0xe2, 0xe8, 0x0d, 0x2c, 0xad, 0x83, 0x9f, + 0x15, 0x78, 0xdb, 0xa7, 0xd7, 0xf7, 0x31, 0x1c, 0x80, 0x38, 0xd6, 0xa8, 0x78, 0xd9, 0x46, 0xca, + 0xb7, 0x5f, 0xcb, 0x90, 0x29, 0x8d, 0xbd, 0x64, 0x6a, 0x50, 0x36, 0xed, 0x4d, 0x49, 0x22, 0xde, + 0xbd, 0x5e, 0xb9, 0xe4, 0xa5, 0x51, 0xb6, 0xf4, 0x53, 0xf4, 0xd5, 0xdc, 0xf8, 0x49, 0x5d, 0x3f, + 0xea, 0x1f, 0x8e, 0x7f, 0x55, 0x9f, 0x1e, 0x95, 0x2c, 0xfd, 0x98, 0xe6, 0x81, 0x71, 0x38, 0xdf, + 0xee, 0x7c, 0xf7, 0xf7, 0xd9, 0xda, 0x85, 0x58, 0xbb, 0x98, 0xaf, 0x5d, 0x9c, 0xef, 0x5e, 0xd6, + 0xc4, 0x3e, 0xfb, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x24, 0xd2, 0xba, 0xcf, 0x09, 0x00, + 0x00, +} diff --git a/googleapis/firestore/v1/write.pb.go b/googleapis/firestore/v1/write.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..aebf0e4ec6a96a8880a1b5d08d3b97f7a783e737 --- /dev/null +++ b/googleapis/firestore/v1/write.pb.go @@ -0,0 +1,973 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/firestore/v1/write.proto + +package firestore // import "google.golang.org/genproto/googleapis/firestore/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +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 + +// 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 + +// A value that is calculated by the server. +type DocumentTransform_FieldTransform_ServerValue int32 + +const ( + // Unspecified. This value must not be used. + DocumentTransform_FieldTransform_SERVER_VALUE_UNSPECIFIED DocumentTransform_FieldTransform_ServerValue = 0 + // The time at which the server processed the request, with millisecond + // precision. + DocumentTransform_FieldTransform_REQUEST_TIME DocumentTransform_FieldTransform_ServerValue = 1 +) + +var DocumentTransform_FieldTransform_ServerValue_name = map[int32]string{ + 0: "SERVER_VALUE_UNSPECIFIED", + 1: "REQUEST_TIME", +} +var DocumentTransform_FieldTransform_ServerValue_value = map[string]int32{ + "SERVER_VALUE_UNSPECIFIED": 0, + "REQUEST_TIME": 1, +} + +func (x DocumentTransform_FieldTransform_ServerValue) String() string { + return proto.EnumName(DocumentTransform_FieldTransform_ServerValue_name, int32(x)) +} +func (DocumentTransform_FieldTransform_ServerValue) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{1, 0, 0} +} + +// A write on a document. +type Write struct { + // The operation to execute. + // + // Types that are valid to be assigned to Operation: + // *Write_Update + // *Write_Delete + // *Write_Transform + Operation isWrite_Operation `protobuf_oneof:"operation"` + // The fields to update in this write. + // + // This field can be set only when the operation is `update`. + // If the mask is not set for an `update` and the document exists, any + // existing data will be overwritten. + // If the mask is set and the document on the server has fields not covered by + // the mask, they are left unchanged. + // Fields referenced in the mask, but not present in the input document, are + // deleted from the document on the server. + // The field paths in this mask must not contain a reserved field name. + UpdateMask *DocumentMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // An optional precondition on the document. + // + // The write will fail if this is set and not met by the target document. + CurrentDocument *Precondition `protobuf:"bytes,4,opt,name=current_document,json=currentDocument,proto3" json:"current_document,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Write) Reset() { *m = Write{} } +func (m *Write) String() string { return proto.CompactTextString(m) } +func (*Write) ProtoMessage() {} +func (*Write) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{0} +} +func (m *Write) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Write.Unmarshal(m, b) +} +func (m *Write) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Write.Marshal(b, m, deterministic) +} +func (dst *Write) XXX_Merge(src proto.Message) { + xxx_messageInfo_Write.Merge(dst, src) +} +func (m *Write) XXX_Size() int { + return xxx_messageInfo_Write.Size(m) +} +func (m *Write) XXX_DiscardUnknown() { + xxx_messageInfo_Write.DiscardUnknown(m) +} + +var xxx_messageInfo_Write proto.InternalMessageInfo + +type isWrite_Operation interface { + isWrite_Operation() +} + +type Write_Update struct { + Update *Document `protobuf:"bytes,1,opt,name=update,proto3,oneof"` +} + +type Write_Delete struct { + Delete string `protobuf:"bytes,2,opt,name=delete,proto3,oneof"` +} + +type Write_Transform struct { + Transform *DocumentTransform `protobuf:"bytes,6,opt,name=transform,proto3,oneof"` +} + +func (*Write_Update) isWrite_Operation() {} + +func (*Write_Delete) isWrite_Operation() {} + +func (*Write_Transform) isWrite_Operation() {} + +func (m *Write) GetOperation() isWrite_Operation { + if m != nil { + return m.Operation + } + return nil +} + +func (m *Write) GetUpdate() *Document { + if x, ok := m.GetOperation().(*Write_Update); ok { + return x.Update + } + return nil +} + +func (m *Write) GetDelete() string { + if x, ok := m.GetOperation().(*Write_Delete); ok { + return x.Delete + } + return "" +} + +func (m *Write) GetTransform() *DocumentTransform { + if x, ok := m.GetOperation().(*Write_Transform); ok { + return x.Transform + } + return nil +} + +func (m *Write) GetUpdateMask() *DocumentMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +func (m *Write) GetCurrentDocument() *Precondition { + if m != nil { + return m.CurrentDocument + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Write) 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{}) { + return _Write_OneofMarshaler, _Write_OneofUnmarshaler, _Write_OneofSizer, []interface{}{ + (*Write_Update)(nil), + (*Write_Delete)(nil), + (*Write_Transform)(nil), + } +} + +func _Write_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Write) + // operation + switch x := m.Operation.(type) { + case *Write_Update: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Update); err != nil { + return err + } + case *Write_Delete: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.Delete) + case *Write_Transform: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Transform); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Write.Operation has unexpected type %T", x) + } + return nil +} + +func _Write_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Write) + switch tag { + case 1: // operation.update + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Document) + err := b.DecodeMessage(msg) + m.Operation = &Write_Update{msg} + return true, err + case 2: // operation.delete + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Operation = &Write_Delete{x} + return true, err + case 6: // operation.transform + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(DocumentTransform) + err := b.DecodeMessage(msg) + m.Operation = &Write_Transform{msg} + return true, err + default: + return false, nil + } +} + +func _Write_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Write) + // operation + switch x := m.Operation.(type) { + case *Write_Update: + s := proto.Size(x.Update) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Write_Delete: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Delete))) + n += len(x.Delete) + case *Write_Transform: + s := proto.Size(x.Transform) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A transformation of a document. +type DocumentTransform struct { + // The name of the document to transform. + Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` + // The list of transformations to apply to the fields of the document, in + // order. + // This must not be empty. + FieldTransforms []*DocumentTransform_FieldTransform `protobuf:"bytes,2,rep,name=field_transforms,json=fieldTransforms,proto3" json:"field_transforms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DocumentTransform) Reset() { *m = DocumentTransform{} } +func (m *DocumentTransform) String() string { return proto.CompactTextString(m) } +func (*DocumentTransform) ProtoMessage() {} +func (*DocumentTransform) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{1} +} +func (m *DocumentTransform) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentTransform.Unmarshal(m, b) +} +func (m *DocumentTransform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentTransform.Marshal(b, m, deterministic) +} +func (dst *DocumentTransform) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentTransform.Merge(dst, src) +} +func (m *DocumentTransform) XXX_Size() int { + return xxx_messageInfo_DocumentTransform.Size(m) +} +func (m *DocumentTransform) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentTransform.DiscardUnknown(m) +} + +var xxx_messageInfo_DocumentTransform proto.InternalMessageInfo + +func (m *DocumentTransform) GetDocument() string { + if m != nil { + return m.Document + } + return "" +} + +func (m *DocumentTransform) GetFieldTransforms() []*DocumentTransform_FieldTransform { + if m != nil { + return m.FieldTransforms + } + return nil +} + +// A transformation of a field of the document. +type DocumentTransform_FieldTransform struct { + // The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax + // reference. + FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` + // The transformation to apply on the field. + // + // Types that are valid to be assigned to TransformType: + // *DocumentTransform_FieldTransform_SetToServerValue + // *DocumentTransform_FieldTransform_Increment + // *DocumentTransform_FieldTransform_Maximum + // *DocumentTransform_FieldTransform_Minimum + // *DocumentTransform_FieldTransform_AppendMissingElements + // *DocumentTransform_FieldTransform_RemoveAllFromArray + TransformType isDocumentTransform_FieldTransform_TransformType `protobuf_oneof:"transform_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DocumentTransform_FieldTransform) Reset() { *m = DocumentTransform_FieldTransform{} } +func (m *DocumentTransform_FieldTransform) String() string { return proto.CompactTextString(m) } +func (*DocumentTransform_FieldTransform) ProtoMessage() {} +func (*DocumentTransform_FieldTransform) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{1, 0} +} +func (m *DocumentTransform_FieldTransform) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentTransform_FieldTransform.Unmarshal(m, b) +} +func (m *DocumentTransform_FieldTransform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentTransform_FieldTransform.Marshal(b, m, deterministic) +} +func (dst *DocumentTransform_FieldTransform) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentTransform_FieldTransform.Merge(dst, src) +} +func (m *DocumentTransform_FieldTransform) XXX_Size() int { + return xxx_messageInfo_DocumentTransform_FieldTransform.Size(m) +} +func (m *DocumentTransform_FieldTransform) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentTransform_FieldTransform.DiscardUnknown(m) +} + +var xxx_messageInfo_DocumentTransform_FieldTransform proto.InternalMessageInfo + +func (m *DocumentTransform_FieldTransform) GetFieldPath() string { + if m != nil { + return m.FieldPath + } + return "" +} + +type isDocumentTransform_FieldTransform_TransformType interface { + isDocumentTransform_FieldTransform_TransformType() +} + +type DocumentTransform_FieldTransform_SetToServerValue struct { + SetToServerValue DocumentTransform_FieldTransform_ServerValue `protobuf:"varint,2,opt,name=set_to_server_value,json=setToServerValue,proto3,enum=google.firestore.v1.DocumentTransform_FieldTransform_ServerValue,oneof"` +} + +type DocumentTransform_FieldTransform_Increment struct { + Increment *Value `protobuf:"bytes,3,opt,name=increment,proto3,oneof"` +} + +type DocumentTransform_FieldTransform_Maximum struct { + Maximum *Value `protobuf:"bytes,4,opt,name=maximum,proto3,oneof"` +} + +type DocumentTransform_FieldTransform_Minimum struct { + Minimum *Value `protobuf:"bytes,5,opt,name=minimum,proto3,oneof"` +} + +type DocumentTransform_FieldTransform_AppendMissingElements struct { + AppendMissingElements *ArrayValue `protobuf:"bytes,6,opt,name=append_missing_elements,json=appendMissingElements,proto3,oneof"` +} + +type DocumentTransform_FieldTransform_RemoveAllFromArray struct { + RemoveAllFromArray *ArrayValue `protobuf:"bytes,7,opt,name=remove_all_from_array,json=removeAllFromArray,proto3,oneof"` +} + +func (*DocumentTransform_FieldTransform_SetToServerValue) isDocumentTransform_FieldTransform_TransformType() { +} + +func (*DocumentTransform_FieldTransform_Increment) isDocumentTransform_FieldTransform_TransformType() { +} + +func (*DocumentTransform_FieldTransform_Maximum) isDocumentTransform_FieldTransform_TransformType() {} + +func (*DocumentTransform_FieldTransform_Minimum) isDocumentTransform_FieldTransform_TransformType() {} + +func (*DocumentTransform_FieldTransform_AppendMissingElements) isDocumentTransform_FieldTransform_TransformType() { +} + +func (*DocumentTransform_FieldTransform_RemoveAllFromArray) isDocumentTransform_FieldTransform_TransformType() { +} + +func (m *DocumentTransform_FieldTransform) GetTransformType() isDocumentTransform_FieldTransform_TransformType { + if m != nil { + return m.TransformType + } + return nil +} + +func (m *DocumentTransform_FieldTransform) GetSetToServerValue() DocumentTransform_FieldTransform_ServerValue { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_SetToServerValue); ok { + return x.SetToServerValue + } + return DocumentTransform_FieldTransform_SERVER_VALUE_UNSPECIFIED +} + +func (m *DocumentTransform_FieldTransform) GetIncrement() *Value { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_Increment); ok { + return x.Increment + } + return nil +} + +func (m *DocumentTransform_FieldTransform) GetMaximum() *Value { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_Maximum); ok { + return x.Maximum + } + return nil +} + +func (m *DocumentTransform_FieldTransform) GetMinimum() *Value { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_Minimum); ok { + return x.Minimum + } + return nil +} + +func (m *DocumentTransform_FieldTransform) GetAppendMissingElements() *ArrayValue { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_AppendMissingElements); ok { + return x.AppendMissingElements + } + return nil +} + +func (m *DocumentTransform_FieldTransform) GetRemoveAllFromArray() *ArrayValue { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_RemoveAllFromArray); ok { + return x.RemoveAllFromArray + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*DocumentTransform_FieldTransform) 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{}) { + return _DocumentTransform_FieldTransform_OneofMarshaler, _DocumentTransform_FieldTransform_OneofUnmarshaler, _DocumentTransform_FieldTransform_OneofSizer, []interface{}{ + (*DocumentTransform_FieldTransform_SetToServerValue)(nil), + (*DocumentTransform_FieldTransform_Increment)(nil), + (*DocumentTransform_FieldTransform_Maximum)(nil), + (*DocumentTransform_FieldTransform_Minimum)(nil), + (*DocumentTransform_FieldTransform_AppendMissingElements)(nil), + (*DocumentTransform_FieldTransform_RemoveAllFromArray)(nil), + } +} + +func _DocumentTransform_FieldTransform_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*DocumentTransform_FieldTransform) + // transform_type + switch x := m.TransformType.(type) { + case *DocumentTransform_FieldTransform_SetToServerValue: + b.EncodeVarint(2<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.SetToServerValue)) + case *DocumentTransform_FieldTransform_Increment: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Increment); err != nil { + return err + } + case *DocumentTransform_FieldTransform_Maximum: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Maximum); err != nil { + return err + } + case *DocumentTransform_FieldTransform_Minimum: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Minimum); err != nil { + return err + } + case *DocumentTransform_FieldTransform_AppendMissingElements: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.AppendMissingElements); err != nil { + return err + } + case *DocumentTransform_FieldTransform_RemoveAllFromArray: + b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RemoveAllFromArray); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("DocumentTransform_FieldTransform.TransformType has unexpected type %T", x) + } + return nil +} + +func _DocumentTransform_FieldTransform_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*DocumentTransform_FieldTransform) + switch tag { + case 2: // transform_type.set_to_server_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.TransformType = &DocumentTransform_FieldTransform_SetToServerValue{DocumentTransform_FieldTransform_ServerValue(x)} + return true, err + case 3: // transform_type.increment + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Value) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_Increment{msg} + return true, err + case 4: // transform_type.maximum + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Value) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_Maximum{msg} + return true, err + case 5: // transform_type.minimum + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Value) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_Minimum{msg} + return true, err + case 6: // transform_type.append_missing_elements + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ArrayValue) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_AppendMissingElements{msg} + return true, err + case 7: // transform_type.remove_all_from_array + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ArrayValue) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_RemoveAllFromArray{msg} + return true, err + default: + return false, nil + } +} + +func _DocumentTransform_FieldTransform_OneofSizer(msg proto.Message) (n int) { + m := msg.(*DocumentTransform_FieldTransform) + // transform_type + switch x := m.TransformType.(type) { + case *DocumentTransform_FieldTransform_SetToServerValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.SetToServerValue)) + case *DocumentTransform_FieldTransform_Increment: + s := proto.Size(x.Increment) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *DocumentTransform_FieldTransform_Maximum: + s := proto.Size(x.Maximum) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *DocumentTransform_FieldTransform_Minimum: + s := proto.Size(x.Minimum) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *DocumentTransform_FieldTransform_AppendMissingElements: + s := proto.Size(x.AppendMissingElements) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *DocumentTransform_FieldTransform_RemoveAllFromArray: + s := proto.Size(x.RemoveAllFromArray) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The result of applying a write. +type WriteResult struct { + // The last update time of the document after applying the write. Not set + // after a `delete`. + // + // If the write did not actually change the document, this will be the + // previous update_time. + UpdateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + // The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform], in the + // same order. + TransformResults []*Value `protobuf:"bytes,2,rep,name=transform_results,json=transformResults,proto3" json:"transform_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteResult) Reset() { *m = WriteResult{} } +func (m *WriteResult) String() string { return proto.CompactTextString(m) } +func (*WriteResult) ProtoMessage() {} +func (*WriteResult) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{2} +} +func (m *WriteResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WriteResult.Unmarshal(m, b) +} +func (m *WriteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WriteResult.Marshal(b, m, deterministic) +} +func (dst *WriteResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteResult.Merge(dst, src) +} +func (m *WriteResult) XXX_Size() int { + return xxx_messageInfo_WriteResult.Size(m) +} +func (m *WriteResult) XXX_DiscardUnknown() { + xxx_messageInfo_WriteResult.DiscardUnknown(m) +} + +var xxx_messageInfo_WriteResult proto.InternalMessageInfo + +func (m *WriteResult) GetUpdateTime() *timestamp.Timestamp { + if m != nil { + return m.UpdateTime + } + return nil +} + +func (m *WriteResult) GetTransformResults() []*Value { + if m != nil { + return m.TransformResults + } + return nil +} + +// A [Document][google.firestore.v1.Document] has changed. +// +// May be the result of multiple [writes][google.firestore.v1.Write], including deletes, that +// ultimately resulted in a new value for the [Document][google.firestore.v1.Document]. +// +// Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be returned for the same logical +// change, if multiple targets are affected. +type DocumentChange struct { + // The new state of the [Document][google.firestore.v1.Document]. + // + // If `mask` is set, contains only fields that were updated or added. + Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` + // A set of target IDs of targets that match this document. + TargetIds []int32 `protobuf:"varint,5,rep,packed,name=target_ids,json=targetIds,proto3" json:"target_ids,omitempty"` + // A set of target IDs for targets that no longer match this document. + RemovedTargetIds []int32 `protobuf:"varint,6,rep,packed,name=removed_target_ids,json=removedTargetIds,proto3" json:"removed_target_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DocumentChange) Reset() { *m = DocumentChange{} } +func (m *DocumentChange) String() string { return proto.CompactTextString(m) } +func (*DocumentChange) ProtoMessage() {} +func (*DocumentChange) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{3} +} +func (m *DocumentChange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentChange.Unmarshal(m, b) +} +func (m *DocumentChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentChange.Marshal(b, m, deterministic) +} +func (dst *DocumentChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentChange.Merge(dst, src) +} +func (m *DocumentChange) XXX_Size() int { + return xxx_messageInfo_DocumentChange.Size(m) +} +func (m *DocumentChange) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentChange.DiscardUnknown(m) +} + +var xxx_messageInfo_DocumentChange proto.InternalMessageInfo + +func (m *DocumentChange) GetDocument() *Document { + if m != nil { + return m.Document + } + return nil +} + +func (m *DocumentChange) GetTargetIds() []int32 { + if m != nil { + return m.TargetIds + } + return nil +} + +func (m *DocumentChange) GetRemovedTargetIds() []int32 { + if m != nil { + return m.RemovedTargetIds + } + return nil +} + +// A [Document][google.firestore.v1.Document] has been deleted. +// +// May be the result of multiple [writes][google.firestore.v1.Write], including updates, the +// last of which deleted the [Document][google.firestore.v1.Document]. +// +// Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be returned for the same logical +// delete, if multiple targets are affected. +type DocumentDelete struct { + // The resource name of the [Document][google.firestore.v1.Document] that was deleted. + Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` + // A set of target IDs for targets that previously matched this entity. + RemovedTargetIds []int32 `protobuf:"varint,6,rep,packed,name=removed_target_ids,json=removedTargetIds,proto3" json:"removed_target_ids,omitempty"` + // The read timestamp at which the delete was observed. + // + // Greater or equal to the `commit_time` of the delete. + ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DocumentDelete) Reset() { *m = DocumentDelete{} } +func (m *DocumentDelete) String() string { return proto.CompactTextString(m) } +func (*DocumentDelete) ProtoMessage() {} +func (*DocumentDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{4} +} +func (m *DocumentDelete) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentDelete.Unmarshal(m, b) +} +func (m *DocumentDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentDelete.Marshal(b, m, deterministic) +} +func (dst *DocumentDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentDelete.Merge(dst, src) +} +func (m *DocumentDelete) XXX_Size() int { + return xxx_messageInfo_DocumentDelete.Size(m) +} +func (m *DocumentDelete) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_DocumentDelete proto.InternalMessageInfo + +func (m *DocumentDelete) GetDocument() string { + if m != nil { + return m.Document + } + return "" +} + +func (m *DocumentDelete) GetRemovedTargetIds() []int32 { + if m != nil { + return m.RemovedTargetIds + } + return nil +} + +func (m *DocumentDelete) GetReadTime() *timestamp.Timestamp { + if m != nil { + return m.ReadTime + } + return nil +} + +// A [Document][google.firestore.v1.Document] has been removed from the view of the targets. +// +// Sent if the document is no longer relevant to a target and is out of view. +// Can be sent instead of a DocumentDelete or a DocumentChange if the server +// can not send the new value of the document. +// +// Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be returned for the same logical +// write or delete, if multiple targets are affected. +type DocumentRemove struct { + // The resource name of the [Document][google.firestore.v1.Document] that has gone out of view. + Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` + // A set of target IDs for targets that previously matched this document. + RemovedTargetIds []int32 `protobuf:"varint,2,rep,packed,name=removed_target_ids,json=removedTargetIds,proto3" json:"removed_target_ids,omitempty"` + // The read timestamp at which the remove was observed. + // + // Greater or equal to the `commit_time` of the change/delete/remove. + ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DocumentRemove) Reset() { *m = DocumentRemove{} } +func (m *DocumentRemove) String() string { return proto.CompactTextString(m) } +func (*DocumentRemove) ProtoMessage() {} +func (*DocumentRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{5} +} +func (m *DocumentRemove) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentRemove.Unmarshal(m, b) +} +func (m *DocumentRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentRemove.Marshal(b, m, deterministic) +} +func (dst *DocumentRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentRemove.Merge(dst, src) +} +func (m *DocumentRemove) XXX_Size() int { + return xxx_messageInfo_DocumentRemove.Size(m) +} +func (m *DocumentRemove) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentRemove.DiscardUnknown(m) +} + +var xxx_messageInfo_DocumentRemove proto.InternalMessageInfo + +func (m *DocumentRemove) GetDocument() string { + if m != nil { + return m.Document + } + return "" +} + +func (m *DocumentRemove) GetRemovedTargetIds() []int32 { + if m != nil { + return m.RemovedTargetIds + } + return nil +} + +func (m *DocumentRemove) GetReadTime() *timestamp.Timestamp { + if m != nil { + return m.ReadTime + } + return nil +} + +// A digest of all the documents that match a given target. +type ExistenceFilter struct { + // The target ID to which this filter applies. + TargetId int32 `protobuf:"varint,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` + // The total count of documents that match [target_id][google.firestore.v1.ExistenceFilter.target_id]. + // + // If different from the count of documents in the client that match, the + // client must manually determine which documents no longer match the target. + Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExistenceFilter) Reset() { *m = ExistenceFilter{} } +func (m *ExistenceFilter) String() string { return proto.CompactTextString(m) } +func (*ExistenceFilter) ProtoMessage() {} +func (*ExistenceFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_write_ea987fb0680fd003, []int{6} +} +func (m *ExistenceFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExistenceFilter.Unmarshal(m, b) +} +func (m *ExistenceFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExistenceFilter.Marshal(b, m, deterministic) +} +func (dst *ExistenceFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExistenceFilter.Merge(dst, src) +} +func (m *ExistenceFilter) XXX_Size() int { + return xxx_messageInfo_ExistenceFilter.Size(m) +} +func (m *ExistenceFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ExistenceFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_ExistenceFilter proto.InternalMessageInfo + +func (m *ExistenceFilter) GetTargetId() int32 { + if m != nil { + return m.TargetId + } + return 0 +} + +func (m *ExistenceFilter) GetCount() int32 { + if m != nil { + return m.Count + } + return 0 +} + +func init() { + proto.RegisterType((*Write)(nil), "google.firestore.v1.Write") + proto.RegisterType((*DocumentTransform)(nil), "google.firestore.v1.DocumentTransform") + proto.RegisterType((*DocumentTransform_FieldTransform)(nil), "google.firestore.v1.DocumentTransform.FieldTransform") + proto.RegisterType((*WriteResult)(nil), "google.firestore.v1.WriteResult") + proto.RegisterType((*DocumentChange)(nil), "google.firestore.v1.DocumentChange") + proto.RegisterType((*DocumentDelete)(nil), "google.firestore.v1.DocumentDelete") + proto.RegisterType((*DocumentRemove)(nil), "google.firestore.v1.DocumentRemove") + proto.RegisterType((*ExistenceFilter)(nil), "google.firestore.v1.ExistenceFilter") + proto.RegisterEnum("google.firestore.v1.DocumentTransform_FieldTransform_ServerValue", DocumentTransform_FieldTransform_ServerValue_name, DocumentTransform_FieldTransform_ServerValue_value) +} + +func init() { + proto.RegisterFile("google/firestore/v1/write.proto", fileDescriptor_write_ea987fb0680fd003) +} + +var fileDescriptor_write_ea987fb0680fd003 = []byte{ + // 853 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x41, 0x6f, 0xe3, 0x44, + 0x14, 0x6e, 0xd2, 0x26, 0x5b, 0xbf, 0xa0, 0xd6, 0x3b, 0xcb, 0x6a, 0x4d, 0xd8, 0x6a, 0x43, 0x0e, + 0xa8, 0x07, 0xe4, 0xa8, 0x45, 0xb0, 0x82, 0x85, 0x43, 0xd3, 0x3a, 0x6d, 0xa5, 0x2d, 0x0a, 0x4e, + 0x1a, 0x04, 0xaa, 0x34, 0xcc, 0xda, 0x13, 0xd7, 0x5a, 0x7b, 0xc6, 0x9a, 0x19, 0x87, 0xdd, 0xdf, + 0xc1, 0x85, 0x33, 0xe2, 0xc4, 0xbf, 0xe0, 0xca, 0x8d, 0x1f, 0xc1, 0xff, 0x40, 0x9e, 0xb1, 0xdd, + 0x06, 0xa2, 0x6c, 0x59, 0xed, 0x2d, 0x6f, 0xde, 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 0xba, 0xdc, 0xec, 0xe0, 0xcf, 0x2a, 0x77, 0xa5, 0x73, 0x57, 0x75, 0xee, 0x6a, + 0x76, 0xf0, 0xa2, 0xad, 0xeb, 0x7c, 0xfa, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x55, 0xcd, + 0x3b, 0x39, 0x08, 0x00, 0x00, +} diff --git a/googleapis/firestore/v1beta1/common.pb.go b/googleapis/firestore/v1beta1/common.pb.go index fb29adc85f582f5b06c962d95c1543b79476379c..8b8b62984f275e2da3d96b127a6b1b090e20f73f 100644 --- a/googleapis/firestore/v1beta1/common.pb.go +++ b/googleapis/firestore/v1beta1/common.pb.go @@ -38,7 +38,7 @@ func (m *DocumentMask) Reset() { *m = DocumentMask{} } func (m *DocumentMask) String() string { return proto.CompactTextString(m) } func (*DocumentMask) ProtoMessage() {} func (*DocumentMask) Descriptor() ([]byte, []int) { - return fileDescriptor_common_ed079c0d96917e99, []int{0} + return fileDescriptor_common_37c55147eeb829a0, []int{0} } func (m *DocumentMask) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DocumentMask.Unmarshal(m, b) @@ -82,7 +82,7 @@ func (m *Precondition) Reset() { *m = Precondition{} } func (m *Precondition) String() string { return proto.CompactTextString(m) } func (*Precondition) ProtoMessage() {} func (*Precondition) Descriptor() ([]byte, []int) { - return fileDescriptor_common_ed079c0d96917e99, []int{1} + return fileDescriptor_common_37c55147eeb829a0, []int{1} } func (m *Precondition) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Precondition.Unmarshal(m, b) @@ -229,7 +229,7 @@ func (m *TransactionOptions) Reset() { *m = TransactionOptions{} } func (m *TransactionOptions) String() string { return proto.CompactTextString(m) } func (*TransactionOptions) ProtoMessage() {} func (*TransactionOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_common_ed079c0d96917e99, []int{2} + return fileDescriptor_common_37c55147eeb829a0, []int{2} } func (m *TransactionOptions) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TransactionOptions.Unmarshal(m, b) @@ -373,7 +373,7 @@ func (m *TransactionOptions_ReadWrite) Reset() { *m = TransactionOptions func (m *TransactionOptions_ReadWrite) String() string { return proto.CompactTextString(m) } func (*TransactionOptions_ReadWrite) ProtoMessage() {} func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) { - return fileDescriptor_common_ed079c0d96917e99, []int{2, 0} + return fileDescriptor_common_37c55147eeb829a0, []int{2, 0} } func (m *TransactionOptions_ReadWrite) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TransactionOptions_ReadWrite.Unmarshal(m, b) @@ -417,7 +417,7 @@ func (m *TransactionOptions_ReadOnly) Reset() { *m = TransactionOptions_ func (m *TransactionOptions_ReadOnly) String() string { return proto.CompactTextString(m) } func (*TransactionOptions_ReadOnly) ProtoMessage() {} func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) { - return fileDescriptor_common_ed079c0d96917e99, []int{2, 1} + return fileDescriptor_common_37c55147eeb829a0, []int{2, 1} } func (m *TransactionOptions_ReadOnly) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TransactionOptions_ReadOnly.Unmarshal(m, b) @@ -525,10 +525,10 @@ func init() { } func init() { - proto.RegisterFile("google/firestore/v1beta1/common.proto", fileDescriptor_common_ed079c0d96917e99) + proto.RegisterFile("google/firestore/v1beta1/common.proto", fileDescriptor_common_37c55147eeb829a0) } -var fileDescriptor_common_ed079c0d96917e99 = []byte{ +var fileDescriptor_common_37c55147eeb829a0 = []byte{ // 468 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xef, 0x8a, 0xd3, 0x40, 0x10, 0x6f, 0x7a, 0xc7, 0xd1, 0x4e, 0x8b, 0x9c, 0x41, 0x24, 0x84, 0xc3, 0x3b, 0x0a, 0x42, 0x41, diff --git a/googleapis/firestore/v1beta1/document.pb.go b/googleapis/firestore/v1beta1/document.pb.go index a134467aeabb2a2598bbe08fccf537a0f64bb45e..39a92ce54a76d81952b58197d93842e083c7b2a1 100644 --- a/googleapis/firestore/v1beta1/document.pb.go +++ b/googleapis/firestore/v1beta1/document.pb.go @@ -75,7 +75,7 @@ func (m *Document) Reset() { *m = Document{} } func (m *Document) String() string { return proto.CompactTextString(m) } func (*Document) ProtoMessage() {} func (*Document) Descriptor() ([]byte, []int) { - return fileDescriptor_document_fe46ba4c8da20ac8, []int{0} + return fileDescriptor_document_cd57755e5c8cfbb2, []int{0} } func (m *Document) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Document.Unmarshal(m, b) @@ -149,7 +149,7 @@ func (m *Value) Reset() { *m = Value{} } func (m *Value) String() string { return proto.CompactTextString(m) } func (*Value) ProtoMessage() {} func (*Value) Descriptor() ([]byte, []int) { - return fileDescriptor_document_fe46ba4c8da20ac8, []int{1} + return fileDescriptor_document_cd57755e5c8cfbb2, []int{1} } func (m *Value) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Value.Unmarshal(m, b) @@ -553,7 +553,7 @@ func (m *ArrayValue) Reset() { *m = ArrayValue{} } func (m *ArrayValue) String() string { return proto.CompactTextString(m) } func (*ArrayValue) ProtoMessage() {} func (*ArrayValue) Descriptor() ([]byte, []int) { - return fileDescriptor_document_fe46ba4c8da20ac8, []int{2} + return fileDescriptor_document_cd57755e5c8cfbb2, []int{2} } func (m *ArrayValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ArrayValue.Unmarshal(m, b) @@ -598,7 +598,7 @@ func (m *MapValue) Reset() { *m = MapValue{} } func (m *MapValue) String() string { return proto.CompactTextString(m) } func (*MapValue) ProtoMessage() {} func (*MapValue) Descriptor() ([]byte, []int) { - return fileDescriptor_document_fe46ba4c8da20ac8, []int{3} + return fileDescriptor_document_cd57755e5c8cfbb2, []int{3} } func (m *MapValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MapValue.Unmarshal(m, b) @@ -635,10 +635,10 @@ func init() { } func init() { - proto.RegisterFile("google/firestore/v1beta1/document.proto", fileDescriptor_document_fe46ba4c8da20ac8) + proto.RegisterFile("google/firestore/v1beta1/document.proto", fileDescriptor_document_cd57755e5c8cfbb2) } -var fileDescriptor_document_fe46ba4c8da20ac8 = []byte{ +var fileDescriptor_document_cd57755e5c8cfbb2 = []byte{ // 655 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x6e, 0xd3, 0x4c, 0x14, 0xc5, 0xe3, 0x24, 0x8d, 0x92, 0xeb, 0xb4, 0xfd, 0x3e, 0xb3, 0x89, 0xa2, 0x8a, 0x86, 0x00, diff --git a/googleapis/firestore/v1beta1/firestore.pb.go b/googleapis/firestore/v1beta1/firestore.pb.go index e2a2799193c5537ba526c87d8e63d62427870ddd..f65b37bcce3b5fe683e8ab1afe849b98ca7b2cc9 100644 --- a/googleapis/firestore/v1beta1/firestore.pb.go +++ b/googleapis/firestore/v1beta1/firestore.pb.go @@ -73,7 +73,7 @@ func (x TargetChange_TargetChangeType) String() string { return proto.EnumName(TargetChange_TargetChangeType_name, int32(x)) } func (TargetChange_TargetChangeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{20, 0} + return fileDescriptor_firestore_0cb2a504439d3030, []int{20, 0} } // The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument]. @@ -102,7 +102,7 @@ func (m *GetDocumentRequest) Reset() { *m = GetDocumentRequest{} } func (m *GetDocumentRequest) String() string { return proto.CompactTextString(m) } func (*GetDocumentRequest) ProtoMessage() {} func (*GetDocumentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{0} + return fileDescriptor_firestore_0cb2a504439d3030, []int{0} } func (m *GetDocumentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetDocumentRequest.Unmarshal(m, b) @@ -290,7 +290,7 @@ func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} } func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) } func (*ListDocumentsRequest) ProtoMessage() {} func (*ListDocumentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{1} + return fileDescriptor_firestore_0cb2a504439d3030, []int{1} } func (m *ListDocumentsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListDocumentsRequest.Unmarshal(m, b) @@ -481,7 +481,7 @@ func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} } func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) } func (*ListDocumentsResponse) ProtoMessage() {} func (*ListDocumentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{2} + return fileDescriptor_firestore_0cb2a504439d3030, []int{2} } func (m *ListDocumentsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListDocumentsResponse.Unmarshal(m, b) @@ -543,7 +543,7 @@ func (m *CreateDocumentRequest) Reset() { *m = CreateDocumentRequest{} } func (m *CreateDocumentRequest) String() string { return proto.CompactTextString(m) } func (*CreateDocumentRequest) ProtoMessage() {} func (*CreateDocumentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{3} + return fileDescriptor_firestore_0cb2a504439d3030, []int{3} } func (m *CreateDocumentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateDocumentRequest.Unmarshal(m, b) @@ -628,7 +628,7 @@ func (m *UpdateDocumentRequest) Reset() { *m = UpdateDocumentRequest{} } func (m *UpdateDocumentRequest) String() string { return proto.CompactTextString(m) } func (*UpdateDocumentRequest) ProtoMessage() {} func (*UpdateDocumentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{4} + return fileDescriptor_firestore_0cb2a504439d3030, []int{4} } func (m *UpdateDocumentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateDocumentRequest.Unmarshal(m, b) @@ -693,7 +693,7 @@ func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} } func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) } func (*DeleteDocumentRequest) ProtoMessage() {} func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{5} + return fileDescriptor_firestore_0cb2a504439d3030, []int{5} } func (m *DeleteDocumentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteDocumentRequest.Unmarshal(m, b) @@ -759,7 +759,7 @@ func (m *BatchGetDocumentsRequest) Reset() { *m = BatchGetDocumentsReque func (m *BatchGetDocumentsRequest) String() string { return proto.CompactTextString(m) } func (*BatchGetDocumentsRequest) ProtoMessage() {} func (*BatchGetDocumentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{6} + return fileDescriptor_firestore_0cb2a504439d3030, []int{6} } func (m *BatchGetDocumentsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BatchGetDocumentsRequest.Unmarshal(m, b) @@ -966,7 +966,7 @@ func (m *BatchGetDocumentsResponse) Reset() { *m = BatchGetDocumentsResp func (m *BatchGetDocumentsResponse) String() string { return proto.CompactTextString(m) } func (*BatchGetDocumentsResponse) ProtoMessage() {} func (*BatchGetDocumentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{7} + return fileDescriptor_firestore_0cb2a504439d3030, []int{7} } func (m *BatchGetDocumentsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BatchGetDocumentsResponse.Unmarshal(m, b) @@ -1124,7 +1124,7 @@ func (m *BeginTransactionRequest) Reset() { *m = BeginTransactionRequest func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) } func (*BeginTransactionRequest) ProtoMessage() {} func (*BeginTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{8} + return fileDescriptor_firestore_0cb2a504439d3030, []int{8} } func (m *BeginTransactionRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BeginTransactionRequest.Unmarshal(m, b) @@ -1171,7 +1171,7 @@ func (m *BeginTransactionResponse) Reset() { *m = BeginTransactionRespon func (m *BeginTransactionResponse) String() string { return proto.CompactTextString(m) } func (*BeginTransactionResponse) ProtoMessage() {} func (*BeginTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{9} + return fileDescriptor_firestore_0cb2a504439d3030, []int{9} } func (m *BeginTransactionResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BeginTransactionResponse.Unmarshal(m, b) @@ -1218,7 +1218,7 @@ func (m *CommitRequest) Reset() { *m = CommitRequest{} } func (m *CommitRequest) String() string { return proto.CompactTextString(m) } func (*CommitRequest) ProtoMessage() {} func (*CommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{10} + return fileDescriptor_firestore_0cb2a504439d3030, []int{10} } func (m *CommitRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitRequest.Unmarshal(m, b) @@ -1277,7 +1277,7 @@ func (m *CommitResponse) Reset() { *m = CommitResponse{} } func (m *CommitResponse) String() string { return proto.CompactTextString(m) } func (*CommitResponse) ProtoMessage() {} func (*CommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{11} + return fileDescriptor_firestore_0cb2a504439d3030, []int{11} } func (m *CommitResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitResponse.Unmarshal(m, b) @@ -1327,7 +1327,7 @@ func (m *RollbackRequest) Reset() { *m = RollbackRequest{} } func (m *RollbackRequest) String() string { return proto.CompactTextString(m) } func (*RollbackRequest) ProtoMessage() {} func (*RollbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{12} + return fileDescriptor_firestore_0cb2a504439d3030, []int{12} } func (m *RollbackRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RollbackRequest.Unmarshal(m, b) @@ -1392,7 +1392,7 @@ func (m *RunQueryRequest) Reset() { *m = RunQueryRequest{} } func (m *RunQueryRequest) String() string { return proto.CompactTextString(m) } func (*RunQueryRequest) ProtoMessage() {} func (*RunQueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{13} + return fileDescriptor_firestore_0cb2a504439d3030, []int{13} } func (m *RunQueryRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RunQueryRequest.Unmarshal(m, b) @@ -1643,7 +1643,7 @@ func (m *RunQueryResponse) Reset() { *m = RunQueryResponse{} } func (m *RunQueryResponse) String() string { return proto.CompactTextString(m) } func (*RunQueryResponse) ProtoMessage() {} func (*RunQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{14} + return fileDescriptor_firestore_0cb2a504439d3030, []int{14} } func (m *RunQueryResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RunQueryResponse.Unmarshal(m, b) @@ -1743,7 +1743,7 @@ func (m *WriteRequest) Reset() { *m = WriteRequest{} } func (m *WriteRequest) String() string { return proto.CompactTextString(m) } func (*WriteRequest) ProtoMessage() {} func (*WriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{15} + return fileDescriptor_firestore_0cb2a504439d3030, []int{15} } func (m *WriteRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_WriteRequest.Unmarshal(m, b) @@ -1824,7 +1824,7 @@ func (m *WriteResponse) Reset() { *m = WriteResponse{} } func (m *WriteResponse) String() string { return proto.CompactTextString(m) } func (*WriteResponse) ProtoMessage() {} func (*WriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{16} + return fileDescriptor_firestore_0cb2a504439d3030, []int{16} } func (m *WriteResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_WriteResponse.Unmarshal(m, b) @@ -1894,7 +1894,7 @@ func (m *ListenRequest) Reset() { *m = ListenRequest{} } func (m *ListenRequest) String() string { return proto.CompactTextString(m) } func (*ListenRequest) ProtoMessage() {} func (*ListenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{17} + return fileDescriptor_firestore_0cb2a504439d3030, []int{17} } func (m *ListenRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListenRequest.Unmarshal(m, b) @@ -2054,7 +2054,7 @@ func (m *ListenResponse) Reset() { *m = ListenResponse{} } func (m *ListenResponse) String() string { return proto.CompactTextString(m) } func (*ListenResponse) ProtoMessage() {} func (*ListenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{18} + return fileDescriptor_firestore_0cb2a504439d3030, []int{18} } func (m *ListenResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListenResponse.Unmarshal(m, b) @@ -2318,7 +2318,7 @@ func (m *Target) Reset() { *m = Target{} } func (m *Target) String() string { return proto.CompactTextString(m) } func (*Target) ProtoMessage() {} func (*Target) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{19} + return fileDescriptor_firestore_0cb2a504439d3030, []int{19} } func (m *Target) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Target.Unmarshal(m, b) @@ -2562,7 +2562,7 @@ func (m *Target_DocumentsTarget) Reset() { *m = Target_DocumentsTarget{} func (m *Target_DocumentsTarget) String() string { return proto.CompactTextString(m) } func (*Target_DocumentsTarget) ProtoMessage() {} func (*Target_DocumentsTarget) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{19, 0} + return fileDescriptor_firestore_0cb2a504439d3030, []int{19, 0} } func (m *Target_DocumentsTarget) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Target_DocumentsTarget.Unmarshal(m, b) @@ -2612,7 +2612,7 @@ func (m *Target_QueryTarget) Reset() { *m = Target_QueryTarget{} } func (m *Target_QueryTarget) String() string { return proto.CompactTextString(m) } func (*Target_QueryTarget) ProtoMessage() {} func (*Target_QueryTarget) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{19, 1} + return fileDescriptor_firestore_0cb2a504439d3030, []int{19, 1} } func (m *Target_QueryTarget) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Target_QueryTarget.Unmarshal(m, b) @@ -2759,7 +2759,7 @@ func (m *TargetChange) Reset() { *m = TargetChange{} } func (m *TargetChange) String() string { return proto.CompactTextString(m) } func (*TargetChange) ProtoMessage() {} func (*TargetChange) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{20} + return fileDescriptor_firestore_0cb2a504439d3030, []int{20} } func (m *TargetChange) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TargetChange.Unmarshal(m, b) @@ -2835,7 +2835,7 @@ func (m *ListCollectionIdsRequest) Reset() { *m = ListCollectionIdsReque func (m *ListCollectionIdsRequest) String() string { return proto.CompactTextString(m) } func (*ListCollectionIdsRequest) ProtoMessage() {} func (*ListCollectionIdsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{21} + return fileDescriptor_firestore_0cb2a504439d3030, []int{21} } func (m *ListCollectionIdsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListCollectionIdsRequest.Unmarshal(m, b) @@ -2891,7 +2891,7 @@ func (m *ListCollectionIdsResponse) Reset() { *m = ListCollectionIdsResp func (m *ListCollectionIdsResponse) String() string { return proto.CompactTextString(m) } func (*ListCollectionIdsResponse) ProtoMessage() {} func (*ListCollectionIdsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_firestore_6b2b6098f593317e, []int{22} + return fileDescriptor_firestore_0cb2a504439d3030, []int{22} } func (m *ListCollectionIdsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListCollectionIdsResponse.Unmarshal(m, b) @@ -3576,10 +3576,10 @@ var _Firestore_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("google/firestore/v1beta1/firestore.proto", fileDescriptor_firestore_6b2b6098f593317e) + proto.RegisterFile("google/firestore/v1beta1/firestore.proto", fileDescriptor_firestore_0cb2a504439d3030) } -var fileDescriptor_firestore_6b2b6098f593317e = []byte{ +var fileDescriptor_firestore_0cb2a504439d3030 = []byte{ // 2214 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0xcd, 0x8f, 0x1b, 0x49, 0x15, 0x77, 0xb5, 0x3f, 0xc6, 0x7e, 0xfe, 0x18, 0x6f, 0x91, 0x64, 0x1d, 0x27, 0x4b, 0x86, 0x5e, diff --git a/googleapis/firestore/v1beta1/query.pb.go b/googleapis/firestore/v1beta1/query.pb.go index 8b6d255fa505c35db114386663307af5f9ae06b4..de6f7d83ce91d56a151c2be007148a1f7a1d884e 100644 --- a/googleapis/firestore/v1beta1/query.pb.go +++ b/googleapis/firestore/v1beta1/query.pb.go @@ -47,7 +47,7 @@ func (x StructuredQuery_Direction) String() string { return proto.EnumName(StructuredQuery_Direction_name, int32(x)) } func (StructuredQuery_Direction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 0} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 0} } // A composite filter operator. @@ -73,7 +73,7 @@ func (x StructuredQuery_CompositeFilter_Operator) String() string { return proto.EnumName(StructuredQuery_CompositeFilter_Operator_name, int32(x)) } func (StructuredQuery_CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 2, 0} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 2, 0} } // A field filter operator. @@ -120,7 +120,7 @@ func (x StructuredQuery_FieldFilter_Operator) String() string { return proto.EnumName(StructuredQuery_FieldFilter_Operator_name, int32(x)) } func (StructuredQuery_FieldFilter_Operator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 3, 0} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 3, 0} } // A unary operator. @@ -150,7 +150,7 @@ func (x StructuredQuery_UnaryFilter_Operator) String() string { return proto.EnumName(StructuredQuery_UnaryFilter_Operator_name, int32(x)) } func (StructuredQuery_UnaryFilter_Operator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 4, 0} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 4, 0} } // A Firestore query. @@ -203,7 +203,7 @@ func (m *StructuredQuery) Reset() { *m = StructuredQuery{} } func (m *StructuredQuery) String() string { return proto.CompactTextString(m) } func (*StructuredQuery) ProtoMessage() {} func (*StructuredQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0} + return fileDescriptor_query_aa3d8d54536831bd, []int{0} } func (m *StructuredQuery) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery.Unmarshal(m, b) @@ -297,7 +297,7 @@ func (m *StructuredQuery_CollectionSelector) Reset() { *m = StructuredQu func (m *StructuredQuery_CollectionSelector) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_CollectionSelector) ProtoMessage() {} func (*StructuredQuery_CollectionSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 0} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 0} } func (m *StructuredQuery_CollectionSelector) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_CollectionSelector.Unmarshal(m, b) @@ -349,7 +349,7 @@ func (m *StructuredQuery_Filter) Reset() { *m = StructuredQuery_Filter{} func (m *StructuredQuery_Filter) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_Filter) ProtoMessage() {} func (*StructuredQuery_Filter) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 1} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 1} } func (m *StructuredQuery_Filter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_Filter.Unmarshal(m, b) @@ -528,7 +528,7 @@ func (m *StructuredQuery_CompositeFilter) Reset() { *m = StructuredQuery func (m *StructuredQuery_CompositeFilter) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_CompositeFilter) ProtoMessage() {} func (*StructuredQuery_CompositeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 2} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 2} } func (m *StructuredQuery_CompositeFilter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_CompositeFilter.Unmarshal(m, b) @@ -579,7 +579,7 @@ func (m *StructuredQuery_FieldFilter) Reset() { *m = StructuredQuery_Fie func (m *StructuredQuery_FieldFilter) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_FieldFilter) ProtoMessage() {} func (*StructuredQuery_FieldFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 3} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 3} } func (m *StructuredQuery_FieldFilter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_FieldFilter.Unmarshal(m, b) @@ -638,7 +638,7 @@ func (m *StructuredQuery_UnaryFilter) Reset() { *m = StructuredQuery_Una func (m *StructuredQuery_UnaryFilter) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_UnaryFilter) ProtoMessage() {} func (*StructuredQuery_UnaryFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 4} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 4} } func (m *StructuredQuery_UnaryFilter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_UnaryFilter.Unmarshal(m, b) @@ -759,7 +759,7 @@ func (m *StructuredQuery_Order) Reset() { *m = StructuredQuery_Order{} } func (m *StructuredQuery_Order) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_Order) ProtoMessage() {} func (*StructuredQuery_Order) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 5} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 5} } func (m *StructuredQuery_Order) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_Order.Unmarshal(m, b) @@ -805,7 +805,7 @@ func (m *StructuredQuery_FieldReference) Reset() { *m = StructuredQuery_ func (m *StructuredQuery_FieldReference) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_FieldReference) ProtoMessage() {} func (*StructuredQuery_FieldReference) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 6} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 6} } func (m *StructuredQuery_FieldReference) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_FieldReference.Unmarshal(m, b) @@ -848,7 +848,7 @@ func (m *StructuredQuery_Projection) Reset() { *m = StructuredQuery_Proj func (m *StructuredQuery_Projection) String() string { return proto.CompactTextString(m) } func (*StructuredQuery_Projection) ProtoMessage() {} func (*StructuredQuery_Projection) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{0, 7} + return fileDescriptor_query_aa3d8d54536831bd, []int{0, 7} } func (m *StructuredQuery_Projection) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StructuredQuery_Projection.Unmarshal(m, b) @@ -894,7 +894,7 @@ func (m *Cursor) Reset() { *m = Cursor{} } func (m *Cursor) String() string { return proto.CompactTextString(m) } func (*Cursor) ProtoMessage() {} func (*Cursor) Descriptor() ([]byte, []int) { - return fileDescriptor_query_4a614d17d9e42012, []int{1} + return fileDescriptor_query_aa3d8d54536831bd, []int{1} } func (m *Cursor) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Cursor.Unmarshal(m, b) @@ -946,10 +946,10 @@ func init() { } func init() { - proto.RegisterFile("google/firestore/v1beta1/query.proto", fileDescriptor_query_4a614d17d9e42012) + proto.RegisterFile("google/firestore/v1beta1/query.proto", fileDescriptor_query_aa3d8d54536831bd) } -var fileDescriptor_query_4a614d17d9e42012 = []byte{ +var fileDescriptor_query_aa3d8d54536831bd = []byte{ // 985 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xdd, 0x6e, 0xe3, 0x44, 0x14, 0xc7, 0x6b, 0xa7, 0xf9, 0x3a, 0x69, 0xd3, 0x30, 0x82, 0x95, 0x09, 0xcb, 0x52, 0x05, 0xa4, diff --git a/googleapis/firestore/v1beta1/write.pb.go b/googleapis/firestore/v1beta1/write.pb.go index fc836089192dc159ce3afff11101515b05dbe1b0..e03ff81384b92c1aa13cd52c531bf0f6dbaf4e78 100644 --- a/googleapis/firestore/v1beta1/write.pb.go +++ b/googleapis/firestore/v1beta1/write.pb.go @@ -44,7 +44,7 @@ func (x DocumentTransform_FieldTransform_ServerValue) String() string { return proto.EnumName(DocumentTransform_FieldTransform_ServerValue_name, int32(x)) } func (DocumentTransform_FieldTransform_ServerValue) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{1, 0, 0} + return fileDescriptor_write_cc36c9fc71610087, []int{1, 0, 0} } // A write on a document. @@ -80,7 +80,7 @@ func (m *Write) Reset() { *m = Write{} } func (m *Write) String() string { return proto.CompactTextString(m) } func (*Write) ProtoMessage() {} func (*Write) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{0} + return fileDescriptor_write_cc36c9fc71610087, []int{0} } func (m *Write) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Write.Unmarshal(m, b) @@ -270,7 +270,7 @@ func (m *DocumentTransform) Reset() { *m = DocumentTransform{} } func (m *DocumentTransform) String() string { return proto.CompactTextString(m) } func (*DocumentTransform) ProtoMessage() {} func (*DocumentTransform) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{1} + return fileDescriptor_write_cc36c9fc71610087, []int{1} } func (m *DocumentTransform) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DocumentTransform.Unmarshal(m, b) @@ -313,6 +313,9 @@ type DocumentTransform_FieldTransform struct { // // Types that are valid to be assigned to TransformType: // *DocumentTransform_FieldTransform_SetToServerValue + // *DocumentTransform_FieldTransform_Increment + // *DocumentTransform_FieldTransform_Maximum + // *DocumentTransform_FieldTransform_Minimum // *DocumentTransform_FieldTransform_AppendMissingElements // *DocumentTransform_FieldTransform_RemoveAllFromArray TransformType isDocumentTransform_FieldTransform_TransformType `protobuf_oneof:"transform_type"` @@ -325,7 +328,7 @@ func (m *DocumentTransform_FieldTransform) Reset() { *m = DocumentTransf func (m *DocumentTransform_FieldTransform) String() string { return proto.CompactTextString(m) } func (*DocumentTransform_FieldTransform) ProtoMessage() {} func (*DocumentTransform_FieldTransform) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{1, 0} + return fileDescriptor_write_cc36c9fc71610087, []int{1, 0} } func (m *DocumentTransform_FieldTransform) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DocumentTransform_FieldTransform.Unmarshal(m, b) @@ -360,6 +363,18 @@ type DocumentTransform_FieldTransform_SetToServerValue struct { SetToServerValue DocumentTransform_FieldTransform_ServerValue `protobuf:"varint,2,opt,name=set_to_server_value,json=setToServerValue,proto3,enum=google.firestore.v1beta1.DocumentTransform_FieldTransform_ServerValue,oneof"` } +type DocumentTransform_FieldTransform_Increment struct { + Increment *Value `protobuf:"bytes,3,opt,name=increment,proto3,oneof"` +} + +type DocumentTransform_FieldTransform_Maximum struct { + Maximum *Value `protobuf:"bytes,4,opt,name=maximum,proto3,oneof"` +} + +type DocumentTransform_FieldTransform_Minimum struct { + Minimum *Value `protobuf:"bytes,5,opt,name=minimum,proto3,oneof"` +} + type DocumentTransform_FieldTransform_AppendMissingElements struct { AppendMissingElements *ArrayValue `protobuf:"bytes,6,opt,name=append_missing_elements,json=appendMissingElements,proto3,oneof"` } @@ -371,6 +386,13 @@ type DocumentTransform_FieldTransform_RemoveAllFromArray struct { func (*DocumentTransform_FieldTransform_SetToServerValue) isDocumentTransform_FieldTransform_TransformType() { } +func (*DocumentTransform_FieldTransform_Increment) isDocumentTransform_FieldTransform_TransformType() { +} + +func (*DocumentTransform_FieldTransform_Maximum) isDocumentTransform_FieldTransform_TransformType() {} + +func (*DocumentTransform_FieldTransform_Minimum) isDocumentTransform_FieldTransform_TransformType() {} + func (*DocumentTransform_FieldTransform_AppendMissingElements) isDocumentTransform_FieldTransform_TransformType() { } @@ -391,6 +413,27 @@ func (m *DocumentTransform_FieldTransform) GetSetToServerValue() DocumentTransfo return DocumentTransform_FieldTransform_SERVER_VALUE_UNSPECIFIED } +func (m *DocumentTransform_FieldTransform) GetIncrement() *Value { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_Increment); ok { + return x.Increment + } + return nil +} + +func (m *DocumentTransform_FieldTransform) GetMaximum() *Value { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_Maximum); ok { + return x.Maximum + } + return nil +} + +func (m *DocumentTransform_FieldTransform) GetMinimum() *Value { + if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_Minimum); ok { + return x.Minimum + } + return nil +} + func (m *DocumentTransform_FieldTransform) GetAppendMissingElements() *ArrayValue { if x, ok := m.GetTransformType().(*DocumentTransform_FieldTransform_AppendMissingElements); ok { return x.AppendMissingElements @@ -409,6 +452,9 @@ func (m *DocumentTransform_FieldTransform) GetRemoveAllFromArray() *ArrayValue { func (*DocumentTransform_FieldTransform) 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{}) { return _DocumentTransform_FieldTransform_OneofMarshaler, _DocumentTransform_FieldTransform_OneofUnmarshaler, _DocumentTransform_FieldTransform_OneofSizer, []interface{}{ (*DocumentTransform_FieldTransform_SetToServerValue)(nil), + (*DocumentTransform_FieldTransform_Increment)(nil), + (*DocumentTransform_FieldTransform_Maximum)(nil), + (*DocumentTransform_FieldTransform_Minimum)(nil), (*DocumentTransform_FieldTransform_AppendMissingElements)(nil), (*DocumentTransform_FieldTransform_RemoveAllFromArray)(nil), } @@ -421,6 +467,21 @@ func _DocumentTransform_FieldTransform_OneofMarshaler(msg proto.Message, b *prot case *DocumentTransform_FieldTransform_SetToServerValue: b.EncodeVarint(2<<3 | proto.WireVarint) b.EncodeVarint(uint64(x.SetToServerValue)) + case *DocumentTransform_FieldTransform_Increment: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Increment); err != nil { + return err + } + case *DocumentTransform_FieldTransform_Maximum: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Maximum); err != nil { + return err + } + case *DocumentTransform_FieldTransform_Minimum: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Minimum); err != nil { + return err + } case *DocumentTransform_FieldTransform_AppendMissingElements: b.EncodeVarint(6<<3 | proto.WireBytes) if err := b.EncodeMessage(x.AppendMissingElements); err != nil { @@ -448,6 +509,30 @@ func _DocumentTransform_FieldTransform_OneofUnmarshaler(msg proto.Message, tag, x, err := b.DecodeVarint() m.TransformType = &DocumentTransform_FieldTransform_SetToServerValue{DocumentTransform_FieldTransform_ServerValue(x)} return true, err + case 3: // transform_type.increment + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Value) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_Increment{msg} + return true, err + case 4: // transform_type.maximum + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Value) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_Maximum{msg} + return true, err + case 5: // transform_type.minimum + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Value) + err := b.DecodeMessage(msg) + m.TransformType = &DocumentTransform_FieldTransform_Minimum{msg} + return true, err case 6: // transform_type.append_missing_elements if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType @@ -476,6 +561,21 @@ func _DocumentTransform_FieldTransform_OneofSizer(msg proto.Message) (n int) { case *DocumentTransform_FieldTransform_SetToServerValue: n += 1 // tag and wire n += proto.SizeVarint(uint64(x.SetToServerValue)) + case *DocumentTransform_FieldTransform_Increment: + s := proto.Size(x.Increment) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *DocumentTransform_FieldTransform_Maximum: + s := proto.Size(x.Maximum) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *DocumentTransform_FieldTransform_Minimum: + s := proto.Size(x.Minimum) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s case *DocumentTransform_FieldTransform_AppendMissingElements: s := proto.Size(x.AppendMissingElements) n += 1 // tag and wire @@ -513,7 +613,7 @@ func (m *WriteResult) Reset() { *m = WriteResult{} } func (m *WriteResult) String() string { return proto.CompactTextString(m) } func (*WriteResult) ProtoMessage() {} func (*WriteResult) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{2} + return fileDescriptor_write_cc36c9fc71610087, []int{2} } func (m *WriteResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_WriteResult.Unmarshal(m, b) @@ -572,7 +672,7 @@ func (m *DocumentChange) Reset() { *m = DocumentChange{} } func (m *DocumentChange) String() string { return proto.CompactTextString(m) } func (*DocumentChange) ProtoMessage() {} func (*DocumentChange) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{3} + return fileDescriptor_write_cc36c9fc71610087, []int{3} } func (m *DocumentChange) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DocumentChange.Unmarshal(m, b) @@ -638,7 +738,7 @@ func (m *DocumentDelete) Reset() { *m = DocumentDelete{} } func (m *DocumentDelete) String() string { return proto.CompactTextString(m) } func (*DocumentDelete) ProtoMessage() {} func (*DocumentDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{4} + return fileDescriptor_write_cc36c9fc71610087, []int{4} } func (m *DocumentDelete) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DocumentDelete.Unmarshal(m, b) @@ -705,7 +805,7 @@ func (m *DocumentRemove) Reset() { *m = DocumentRemove{} } func (m *DocumentRemove) String() string { return proto.CompactTextString(m) } func (*DocumentRemove) ProtoMessage() {} func (*DocumentRemove) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{5} + return fileDescriptor_write_cc36c9fc71610087, []int{5} } func (m *DocumentRemove) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DocumentRemove.Unmarshal(m, b) @@ -764,7 +864,7 @@ func (m *ExistenceFilter) Reset() { *m = ExistenceFilter{} } func (m *ExistenceFilter) String() string { return proto.CompactTextString(m) } func (*ExistenceFilter) ProtoMessage() {} func (*ExistenceFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_write_20ad488dab963f67, []int{6} + return fileDescriptor_write_cc36c9fc71610087, []int{6} } func (m *ExistenceFilter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ExistenceFilter.Unmarshal(m, b) @@ -811,61 +911,64 @@ func init() { } func init() { - proto.RegisterFile("google/firestore/v1beta1/write.proto", fileDescriptor_write_20ad488dab963f67) -} - -var fileDescriptor_write_20ad488dab963f67 = []byte{ - // 826 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x41, 0x6f, 0xe3, 0x44, - 0x14, 0xc7, 0x9b, 0xb4, 0x09, 0xcd, 0x0b, 0x6a, 0xbd, 0x03, 0x2b, 0xac, 0xd0, 0x65, 0xab, 0x68, - 0x81, 0x4a, 0x20, 0x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x8b, 0xd4, 0xab, 0x7f, 0x76, - 0x8f, 0xab, 0x95, 0x5f, 0xea, 0x1b, 0x27, 0x47, 0x83, 0xd1, 0xaf, 0xf5, 0xf7, 0x4e, 0x2c, 0xea, - 0x28, 0x16, 0xf3, 0xc0, 0x1b, 0x54, 0x85, 0x27, 0xfb, 0xfd, 0x3c, 0xe3, 0x8f, 0x52, 0x70, 0x69, - 0x04, 0x97, 0x95, 0xe0, 0x72, 0x62, 0x91, 0x57, 0x4d, 0x53, 0xf6, 0x93, 0xbf, 0x03, 0x00, 0x00, - 0xff, 0xff, 0xc3, 0x26, 0x20, 0x51, 0xe7, 0x07, 0x00, 0x00, + proto.RegisterFile("google/firestore/v1beta1/write.proto", fileDescriptor_write_cc36c9fc71610087) +} + +var fileDescriptor_write_cc36c9fc71610087 = []byte{ + // 866 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x6e, 0xe3, 0x44, + 0x14, 0x6e, 0xd2, 0x26, 0xdb, 0x9c, 0xa0, 0xd6, 0x3b, 0xb0, 0xc2, 0x0a, 0x5d, 0xb6, 0x8a, 0x16, + 0xa8, 0x04, 0x72, 0xd4, 0x72, 0x81, 0xc4, 0xf2, 0xa3, 0xa6, 0x75, 0xda, 0x8a, 0x2d, 0xca, 0x3a, + 0x69, 0x10, 0xa8, 0xc2, 0x9a, 0xc6, 0x27, 0xae, 0xb5, 0xf6, 0x8c, 0x35, 0x33, 0xee, 0xee, 0xbe, + 0x01, 0xf7, 0xdc, 0x70, 0xc3, 0x0d, 0x97, 0x3c, 0x01, 0xcf, 0xc0, 0x3d, 0xcf, 0xc1, 0x2b, 0x20, + 0xcf, 0xd8, 0x6e, 0xca, 0x2a, 0xa4, 0x5d, 0x71, 0x97, 0x33, 0xf3, 0x7d, 0xdf, 0xf9, 0x3c, 0xdf, + 0xcc, 0x09, 0x3c, 0x0e, 0x39, 0x0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