v1

package
v0.6.310 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_metaprov_modelaapi_services_prediction_v1_prediction_proto protoreflect.FileDescriptor
View Source
var PredictionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.prediction.v1.PredictionService",
	HandlerType: (*PredictionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListPredictions",
			Handler:    _PredictionService_ListPredictions_Handler,
		},
		{
			MethodName: "CreatePrediction",
			Handler:    _PredictionService_CreatePrediction_Handler,
		},
		{
			MethodName: "GetPrediction",
			Handler:    _PredictionService_GetPrediction_Handler,
		},
		{
			MethodName: "UpdatePrediction",
			Handler:    _PredictionService_UpdatePrediction_Handler,
		},
		{
			MethodName: "DeletePrediction",
			Handler:    _PredictionService_DeletePrediction_Handler,
		},
		{
			MethodName: "DownloadPrediction",
			Handler:    _PredictionService_DownloadPrediction_Handler,
		},
		{
			MethodName: "AbortPrediction",
			Handler:    _PredictionService_AbortPrediction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/prediction/v1/prediction.proto",
}

PredictionService_ServiceDesc is the grpc.ServiceDesc for PredictionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPredictionServiceServer

func RegisterPredictionServiceServer(s grpc.ServiceRegistrar, srv PredictionServiceServer)

Types

type AbortPredictionRequest

type AbortPredictionRequest struct {
	Namespace string                            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Run       *v1alpha11.PredictionRunReference `protobuf:"bytes,2,opt,name=run,proto3" json:"run,omitempty"`
	// contains filtered or unexported fields
}

func (*AbortPredictionRequest) Descriptor deprecated

func (*AbortPredictionRequest) Descriptor() ([]byte, []int)

Deprecated: Use AbortPredictionRequest.ProtoReflect.Descriptor instead.

func (*AbortPredictionRequest) GetNamespace

func (x *AbortPredictionRequest) GetNamespace() string

func (*AbortPredictionRequest) GetRun added in v0.6.252

func (*AbortPredictionRequest) ProtoMessage

func (*AbortPredictionRequest) ProtoMessage()

func (*AbortPredictionRequest) ProtoReflect

func (x *AbortPredictionRequest) ProtoReflect() protoreflect.Message

func (*AbortPredictionRequest) Reset

func (x *AbortPredictionRequest) Reset()

func (*AbortPredictionRequest) String

func (x *AbortPredictionRequest) String() string

type AbortPredictionResponse

type AbortPredictionResponse struct {
	// contains filtered or unexported fields
}

func (*AbortPredictionResponse) Descriptor deprecated

func (*AbortPredictionResponse) Descriptor() ([]byte, []int)

Deprecated: Use AbortPredictionResponse.ProtoReflect.Descriptor instead.

func (*AbortPredictionResponse) ProtoMessage

func (*AbortPredictionResponse) ProtoMessage()

func (*AbortPredictionResponse) ProtoReflect

func (x *AbortPredictionResponse) ProtoReflect() protoreflect.Message

func (*AbortPredictionResponse) Reset

func (x *AbortPredictionResponse) Reset()

func (*AbortPredictionResponse) String

func (x *AbortPredictionResponse) String() string

type CreatePredictionRequest

type CreatePredictionRequest struct {
	Prediction *v1alpha1.Prediction `protobuf:"bytes,1,opt,name=prediction,proto3" json:"prediction,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePredictionRequest) Descriptor deprecated

func (*CreatePredictionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePredictionRequest.ProtoReflect.Descriptor instead.

func (*CreatePredictionRequest) GetPrediction added in v0.4.472

func (x *CreatePredictionRequest) GetPrediction() *v1alpha1.Prediction

func (*CreatePredictionRequest) ProtoMessage

func (*CreatePredictionRequest) ProtoMessage()

func (*CreatePredictionRequest) ProtoReflect

func (x *CreatePredictionRequest) ProtoReflect() protoreflect.Message

func (*CreatePredictionRequest) Reset

func (x *CreatePredictionRequest) Reset()

func (*CreatePredictionRequest) String

func (x *CreatePredictionRequest) String() string

type CreatePredictionResponse

type CreatePredictionResponse struct {
	// contains filtered or unexported fields
}

func (*CreatePredictionResponse) Descriptor deprecated

func (*CreatePredictionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreatePredictionResponse.ProtoReflect.Descriptor instead.

func (*CreatePredictionResponse) ProtoMessage

func (*CreatePredictionResponse) ProtoMessage()

func (*CreatePredictionResponse) ProtoReflect

func (x *CreatePredictionResponse) ProtoReflect() protoreflect.Message

func (*CreatePredictionResponse) Reset

func (x *CreatePredictionResponse) Reset()

func (*CreatePredictionResponse) String

func (x *CreatePredictionResponse) String() string

type DeletePredictionRequest

type DeletePredictionRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePredictionRequest) Descriptor deprecated

func (*DeletePredictionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletePredictionRequest.ProtoReflect.Descriptor instead.

func (*DeletePredictionRequest) GetName

func (x *DeletePredictionRequest) GetName() string

func (*DeletePredictionRequest) GetNamespace

func (x *DeletePredictionRequest) GetNamespace() string

func (*DeletePredictionRequest) ProtoMessage

func (*DeletePredictionRequest) ProtoMessage()

func (*DeletePredictionRequest) ProtoReflect

func (x *DeletePredictionRequest) ProtoReflect() protoreflect.Message

func (*DeletePredictionRequest) Reset

func (x *DeletePredictionRequest) Reset()

func (*DeletePredictionRequest) String

func (x *DeletePredictionRequest) String() string

type DeletePredictionResponse

type DeletePredictionResponse struct {
	// contains filtered or unexported fields
}

func (*DeletePredictionResponse) Descriptor deprecated

func (*DeletePredictionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeletePredictionResponse.ProtoReflect.Descriptor instead.

func (*DeletePredictionResponse) ProtoMessage

func (*DeletePredictionResponse) ProtoMessage()

func (*DeletePredictionResponse) ProtoReflect

func (x *DeletePredictionResponse) ProtoReflect() protoreflect.Message

func (*DeletePredictionResponse) Reset

func (x *DeletePredictionResponse) Reset()

func (*DeletePredictionResponse) String

func (x *DeletePredictionResponse) String() string

type DownloadPredictionRequest

type DownloadPredictionRequest struct {
	Namespace string                            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Run       *v1alpha11.PredictionRunReference `protobuf:"bytes,2,opt,name=run,proto3" json:"run,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadPredictionRequest) Descriptor deprecated

func (*DownloadPredictionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DownloadPredictionRequest.ProtoReflect.Descriptor instead.

func (*DownloadPredictionRequest) GetNamespace

func (x *DownloadPredictionRequest) GetNamespace() string

func (*DownloadPredictionRequest) GetRun added in v0.6.252

func (*DownloadPredictionRequest) ProtoMessage

func (*DownloadPredictionRequest) ProtoMessage()

func (*DownloadPredictionRequest) ProtoReflect

func (*DownloadPredictionRequest) Reset

func (x *DownloadPredictionRequest) Reset()

func (*DownloadPredictionRequest) String

func (x *DownloadPredictionRequest) String() string

type DownloadPredictionResponse

type DownloadPredictionResponse struct {
	Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadPredictionResponse) Descriptor deprecated

func (*DownloadPredictionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DownloadPredictionResponse.ProtoReflect.Descriptor instead.

func (*DownloadPredictionResponse) GetRaw

func (x *DownloadPredictionResponse) GetRaw() []byte

func (*DownloadPredictionResponse) ProtoMessage

func (*DownloadPredictionResponse) ProtoMessage()

func (*DownloadPredictionResponse) ProtoReflect

func (*DownloadPredictionResponse) Reset

func (x *DownloadPredictionResponse) Reset()

func (*DownloadPredictionResponse) String

func (x *DownloadPredictionResponse) String() string

type GetPredictionRequest

type GetPredictionRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPredictionRequest) Descriptor deprecated

func (*GetPredictionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPredictionRequest.ProtoReflect.Descriptor instead.

func (*GetPredictionRequest) GetName

func (x *GetPredictionRequest) GetName() string

func (*GetPredictionRequest) GetNamespace

func (x *GetPredictionRequest) GetNamespace() string

func (*GetPredictionRequest) ProtoMessage

func (*GetPredictionRequest) ProtoMessage()

func (*GetPredictionRequest) ProtoReflect

func (x *GetPredictionRequest) ProtoReflect() protoreflect.Message

func (*GetPredictionRequest) Reset

func (x *GetPredictionRequest) Reset()

func (*GetPredictionRequest) String

func (x *GetPredictionRequest) String() string

type GetPredictionResponse

type GetPredictionResponse struct {
	Prediction *v1alpha1.Prediction `protobuf:"bytes,1,opt,name=prediction,proto3" json:"prediction,omitempty"`
	Yaml       string               `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPredictionResponse) Descriptor deprecated

func (*GetPredictionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPredictionResponse.ProtoReflect.Descriptor instead.

func (*GetPredictionResponse) GetPrediction added in v0.4.472

func (x *GetPredictionResponse) GetPrediction() *v1alpha1.Prediction

func (*GetPredictionResponse) GetYaml

func (x *GetPredictionResponse) GetYaml() string

func (*GetPredictionResponse) ProtoMessage

func (*GetPredictionResponse) ProtoMessage()

func (*GetPredictionResponse) ProtoReflect

func (x *GetPredictionResponse) ProtoReflect() protoreflect.Message

func (*GetPredictionResponse) Reset

func (x *GetPredictionResponse) Reset()

func (*GetPredictionResponse) String

func (x *GetPredictionResponse) String() string

type ListPredictionsRequest

type ListPredictionsRequest struct {
	Namespace string            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels    map[string]string `` /* 153-byte string literal not displayed */
	PageSize  int32             `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string            `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	OrderBy   string            `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPredictionsRequest) Descriptor deprecated

func (*ListPredictionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPredictionsRequest.ProtoReflect.Descriptor instead.

func (*ListPredictionsRequest) GetLabels

func (x *ListPredictionsRequest) GetLabels() map[string]string

func (*ListPredictionsRequest) GetNamespace

func (x *ListPredictionsRequest) GetNamespace() string

func (*ListPredictionsRequest) GetOrderBy added in v0.4.414

func (x *ListPredictionsRequest) GetOrderBy() string

func (*ListPredictionsRequest) GetPageSize added in v0.4.414

func (x *ListPredictionsRequest) GetPageSize() int32

func (*ListPredictionsRequest) GetPageToken added in v0.4.414

func (x *ListPredictionsRequest) GetPageToken() string

func (*ListPredictionsRequest) ProtoMessage

func (*ListPredictionsRequest) ProtoMessage()

func (*ListPredictionsRequest) ProtoReflect

func (x *ListPredictionsRequest) ProtoReflect() protoreflect.Message

func (*ListPredictionsRequest) Reset

func (x *ListPredictionsRequest) Reset()

func (*ListPredictionsRequest) String

func (x *ListPredictionsRequest) String() string

type ListPredictionsResponse

type ListPredictionsResponse struct {
	Predictions   *v1alpha1.PredictionList `protobuf:"bytes,1,opt,name=predictions,proto3" json:"predictions,omitempty"`
	NextPageToken string                   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPredictionsResponse) Descriptor deprecated

func (*ListPredictionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPredictionsResponse.ProtoReflect.Descriptor instead.

func (*ListPredictionsResponse) GetNextPageToken added in v0.4.472

func (x *ListPredictionsResponse) GetNextPageToken() string

func (*ListPredictionsResponse) GetPredictions added in v0.4.472

func (x *ListPredictionsResponse) GetPredictions() *v1alpha1.PredictionList

func (*ListPredictionsResponse) ProtoMessage

func (*ListPredictionsResponse) ProtoMessage()

func (*ListPredictionsResponse) ProtoReflect

func (x *ListPredictionsResponse) ProtoReflect() protoreflect.Message

func (*ListPredictionsResponse) Reset

func (x *ListPredictionsResponse) Reset()

func (*ListPredictionsResponse) String

func (x *ListPredictionsResponse) String() string

type PredictionServiceClient

type PredictionServiceClient interface {
	ListPredictions(ctx context.Context, in *ListPredictionsRequest, opts ...grpc.CallOption) (*ListPredictionsResponse, error)
	CreatePrediction(ctx context.Context, in *CreatePredictionRequest, opts ...grpc.CallOption) (*CreatePredictionResponse, error)
	GetPrediction(ctx context.Context, in *GetPredictionRequest, opts ...grpc.CallOption) (*GetPredictionResponse, error)
	UpdatePrediction(ctx context.Context, in *UpdatePredictionRequest, opts ...grpc.CallOption) (*UpdatePredictionResponse, error)
	DeletePrediction(ctx context.Context, in *DeletePredictionRequest, opts ...grpc.CallOption) (*DeletePredictionResponse, error)
	DownloadPrediction(ctx context.Context, in *DownloadPredictionRequest, opts ...grpc.CallOption) (*DownloadPredictionResponse, error)
	AbortPrediction(ctx context.Context, in *AbortPredictionRequest, opts ...grpc.CallOption) (*AbortPredictionResponse, error)
}

PredictionServiceClient is the client API for PredictionService 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 PredictionServiceServer

PredictionServiceServer is the server API for PredictionService service. All implementations must embed UnimplementedPredictionServiceServer for forward compatibility

type UnimplementedPredictionServiceServer

type UnimplementedPredictionServiceServer struct {
}

UnimplementedPredictionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPredictionServiceServer) AbortPrediction added in v0.6.252

func (UnimplementedPredictionServiceServer) CreatePrediction

func (UnimplementedPredictionServiceServer) DeletePrediction

func (UnimplementedPredictionServiceServer) DownloadPrediction added in v0.6.252

func (UnimplementedPredictionServiceServer) GetPrediction

func (UnimplementedPredictionServiceServer) ListPredictions

func (UnimplementedPredictionServiceServer) UpdatePrediction

type UnsafePredictionServiceServer added in v0.4.687

type UnsafePredictionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePredictionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PredictionServiceServer will result in compilation errors.

type UpdatePredictionRequest

type UpdatePredictionRequest struct {
	Prediction *v1alpha1.Prediction  `protobuf:"bytes,1,opt,name=prediction,proto3" json:"prediction,omitempty"`
	FieldMask  *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePredictionRequest) Descriptor deprecated

func (*UpdatePredictionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePredictionRequest.ProtoReflect.Descriptor instead.

func (*UpdatePredictionRequest) GetFieldMask added in v0.4.422

func (x *UpdatePredictionRequest) GetFieldMask() *field_mask.FieldMask

func (*UpdatePredictionRequest) GetPrediction added in v0.4.472

func (x *UpdatePredictionRequest) GetPrediction() *v1alpha1.Prediction

func (*UpdatePredictionRequest) ProtoMessage

func (*UpdatePredictionRequest) ProtoMessage()

func (*UpdatePredictionRequest) ProtoReflect

func (x *UpdatePredictionRequest) ProtoReflect() protoreflect.Message

func (*UpdatePredictionRequest) Reset

func (x *UpdatePredictionRequest) Reset()

func (*UpdatePredictionRequest) String

func (x *UpdatePredictionRequest) String() string

type UpdatePredictionResponse

type UpdatePredictionResponse struct {
	// contains filtered or unexported fields
}

func (*UpdatePredictionResponse) Descriptor deprecated

func (*UpdatePredictionResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePredictionResponse.ProtoReflect.Descriptor instead.

func (*UpdatePredictionResponse) ProtoMessage

func (*UpdatePredictionResponse) ProtoMessage()

func (*UpdatePredictionResponse) ProtoReflect

func (x *UpdatePredictionResponse) ProtoReflect() protoreflect.Message

func (*UpdatePredictionResponse) Reset

func (x *UpdatePredictionResponse) Reset()

func (*UpdatePredictionResponse) String

func (x *UpdatePredictionResponse) String() string

Jump to

Keyboard shortcuts

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