Documentation ¶
Index ¶
- Variables
- func RegisterDataAssetsServiceServer(s grpc.ServiceRegistrar, srv DataAssetsServiceServer)
- type DataAssetsServiceClient
- type DataAssetsServiceServer
- type GetDataAssetRequest
- func (*GetDataAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDataAssetRequest) GetId() string
- func (*GetDataAssetRequest) ProtoMessage()
- func (x *GetDataAssetRequest) ProtoReflect() protoreflect.Message
- func (x *GetDataAssetRequest) Reset()
- func (x *GetDataAssetRequest) String() string
- type GetDataAssetResponse
- func (*GetDataAssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDataAssetResponse) GetDataAsset() *v1alpha1.DataAsset
- func (*GetDataAssetResponse) ProtoMessage()
- func (x *GetDataAssetResponse) ProtoReflect() protoreflect.Message
- func (x *GetDataAssetResponse) Reset()
- func (x *GetDataAssetResponse) String() string
- type ListDataAssetsRequest
- func (*ListDataAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDataAssetsRequest) GetPageInfo() *v1alpha.PageInfo
- func (*ListDataAssetsRequest) ProtoMessage()
- func (x *ListDataAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *ListDataAssetsRequest) Reset()
- func (x *ListDataAssetsRequest) String() string
- type ListDataAssetsResponse
- func (*ListDataAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDataAssetsResponse) GetDataAssets() []*v1alpha1.DataAsset
- func (x *ListDataAssetsResponse) GetPageInfo() *v1alpha.PageInfo
- func (*ListDataAssetsResponse) ProtoMessage()
- func (x *ListDataAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *ListDataAssetsResponse) Reset()
- func (x *ListDataAssetsResponse) String() string
- type UnimplementedDataAssetsServiceServer
- func (UnimplementedDataAssetsServiceServer) GetDataAsset(context.Context, *GetDataAssetRequest) (*GetDataAssetResponse, error)
- func (UnimplementedDataAssetsServiceServer) ListDataAssets(context.Context, *ListDataAssetsRequest) (*ListDataAssetsResponse, error)
- func (UnimplementedDataAssetsServiceServer) UpsertDataAsset(context.Context, *UpsertDataAssetRequest) (*UpsertDataAssetResponse, error)
- type UnsafeDataAssetsServiceServer
- type UpsertDataAssetRequest
- func (*UpsertDataAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertDataAssetRequest) GetDataAsset() *v1alpha1.DataAsset
- func (*UpsertDataAssetRequest) ProtoMessage()
- func (x *UpsertDataAssetRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertDataAssetRequest) Reset()
- func (x *UpsertDataAssetRequest) String() string
- type UpsertDataAssetResponse
- func (*UpsertDataAssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertDataAssetResponse) GetDataAsset() *v1alpha1.DataAsset
- func (*UpsertDataAssetResponse) ProtoMessage()
- func (x *UpsertDataAssetResponse) ProtoReflect() protoreflect.Message
- func (x *UpsertDataAssetResponse) Reset()
- func (x *UpsertDataAssetResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var DataAssetsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "strmprivacy.api.data_assets.v1alpha.DataAssetsService", HandlerType: (*DataAssetsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListDataAssets", Handler: _DataAssetsService_ListDataAssets_Handler, }, { MethodName: "GetDataAsset", Handler: _DataAssetsService_GetDataAsset_Handler, }, { MethodName: "UpsertDataAsset", Handler: _DataAssetsService_UpsertDataAsset_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "strmprivacy/api/data_assets/v1alpha/data_assets_v1alpha.proto", }
DataAssetsService_ServiceDesc is the grpc.ServiceDesc for DataAssetsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_strmprivacy_api_data_assets_v1alpha_data_assets_v1alpha_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDataAssetsServiceServer ¶
func RegisterDataAssetsServiceServer(s grpc.ServiceRegistrar, srv DataAssetsServiceServer)
Types ¶
type DataAssetsServiceClient ¶
type DataAssetsServiceClient interface { // List all data assets for an organization. The organization is derived from the calling user. ListDataAssets(ctx context.Context, in *ListDataAssetsRequest, opts ...grpc.CallOption) (*ListDataAssetsResponse, error) // Get a data asset by its id. GetDataAsset(ctx context.Context, in *GetDataAssetRequest, opts ...grpc.CallOption) (*GetDataAssetResponse, error) // Create or update a data asset. UpsertDataAsset(ctx context.Context, in *UpsertDataAssetRequest, opts ...grpc.CallOption) (*UpsertDataAssetResponse, error) }
DataAssetsServiceClient is the client API for DataAssetsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDataAssetsServiceClient ¶
func NewDataAssetsServiceClient(cc grpc.ClientConnInterface) DataAssetsServiceClient
type DataAssetsServiceServer ¶
type DataAssetsServiceServer interface { // List all data assets for an organization. The organization is derived from the calling user. ListDataAssets(context.Context, *ListDataAssetsRequest) (*ListDataAssetsResponse, error) // Get a data asset by its id. GetDataAsset(context.Context, *GetDataAssetRequest) (*GetDataAssetResponse, error) // Create or update a data asset. UpsertDataAsset(context.Context, *UpsertDataAssetRequest) (*UpsertDataAssetResponse, error) }
DataAssetsServiceServer is the server API for DataAssetsService service. All implementations should embed UnimplementedDataAssetsServiceServer for forward compatibility
type GetDataAssetRequest ¶
type GetDataAssetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetDataAssetRequest) Descriptor
deprecated
func (*GetDataAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDataAssetRequest.ProtoReflect.Descriptor instead.
func (*GetDataAssetRequest) GetId ¶
func (x *GetDataAssetRequest) GetId() string
func (*GetDataAssetRequest) ProtoMessage ¶
func (*GetDataAssetRequest) ProtoMessage()
func (*GetDataAssetRequest) ProtoReflect ¶
func (x *GetDataAssetRequest) ProtoReflect() protoreflect.Message
func (*GetDataAssetRequest) Reset ¶
func (x *GetDataAssetRequest) Reset()
func (*GetDataAssetRequest) String ¶
func (x *GetDataAssetRequest) String() string
type GetDataAssetResponse ¶
type GetDataAssetResponse struct { DataAsset *v1alpha1.DataAsset `protobuf:"bytes,1,opt,name=data_asset,json=dataAsset,proto3" json:"data_asset,omitempty"` // contains filtered or unexported fields }
func (*GetDataAssetResponse) Descriptor
deprecated
func (*GetDataAssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDataAssetResponse.ProtoReflect.Descriptor instead.
func (*GetDataAssetResponse) GetDataAsset ¶
func (x *GetDataAssetResponse) GetDataAsset() *v1alpha1.DataAsset
func (*GetDataAssetResponse) ProtoMessage ¶
func (*GetDataAssetResponse) ProtoMessage()
func (*GetDataAssetResponse) ProtoReflect ¶
func (x *GetDataAssetResponse) ProtoReflect() protoreflect.Message
func (*GetDataAssetResponse) Reset ¶
func (x *GetDataAssetResponse) Reset()
func (*GetDataAssetResponse) String ¶
func (x *GetDataAssetResponse) String() string
type ListDataAssetsRequest ¶
type ListDataAssetsRequest struct { PageInfo *v1alpha.PageInfo `protobuf:"bytes,1,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"` // contains filtered or unexported fields }
func (*ListDataAssetsRequest) Descriptor
deprecated
func (*ListDataAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDataAssetsRequest.ProtoReflect.Descriptor instead.
func (*ListDataAssetsRequest) GetPageInfo ¶
func (x *ListDataAssetsRequest) GetPageInfo() *v1alpha.PageInfo
func (*ListDataAssetsRequest) ProtoMessage ¶
func (*ListDataAssetsRequest) ProtoMessage()
func (*ListDataAssetsRequest) ProtoReflect ¶
func (x *ListDataAssetsRequest) ProtoReflect() protoreflect.Message
func (*ListDataAssetsRequest) Reset ¶
func (x *ListDataAssetsRequest) Reset()
func (*ListDataAssetsRequest) String ¶
func (x *ListDataAssetsRequest) String() string
type ListDataAssetsResponse ¶
type ListDataAssetsResponse struct { // DataAssets returned. DataAssets []*v1alpha1.DataAsset `protobuf:"bytes,1,rep,name=data_assets,json=dataAssets,proto3" json:"data_assets,omitempty"` PageInfo *v1alpha.PageInfo `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"` // contains filtered or unexported fields }
func (*ListDataAssetsResponse) Descriptor
deprecated
func (*ListDataAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDataAssetsResponse.ProtoReflect.Descriptor instead.
func (*ListDataAssetsResponse) GetDataAssets ¶
func (x *ListDataAssetsResponse) GetDataAssets() []*v1alpha1.DataAsset
func (*ListDataAssetsResponse) GetPageInfo ¶
func (x *ListDataAssetsResponse) GetPageInfo() *v1alpha.PageInfo
func (*ListDataAssetsResponse) ProtoMessage ¶
func (*ListDataAssetsResponse) ProtoMessage()
func (*ListDataAssetsResponse) ProtoReflect ¶
func (x *ListDataAssetsResponse) ProtoReflect() protoreflect.Message
func (*ListDataAssetsResponse) Reset ¶
func (x *ListDataAssetsResponse) Reset()
func (*ListDataAssetsResponse) String ¶
func (x *ListDataAssetsResponse) String() string
type UnimplementedDataAssetsServiceServer ¶
type UnimplementedDataAssetsServiceServer struct { }
UnimplementedDataAssetsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDataAssetsServiceServer) GetDataAsset ¶
func (UnimplementedDataAssetsServiceServer) GetDataAsset(context.Context, *GetDataAssetRequest) (*GetDataAssetResponse, error)
func (UnimplementedDataAssetsServiceServer) ListDataAssets ¶
func (UnimplementedDataAssetsServiceServer) ListDataAssets(context.Context, *ListDataAssetsRequest) (*ListDataAssetsResponse, error)
func (UnimplementedDataAssetsServiceServer) UpsertDataAsset ¶
func (UnimplementedDataAssetsServiceServer) UpsertDataAsset(context.Context, *UpsertDataAssetRequest) (*UpsertDataAssetResponse, error)
type UnsafeDataAssetsServiceServer ¶
type UnsafeDataAssetsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDataAssetsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataAssetsServiceServer will result in compilation errors.
type UpsertDataAssetRequest ¶
type UpsertDataAssetRequest struct { DataAsset *v1alpha1.DataAsset `protobuf:"bytes,1,opt,name=data_asset,json=dataAsset,proto3" json:"data_asset,omitempty"` // contains filtered or unexported fields }
To create a data asset, leave its id empty. To update a data asset, set its id. The content of nested entities (parties, categories) are not updated. They may be provided with just their ids.
func (*UpsertDataAssetRequest) Descriptor
deprecated
func (*UpsertDataAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpsertDataAssetRequest.ProtoReflect.Descriptor instead.
func (*UpsertDataAssetRequest) GetDataAsset ¶
func (x *UpsertDataAssetRequest) GetDataAsset() *v1alpha1.DataAsset
func (*UpsertDataAssetRequest) ProtoMessage ¶
func (*UpsertDataAssetRequest) ProtoMessage()
func (*UpsertDataAssetRequest) ProtoReflect ¶
func (x *UpsertDataAssetRequest) ProtoReflect() protoreflect.Message
func (*UpsertDataAssetRequest) Reset ¶
func (x *UpsertDataAssetRequest) Reset()
func (*UpsertDataAssetRequest) String ¶
func (x *UpsertDataAssetRequest) String() string
type UpsertDataAssetResponse ¶
type UpsertDataAssetResponse struct { DataAsset *v1alpha1.DataAsset `protobuf:"bytes,1,opt,name=data_asset,json=dataAsset,proto3" json:"data_asset,omitempty"` // contains filtered or unexported fields }
func (*UpsertDataAssetResponse) Descriptor
deprecated
func (*UpsertDataAssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpsertDataAssetResponse.ProtoReflect.Descriptor instead.
func (*UpsertDataAssetResponse) GetDataAsset ¶
func (x *UpsertDataAssetResponse) GetDataAsset() *v1alpha1.DataAsset
func (*UpsertDataAssetResponse) ProtoMessage ¶
func (*UpsertDataAssetResponse) ProtoMessage()
func (*UpsertDataAssetResponse) ProtoReflect ¶
func (x *UpsertDataAssetResponse) ProtoReflect() protoreflect.Message
func (*UpsertDataAssetResponse) Reset ¶
func (x *UpsertDataAssetResponse) Reset()
func (*UpsertDataAssetResponse) String ¶
func (x *UpsertDataAssetResponse) String() string