data_assets

package
v3.18.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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) ListDataAssets

func (UnimplementedDataAssetsServiceServer) UpsertDataAsset

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

Jump to

Keyboard shortcuts

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