modelv1alpha

package
v0.1.5-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package modelv1alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	LivenessResponse_ServingStatus_name = map[int32]string{
		0: "SERVING_STATUS_UNSPECIFIED",
		1: "SERVING_STATUS_SERVING",
		2: "SERVING_STATUS_NOT_SERVING",
	}
	LivenessResponse_ServingStatus_value = map[string]int32{
		"SERVING_STATUS_UNSPECIFIED": 0,
		"SERVING_STATUS_SERVING":     1,
		"SERVING_STATUS_NOT_SERVING": 2,
	}
)

Enum value maps for LivenessResponse_ServingStatus.

View Source
var (
	ReadinessResponse_ServingStatus_name = map[int32]string{
		0: "SERVING_STATUS_UNSPECIFIED",
		1: "SERVING_STATUS_SERVING",
		2: "SERVING_STATUS_NOT_SERVING",
	}
	ReadinessResponse_ServingStatus_value = map[string]int32{
		"SERVING_STATUS_UNSPECIFIED": 0,
		"SERVING_STATUS_SERVING":     1,
		"SERVING_STATUS_NOT_SERVING": 2,
	}
)

Enum value maps for ReadinessResponse_ServingStatus.

View Source
var (
	ModelVersion_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OFFLINE",
		2: "STATUS_ONLINE",
		3: "STATUS_ERROR",
	}
	ModelVersion_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_OFFLINE":     1,
		"STATUS_ONLINE":      2,
		"STATUS_ERROR":       3,
	}
)

Enum value maps for ModelVersion_Status.

View Source
var (
	Model_Task_name = map[int32]string{
		0: "TASK_UNSPECIFIED",
		1: "TASK_CLASSIFICATION",
		2: "TASK_DETECTION",
	}
	Model_Task_value = map[string]int32{
		"TASK_UNSPECIFIED":    0,
		"TASK_CLASSIFICATION": 1,
		"TASK_DETECTION":      2,
	}
)

Enum value maps for Model_Task.

View Source
var File_instill_model_v1alpha_model_proto protoreflect.FileDescriptor
View Source
var ModelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "instill.model.v1alpha.ModelService",
	HandlerType: (*ModelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Liveness",
			Handler:    _ModelService_Liveness_Handler,
		},
		{
			MethodName: "Readiness",
			Handler:    _ModelService_Readiness_Handler,
		},
		{
			MethodName: "ListModel",
			Handler:    _ModelService_ListModel_Handler,
		},
		{
			MethodName: "GetModel",
			Handler:    _ModelService_GetModel_Handler,
		},
		{
			MethodName: "UpdateModelVersion",
			Handler:    _ModelService_UpdateModelVersion_Handler,
		},
		{
			MethodName: "DeleteModel",
			Handler:    _ModelService_DeleteModel_Handler,
		},
		{
			MethodName: "DeleteModelVersion",
			Handler:    _ModelService_DeleteModelVersion_Handler,
		},
		{
			MethodName: "TriggerModel",
			Handler:    _ModelService_TriggerModel_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "CreateModelBinaryFileUpload",
			Handler:       _ModelService_CreateModelBinaryFileUpload_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "TriggerModelBinaryFileUpload",
			Handler:       _ModelService_TriggerModelBinaryFileUpload_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "instill/model/v1alpha/model.proto",
}

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

Functions

func RegisterModelServiceHandler

func RegisterModelServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterModelServiceHandler registers the http handlers for service ModelService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterModelServiceHandlerClient

func RegisterModelServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelServiceClient) error

RegisterModelServiceHandlerClient registers the http handlers for service ModelService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ModelServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ModelServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ModelServiceClient" to call the correct interceptors.

func RegisterModelServiceHandlerFromEndpoint

func RegisterModelServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterModelServiceHandlerFromEndpoint is same as RegisterModelServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterModelServiceHandlerServer

func RegisterModelServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelServiceServer) error

RegisterModelServiceHandlerServer registers the http handlers for service ModelService to "mux". UnaryRPC :call ModelServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterModelServiceHandlerFromEndpoint instead.

func RegisterModelServiceServer

func RegisterModelServiceServer(s grpc.ServiceRegistrar, srv ModelServiceServer)

Types

type BoundingBox

type BoundingBox struct {

	// Bounding box top y-axis value
	Top float32 `protobuf:"fixed32,1,opt,name=top,proto3" json:"top,omitempty"`
	// Bounding box left x-axis value
	Left float32 `protobuf:"fixed32,2,opt,name=left,proto3" json:"left,omitempty"`
	// Bounding box width value
	Width float32 `protobuf:"fixed32,3,opt,name=width,proto3" json:"width,omitempty"`
	// Bounding box height value
	Height float32 `protobuf:"fixed32,4,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

BoundingBox represents the bounding box data structure

func (*BoundingBox) Descriptor deprecated

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

Deprecated: Use BoundingBox.ProtoReflect.Descriptor instead.

func (*BoundingBox) GetHeight

func (x *BoundingBox) GetHeight() float32

func (*BoundingBox) GetLeft

func (x *BoundingBox) GetLeft() float32

func (*BoundingBox) GetTop

func (x *BoundingBox) GetTop() float32

func (*BoundingBox) GetWidth

func (x *BoundingBox) GetWidth() float32

func (*BoundingBox) ProtoMessage

func (*BoundingBox) ProtoMessage()

func (*BoundingBox) ProtoReflect

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

func (*BoundingBox) Reset

func (x *BoundingBox) Reset()

func (*BoundingBox) String

func (x *BoundingBox) String() string

type BoundingBoxObject

type BoundingBoxObject struct {

	// Bounding box object category
	Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// Bounding box object scroe
	Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
	// Bounding box
	BoundingBox *BoundingBox `protobuf:"bytes,3,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// contains filtered or unexported fields
}

BoundingBoxObject represents a predicted bounding box object

func (*BoundingBoxObject) Descriptor deprecated

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

Deprecated: Use BoundingBoxObject.ProtoReflect.Descriptor instead.

func (*BoundingBoxObject) GetBoundingBox

func (x *BoundingBoxObject) GetBoundingBox() *BoundingBox

func (*BoundingBoxObject) GetCategory

func (x *BoundingBoxObject) GetCategory() string

func (*BoundingBoxObject) GetScore

func (x *BoundingBoxObject) GetScore() float32

func (*BoundingBoxObject) ProtoMessage

func (*BoundingBoxObject) ProtoMessage()

func (*BoundingBoxObject) ProtoReflect

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

func (*BoundingBoxObject) Reset

func (x *BoundingBoxObject) Reset()

func (*BoundingBoxObject) String

func (x *BoundingBoxObject) String() string

type ClassificationOutput

type ClassificationOutput struct {

	// Classification cateogry
	Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// Classification score
	Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

ClassificationOutput represents the output of classification task

func (*ClassificationOutput) Descriptor deprecated

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

Deprecated: Use ClassificationOutput.ProtoReflect.Descriptor instead.

func (*ClassificationOutput) GetCategory

func (x *ClassificationOutput) GetCategory() string

func (*ClassificationOutput) GetScore

func (x *ClassificationOutput) GetScore() float32

func (*ClassificationOutput) ProtoMessage

func (*ClassificationOutput) ProtoMessage()

func (*ClassificationOutput) ProtoReflect

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

func (*ClassificationOutput) Reset

func (x *ClassificationOutput) Reset()

func (*ClassificationOutput) String

func (x *ClassificationOutput) String() string

type ClassificationOutputs

type ClassificationOutputs struct {

	// A list of classification outputs
	ClassificationOutputs []*ClassificationOutput `protobuf:"bytes,1,rep,name=classification_outputs,json=classificationOutputs,proto3" json:"classification_outputs,omitempty"`
	// contains filtered or unexported fields
}

ClassificationOutputs represents a list of classification task outputs

func (*ClassificationOutputs) Descriptor deprecated

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

Deprecated: Use ClassificationOutputs.ProtoReflect.Descriptor instead.

func (*ClassificationOutputs) GetClassificationOutputs

func (x *ClassificationOutputs) GetClassificationOutputs() []*ClassificationOutput

func (*ClassificationOutputs) ProtoMessage

func (*ClassificationOutputs) ProtoMessage()

func (*ClassificationOutputs) ProtoReflect

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

func (*ClassificationOutputs) Reset

func (x *ClassificationOutputs) Reset()

func (*ClassificationOutputs) String

func (x *ClassificationOutputs) String() string

type CreateModelBinaryFileUploadRequest

type CreateModelBinaryFileUploadRequest struct {

	// Model name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model content in bytes
	Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// Model description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Model task type
	Task Model_Task `protobuf:"varint,4,opt,name=task,proto3,enum=instill.model.v1alpha.Model_Task" json:"task,omitempty"`
	// contains filtered or unexported fields
}

CreateModelBinaryFileUploadRequest represents a request to create a model

func (*CreateModelBinaryFileUploadRequest) Descriptor deprecated

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

Deprecated: Use CreateModelBinaryFileUploadRequest.ProtoReflect.Descriptor instead.

func (*CreateModelBinaryFileUploadRequest) GetBytes

func (x *CreateModelBinaryFileUploadRequest) GetBytes() []byte

func (*CreateModelBinaryFileUploadRequest) GetDescription

func (x *CreateModelBinaryFileUploadRequest) GetDescription() string

func (*CreateModelBinaryFileUploadRequest) GetName

func (*CreateModelBinaryFileUploadRequest) GetTask

func (*CreateModelBinaryFileUploadRequest) ProtoMessage

func (*CreateModelBinaryFileUploadRequest) ProtoMessage()

func (*CreateModelBinaryFileUploadRequest) ProtoReflect

func (*CreateModelBinaryFileUploadRequest) Reset

func (*CreateModelBinaryFileUploadRequest) String

type CreateModelBinaryFileUploadResponse

type CreateModelBinaryFileUploadResponse struct {

	// A model instance
	Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

CreateModelBinaryFileUploadResponse represents a response for a model instance

func (*CreateModelBinaryFileUploadResponse) Descriptor deprecated

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

Deprecated: Use CreateModelBinaryFileUploadResponse.ProtoReflect.Descriptor instead.

func (*CreateModelBinaryFileUploadResponse) GetModel

func (*CreateModelBinaryFileUploadResponse) ProtoMessage

func (*CreateModelBinaryFileUploadResponse) ProtoMessage()

func (*CreateModelBinaryFileUploadResponse) ProtoReflect

func (*CreateModelBinaryFileUploadResponse) Reset

func (*CreateModelBinaryFileUploadResponse) String

type DeleteModelRequest

type DeleteModelRequest struct {

	// Model name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

DeleteModelRequest represents a request to delete a model

func (*DeleteModelRequest) Descriptor deprecated

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

Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.

func (*DeleteModelRequest) GetName

func (x *DeleteModelRequest) GetName() string

func (*DeleteModelRequest) ProtoMessage

func (*DeleteModelRequest) ProtoMessage()

func (*DeleteModelRequest) ProtoReflect

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

func (*DeleteModelRequest) Reset

func (x *DeleteModelRequest) Reset()

func (*DeleteModelRequest) String

func (x *DeleteModelRequest) String() string

type DeleteModelResponse

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

DeleteModelResponse represents an empty response

func (*DeleteModelResponse) Descriptor deprecated

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

Deprecated: Use DeleteModelResponse.ProtoReflect.Descriptor instead.

func (*DeleteModelResponse) ProtoMessage

func (*DeleteModelResponse) ProtoMessage()

func (*DeleteModelResponse) ProtoReflect

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

func (*DeleteModelResponse) Reset

func (x *DeleteModelResponse) Reset()

func (*DeleteModelResponse) String

func (x *DeleteModelResponse) String() string

type DeleteModelVersionRequest

type DeleteModelVersionRequest struct {

	// Model name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model version
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

DeleteModelVersionRequest represents a request to delete a model version

func (*DeleteModelVersionRequest) Descriptor deprecated

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

Deprecated: Use DeleteModelVersionRequest.ProtoReflect.Descriptor instead.

func (*DeleteModelVersionRequest) GetName

func (x *DeleteModelVersionRequest) GetName() string

func (*DeleteModelVersionRequest) GetVersion

func (x *DeleteModelVersionRequest) GetVersion() uint64

func (*DeleteModelVersionRequest) ProtoMessage

func (*DeleteModelVersionRequest) ProtoMessage()

func (*DeleteModelVersionRequest) ProtoReflect

func (*DeleteModelVersionRequest) Reset

func (x *DeleteModelVersionRequest) Reset()

func (*DeleteModelVersionRequest) String

func (x *DeleteModelVersionRequest) String() string

type DeleteModelVersionResponse

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

DeleteModelVersionResponse represents an empty response

func (*DeleteModelVersionResponse) Descriptor deprecated

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

Deprecated: Use DeleteModelVersionResponse.ProtoReflect.Descriptor instead.

func (*DeleteModelVersionResponse) ProtoMessage

func (*DeleteModelVersionResponse) ProtoMessage()

func (*DeleteModelVersionResponse) ProtoReflect

func (*DeleteModelVersionResponse) Reset

func (x *DeleteModelVersionResponse) Reset()

func (*DeleteModelVersionResponse) String

func (x *DeleteModelVersionResponse) String() string

type DetectionOutput

type DetectionOutput struct {

	// A list of buonding box objects
	BoundingBoxObjects []*BoundingBoxObject `protobuf:"bytes,1,rep,name=bounding_box_objects,json=boundingBoxObjects,proto3" json:"bounding_box_objects,omitempty"`
	// contains filtered or unexported fields
}

DetectionOutput represents the output of detection task

func (*DetectionOutput) Descriptor deprecated

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

Deprecated: Use DetectionOutput.ProtoReflect.Descriptor instead.

func (*DetectionOutput) GetBoundingBoxObjects

func (x *DetectionOutput) GetBoundingBoxObjects() []*BoundingBoxObject

func (*DetectionOutput) ProtoMessage

func (*DetectionOutput) ProtoMessage()

func (*DetectionOutput) ProtoReflect

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

func (*DetectionOutput) Reset

func (x *DetectionOutput) Reset()

func (*DetectionOutput) String

func (x *DetectionOutput) String() string

type DetectionOutputs

type DetectionOutputs struct {

	// A list of detection outputs
	DetectionOutputs []*DetectionOutput `protobuf:"bytes,1,rep,name=detection_outputs,json=detectionOutputs,proto3" json:"detection_outputs,omitempty"`
	// contains filtered or unexported fields
}

DetectionOutputs represents a list of detection task outputs

func (*DetectionOutputs) Descriptor deprecated

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

Deprecated: Use DetectionOutputs.ProtoReflect.Descriptor instead.

func (*DetectionOutputs) GetDetectionOutputs

func (x *DetectionOutputs) GetDetectionOutputs() []*DetectionOutput

func (*DetectionOutputs) ProtoMessage

func (*DetectionOutputs) ProtoMessage()

func (*DetectionOutputs) ProtoReflect

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

func (*DetectionOutputs) Reset

func (x *DetectionOutputs) Reset()

func (*DetectionOutputs) String

func (x *DetectionOutputs) String() string

type GetModelRequest

type GetModelRequest struct {

	// Model name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

GetModelRequest represents a request to query a model

func (*GetModelRequest) Descriptor deprecated

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

Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.

func (*GetModelRequest) GetName

func (x *GetModelRequest) GetName() string

func (*GetModelRequest) ProtoMessage

func (*GetModelRequest) ProtoMessage()

func (*GetModelRequest) ProtoReflect

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

func (*GetModelRequest) Reset

func (x *GetModelRequest) Reset()

func (*GetModelRequest) String

func (x *GetModelRequest) String() string

type GetModelResponse

type GetModelResponse struct {

	// A model instance
	Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

GetModelResponse represents a response for a model instance

func (*GetModelResponse) Descriptor deprecated

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

Deprecated: Use GetModelResponse.ProtoReflect.Descriptor instead.

func (*GetModelResponse) GetModel

func (x *GetModelResponse) GetModel() *Model

func (*GetModelResponse) ProtoMessage

func (*GetModelResponse) ProtoMessage()

func (*GetModelResponse) ProtoReflect

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

func (*GetModelResponse) Reset

func (x *GetModelResponse) Reset()

func (*GetModelResponse) String

func (x *GetModelResponse) String() string

type Input

type Input struct {

	// Input type
	//
	// Types that are assignable to Type:
	//	*Input_ImageUrl
	//	*Input_ImageBase64
	Type isInput_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

Input represents the input to a model

func (*Input) Descriptor deprecated

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

Deprecated: Use Input.ProtoReflect.Descriptor instead.

func (*Input) GetImageBase64

func (x *Input) GetImageBase64() string

func (*Input) GetImageUrl

func (x *Input) GetImageUrl() string

func (*Input) GetType

func (m *Input) GetType() isInput_Type

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) ProtoReflect

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

func (*Input) Reset

func (x *Input) Reset()

func (*Input) String

func (x *Input) String() string

type Input_ImageBase64

type Input_ImageBase64 struct {
	// Image type base64
	ImageBase64 string `protobuf:"bytes,2,opt,name=image_base64,json=imageBase64,proto3,oneof"`
}

type Input_ImageUrl

type Input_ImageUrl struct {
	// Image type URL
	ImageUrl string `protobuf:"bytes,1,opt,name=image_url,json=imageUrl,proto3,oneof"`
}

type ListModelRequest

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

ListModelRequest represents a request to list models

func (*ListModelRequest) Descriptor deprecated

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

Deprecated: Use ListModelRequest.ProtoReflect.Descriptor instead.

func (*ListModelRequest) ProtoMessage

func (*ListModelRequest) ProtoMessage()

func (*ListModelRequest) ProtoReflect

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

func (*ListModelRequest) Reset

func (x *ListModelRequest) Reset()

func (*ListModelRequest) String

func (x *ListModelRequest) String() string

type ListModelResponse

type ListModelResponse struct {

	// A list of models
	Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
	// contains filtered or unexported fields
}

ListModelResponse represents a response for a list of models

func (*ListModelResponse) Descriptor deprecated

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

Deprecated: Use ListModelResponse.ProtoReflect.Descriptor instead.

func (*ListModelResponse) GetModels

func (x *ListModelResponse) GetModels() []*Model

func (*ListModelResponse) ProtoMessage

func (*ListModelResponse) ProtoMessage()

func (*ListModelResponse) ProtoReflect

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

func (*ListModelResponse) Reset

func (x *ListModelResponse) Reset()

func (*ListModelResponse) String

func (x *ListModelResponse) String() string

type LivenessRequest

type LivenessRequest struct {

	// Service name to check for its liveness status
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

LivenessRequest represents a request to check a service liveness status

func (*LivenessRequest) Descriptor deprecated

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

Deprecated: Use LivenessRequest.ProtoReflect.Descriptor instead.

func (*LivenessRequest) GetService

func (x *LivenessRequest) GetService() string

func (*LivenessRequest) ProtoMessage

func (*LivenessRequest) ProtoMessage()

func (*LivenessRequest) ProtoReflect

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

func (*LivenessRequest) Reset

func (x *LivenessRequest) Reset()

func (*LivenessRequest) String

func (x *LivenessRequest) String() string

type LivenessResponse

type LivenessResponse struct {

	// Status is the instance of the enum type ServingStatus
	Status LivenessResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=instill.model.v1alpha.LivenessResponse_ServingStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

LivenessResponse represents a response for a service liveness status

func (*LivenessResponse) Descriptor deprecated

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

Deprecated: Use LivenessResponse.ProtoReflect.Descriptor instead.

func (*LivenessResponse) GetStatus

func (*LivenessResponse) ProtoMessage

func (*LivenessResponse) ProtoMessage()

func (*LivenessResponse) ProtoReflect

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

func (*LivenessResponse) Reset

func (x *LivenessResponse) Reset()

func (*LivenessResponse) String

func (x *LivenessResponse) String() string

type LivenessResponse_ServingStatus

type LivenessResponse_ServingStatus int32

ServingStatus enumerates the status of a queried service

const (
	// Serving status: UNSPECIFIED
	LivenessResponse_SERVING_STATUS_UNSPECIFIED LivenessResponse_ServingStatus = 0
	// Serving status: SERVING
	LivenessResponse_SERVING_STATUS_SERVING LivenessResponse_ServingStatus = 1
	// Serving status: NOT SERVING
	LivenessResponse_SERVING_STATUS_NOT_SERVING LivenessResponse_ServingStatus = 2
)

func (LivenessResponse_ServingStatus) Descriptor

func (LivenessResponse_ServingStatus) Enum

func (LivenessResponse_ServingStatus) EnumDescriptor deprecated

func (LivenessResponse_ServingStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use LivenessResponse_ServingStatus.Descriptor instead.

func (LivenessResponse_ServingStatus) Number

func (LivenessResponse_ServingStatus) String

func (LivenessResponse_ServingStatus) Type

type Model

type Model struct {

	// Model ID
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Model name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Model full name (i.e., [user_name/org_name]/model_name)
	FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	// Model task
	Task Model_Task `protobuf:"varint,4,opt,name=task,proto3,enum=instill.model.v1alpha.Model_Task" json:"task,omitempty"`
	// Model versions
	ModelVersions []*ModelVersion `protobuf:"bytes,5,rep,name=model_versions,json=modelVersions,proto3" json:"model_versions,omitempty"`
	// contains filtered or unexported fields
}

Model represents the content of a model

func (*Model) Descriptor deprecated

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

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetFullName

func (x *Model) GetFullName() string

func (*Model) GetId

func (x *Model) GetId() uint64

func (*Model) GetModelVersions

func (x *Model) GetModelVersions() []*ModelVersion

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) GetTask

func (x *Model) GetTask() Model_Task

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

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

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

type ModelServiceClient

type ModelServiceClient interface {
	// Liveness method receives a LivenessRequest message and returns a
	// LivenessResponse message.
	// See https://github.com/grpc/grpc/blob/master/doc/health-checking.md
	Liveness(ctx context.Context, in *LivenessRequest, opts ...grpc.CallOption) (*LivenessResponse, error)
	// Readiness method receives a ReadinessRequest message and returns a
	// ReadinessResponse message.
	// See https://github.com/grpc/grpc/blob/master/doc/health-checking.md
	Readiness(ctx context.Context, in *ReadinessRequest, opts ...grpc.CallOption) (*ReadinessResponse, error)
	// CreateModelBinaryFileUpload method receives a
	// CreateModelBinaryFileUploadRequest message and returns a
	// CreateModelBinaryFileUploadResponse message.
	CreateModelBinaryFileUpload(ctx context.Context, opts ...grpc.CallOption) (ModelService_CreateModelBinaryFileUploadClient, error)
	// CreateModel method receives a CreateModelRequest message and returns
	// a CreateModelResponse message.
	ListModel(ctx context.Context, in *ListModelRequest, opts ...grpc.CallOption) (*ListModelResponse, error)
	// GetModel method receives a GetModelRequest message and returns
	// a GetModelResponse message.
	GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*GetModelResponse, error)
	// UpdateModelVersion method receives a UpdateModelVersionRequest message and
	// returns a UpdateModelVersionResponse message.
	UpdateModelVersion(ctx context.Context, in *UpdateModelVersionRequest, opts ...grpc.CallOption) (*UpdateModelVersionResponse, error)
	// DeleteModel method receives a DeleteModelRequest message and returns
	// a DeleteModelResponse message.
	DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error)
	// DeleteModelVersion method receives a DeleteModelVersionRequest message and
	// returns a DeleteModelVersionResponse message.
	DeleteModelVersion(ctx context.Context, in *DeleteModelVersionRequest, opts ...grpc.CallOption) (*DeleteModelVersionResponse, error)
	// TriggerModel method receives a TriggerModelRequest message and
	// returns a TriggerModelResponse message.
	TriggerModel(ctx context.Context, in *TriggerModelRequest, opts ...grpc.CallOption) (*TriggerModelResponse, error)
	// TriggerModelBinaryFileUpload method receives a
	// TriggerModelBinaryFileUploadRequest message and returns a
	// TriggerModelBinaryFileUploadResponse message.
	TriggerModelBinaryFileUpload(ctx context.Context, opts ...grpc.CallOption) (ModelService_TriggerModelBinaryFileUploadClient, error)
}

ModelServiceClient is the client API for ModelService 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 ModelServiceServer

type ModelServiceServer interface {
	// Liveness method receives a LivenessRequest message and returns a
	// LivenessResponse message.
	// See https://github.com/grpc/grpc/blob/master/doc/health-checking.md
	Liveness(context.Context, *LivenessRequest) (*LivenessResponse, error)
	// Readiness method receives a ReadinessRequest message and returns a
	// ReadinessResponse message.
	// See https://github.com/grpc/grpc/blob/master/doc/health-checking.md
	Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error)
	// CreateModelBinaryFileUpload method receives a
	// CreateModelBinaryFileUploadRequest message and returns a
	// CreateModelBinaryFileUploadResponse message.
	CreateModelBinaryFileUpload(ModelService_CreateModelBinaryFileUploadServer) error
	// CreateModel method receives a CreateModelRequest message and returns
	// a CreateModelResponse message.
	ListModel(context.Context, *ListModelRequest) (*ListModelResponse, error)
	// GetModel method receives a GetModelRequest message and returns
	// a GetModelResponse message.
	GetModel(context.Context, *GetModelRequest) (*GetModelResponse, error)
	// UpdateModelVersion method receives a UpdateModelVersionRequest message and
	// returns a UpdateModelVersionResponse message.
	UpdateModelVersion(context.Context, *UpdateModelVersionRequest) (*UpdateModelVersionResponse, error)
	// DeleteModel method receives a DeleteModelRequest message and returns
	// a DeleteModelResponse message.
	DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
	// DeleteModelVersion method receives a DeleteModelVersionRequest message and
	// returns a DeleteModelVersionResponse message.
	DeleteModelVersion(context.Context, *DeleteModelVersionRequest) (*DeleteModelVersionResponse, error)
	// TriggerModel method receives a TriggerModelRequest message and
	// returns a TriggerModelResponse message.
	TriggerModel(context.Context, *TriggerModelRequest) (*TriggerModelResponse, error)
	// TriggerModelBinaryFileUpload method receives a
	// TriggerModelBinaryFileUploadRequest message and returns a
	// TriggerModelBinaryFileUploadResponse message.
	TriggerModelBinaryFileUpload(ModelService_TriggerModelBinaryFileUploadServer) error
}

ModelServiceServer is the server API for ModelService service. All implementations should embed UnimplementedModelServiceServer for forward compatibility

type ModelService_CreateModelBinaryFileUploadClient

type ModelService_CreateModelBinaryFileUploadClient interface {
	Send(*CreateModelBinaryFileUploadRequest) error
	CloseAndRecv() (*CreateModelBinaryFileUploadResponse, error)
	grpc.ClientStream
}

type ModelService_CreateModelBinaryFileUploadServer

type ModelService_CreateModelBinaryFileUploadServer interface {
	SendAndClose(*CreateModelBinaryFileUploadResponse) error
	Recv() (*CreateModelBinaryFileUploadRequest, error)
	grpc.ServerStream
}

type ModelService_TriggerModelBinaryFileUploadClient

type ModelService_TriggerModelBinaryFileUploadClient interface {
	Send(*TriggerModelBinaryFileUploadRequest) error
	CloseAndRecv() (*TriggerModelBinaryFileUploadResponse, error)
	grpc.ClientStream
}

type ModelService_TriggerModelBinaryFileUploadServer

type ModelService_TriggerModelBinaryFileUploadServer interface {
	SendAndClose(*TriggerModelBinaryFileUploadResponse) error
	Recv() (*TriggerModelBinaryFileUploadRequest, error)
	grpc.ServerStream
}

type ModelVersion

type ModelVersion struct {

	// Model version
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Model version corresponding model ID
	ModelId uint64 `protobuf:"varint,2,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
	// Model version description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Model version creation time
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Model version update time
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Model version status
	Status ModelVersion_Status `protobuf:"varint,6,opt,name=status,proto3,enum=instill.model.v1alpha.ModelVersion_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

ModelVersion represents the version of a model

func (*ModelVersion) Descriptor deprecated

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

Deprecated: Use ModelVersion.ProtoReflect.Descriptor instead.

func (*ModelVersion) GetCreatedAt

func (x *ModelVersion) GetCreatedAt() *timestamppb.Timestamp

func (*ModelVersion) GetDescription

func (x *ModelVersion) GetDescription() string

func (*ModelVersion) GetModelId

func (x *ModelVersion) GetModelId() uint64

func (*ModelVersion) GetStatus

func (x *ModelVersion) GetStatus() ModelVersion_Status

func (*ModelVersion) GetUpdatedAt

func (x *ModelVersion) GetUpdatedAt() *timestamppb.Timestamp

func (*ModelVersion) GetVersion

func (x *ModelVersion) GetVersion() uint64

func (*ModelVersion) ProtoMessage

func (*ModelVersion) ProtoMessage()

func (*ModelVersion) ProtoReflect

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

func (*ModelVersion) Reset

func (x *ModelVersion) Reset()

func (*ModelVersion) String

func (x *ModelVersion) String() string

type ModelVersion_Status

type ModelVersion_Status int32

Status enumerates the status of a model version

const (
	// Status: UNSPECIFIED
	ModelVersion_STATUS_UNSPECIFIED ModelVersion_Status = 0
	// Status: OFFLINE
	ModelVersion_STATUS_OFFLINE ModelVersion_Status = 1
	// Status: ONLINE
	ModelVersion_STATUS_ONLINE ModelVersion_Status = 2
	// Status: ERROR
	ModelVersion_STATUS_ERROR ModelVersion_Status = 3
)

func (ModelVersion_Status) Descriptor

func (ModelVersion_Status) Enum

func (ModelVersion_Status) EnumDescriptor deprecated

func (ModelVersion_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use ModelVersion_Status.Descriptor instead.

func (ModelVersion_Status) Number

func (ModelVersion_Status) String

func (x ModelVersion_Status) String() string

func (ModelVersion_Status) Type

type Model_Task

type Model_Task int32

Task enumerates the task type of a model

const (
	// Task: UNSPECIFIED
	Model_TASK_UNSPECIFIED Model_Task = 0
	// Task: CLASSIFICATION
	Model_TASK_CLASSIFICATION Model_Task = 1
	// Task: DETECTION
	Model_TASK_DETECTION Model_Task = 2
)

func (Model_Task) Descriptor

func (Model_Task) Descriptor() protoreflect.EnumDescriptor

func (Model_Task) Enum

func (x Model_Task) Enum() *Model_Task

func (Model_Task) EnumDescriptor deprecated

func (Model_Task) EnumDescriptor() ([]byte, []int)

Deprecated: Use Model_Task.Descriptor instead.

func (Model_Task) Number

func (x Model_Task) Number() protoreflect.EnumNumber

func (Model_Task) String

func (x Model_Task) String() string

func (Model_Task) Type

type ReadinessRequest

type ReadinessRequest struct {

	// Service name to check for its readiness status
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

ReadinessRequest represents a request to check a service readiness status

func (*ReadinessRequest) Descriptor deprecated

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

Deprecated: Use ReadinessRequest.ProtoReflect.Descriptor instead.

func (*ReadinessRequest) GetService

func (x *ReadinessRequest) GetService() string

func (*ReadinessRequest) ProtoMessage

func (*ReadinessRequest) ProtoMessage()

func (*ReadinessRequest) ProtoReflect

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

func (*ReadinessRequest) Reset

func (x *ReadinessRequest) Reset()

func (*ReadinessRequest) String

func (x *ReadinessRequest) String() string

type ReadinessResponse

type ReadinessResponse struct {

	// Status is the value of ServingStatus enum type
	Status ReadinessResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=instill.model.v1alpha.ReadinessResponse_ServingStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

ReadinessResponse represents a response for a service readiness status

func (*ReadinessResponse) Descriptor deprecated

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

Deprecated: Use ReadinessResponse.ProtoReflect.Descriptor instead.

func (*ReadinessResponse) GetStatus

func (*ReadinessResponse) ProtoMessage

func (*ReadinessResponse) ProtoMessage()

func (*ReadinessResponse) ProtoReflect

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

func (*ReadinessResponse) Reset

func (x *ReadinessResponse) Reset()

func (*ReadinessResponse) String

func (x *ReadinessResponse) String() string

type ReadinessResponse_ServingStatus

type ReadinessResponse_ServingStatus int32

ServingStatus enumerates the status of a queried service

const (
	// Serving status: UNSPECIFIED
	ReadinessResponse_SERVING_STATUS_UNSPECIFIED ReadinessResponse_ServingStatus = 0
	// Serving status: SERVING
	ReadinessResponse_SERVING_STATUS_SERVING ReadinessResponse_ServingStatus = 1
	// Serving status: NOT SERVING
	ReadinessResponse_SERVING_STATUS_NOT_SERVING ReadinessResponse_ServingStatus = 2
)

func (ReadinessResponse_ServingStatus) Descriptor

func (ReadinessResponse_ServingStatus) Enum

func (ReadinessResponse_ServingStatus) EnumDescriptor deprecated

func (ReadinessResponse_ServingStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ReadinessResponse_ServingStatus.Descriptor instead.

func (ReadinessResponse_ServingStatus) Number

func (ReadinessResponse_ServingStatus) String

func (ReadinessResponse_ServingStatus) Type

type TriggerModelBinaryFileUploadRequest

type TriggerModelBinaryFileUploadRequest struct {

	// Model name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model version
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// Model content in bytes
	Bytes []byte `protobuf:"bytes,3,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelBinaryFileUploadRequest represents a request to trigger a model

func (*TriggerModelBinaryFileUploadRequest) Descriptor deprecated

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

Deprecated: Use TriggerModelBinaryFileUploadRequest.ProtoReflect.Descriptor instead.

func (*TriggerModelBinaryFileUploadRequest) GetBytes

func (x *TriggerModelBinaryFileUploadRequest) GetBytes() []byte

func (*TriggerModelBinaryFileUploadRequest) GetName

func (*TriggerModelBinaryFileUploadRequest) GetVersion

func (*TriggerModelBinaryFileUploadRequest) ProtoMessage

func (*TriggerModelBinaryFileUploadRequest) ProtoMessage()

func (*TriggerModelBinaryFileUploadRequest) ProtoReflect

func (*TriggerModelBinaryFileUploadRequest) Reset

func (*TriggerModelBinaryFileUploadRequest) String

type TriggerModelBinaryFileUploadResponse

type TriggerModelBinaryFileUploadResponse struct {

	// Output from a model
	Output *structpb.Struct `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelBinaryFileUploadResponse represents a response for the output of a model

func (*TriggerModelBinaryFileUploadResponse) Descriptor deprecated

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

Deprecated: Use TriggerModelBinaryFileUploadResponse.ProtoReflect.Descriptor instead.

func (*TriggerModelBinaryFileUploadResponse) GetOutput

func (*TriggerModelBinaryFileUploadResponse) ProtoMessage

func (*TriggerModelBinaryFileUploadResponse) ProtoMessage()

func (*TriggerModelBinaryFileUploadResponse) ProtoReflect

func (*TriggerModelBinaryFileUploadResponse) Reset

func (*TriggerModelBinaryFileUploadResponse) String

type TriggerModelRequest

type TriggerModelRequest struct {

	// Model name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model version
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// Input to the model
	Inputs []*Input `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelRequest represents a request to trigger a model

func (*TriggerModelRequest) Descriptor deprecated

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

Deprecated: Use TriggerModelRequest.ProtoReflect.Descriptor instead.

func (*TriggerModelRequest) GetInputs

func (x *TriggerModelRequest) GetInputs() []*Input

func (*TriggerModelRequest) GetName

func (x *TriggerModelRequest) GetName() string

func (*TriggerModelRequest) GetVersion

func (x *TriggerModelRequest) GetVersion() uint64

func (*TriggerModelRequest) ProtoMessage

func (*TriggerModelRequest) ProtoMessage()

func (*TriggerModelRequest) ProtoReflect

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

func (*TriggerModelRequest) Reset

func (x *TriggerModelRequest) Reset()

func (*TriggerModelRequest) String

func (x *TriggerModelRequest) String() string

type TriggerModelResponse

type TriggerModelResponse struct {

	// Output from a model
	Output *structpb.Struct `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelResponse represents a response for the output of a model

func (*TriggerModelResponse) Descriptor deprecated

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

Deprecated: Use TriggerModelResponse.ProtoReflect.Descriptor instead.

func (*TriggerModelResponse) GetOutput

func (x *TriggerModelResponse) GetOutput() *structpb.Struct

func (*TriggerModelResponse) ProtoMessage

func (*TriggerModelResponse) ProtoMessage()

func (*TriggerModelResponse) ProtoReflect

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

func (*TriggerModelResponse) Reset

func (x *TriggerModelResponse) Reset()

func (*TriggerModelResponse) String

func (x *TriggerModelResponse) String() string

type UnimplementedModelServiceServer

type UnimplementedModelServiceServer struct {
}

UnimplementedModelServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedModelServiceServer) CreateModelBinaryFileUpload

func (UnimplementedModelServiceServer) DeleteModel

func (UnimplementedModelServiceServer) DeleteModelVersion

func (UnimplementedModelServiceServer) GetModel

func (UnimplementedModelServiceServer) ListModel

func (UnimplementedModelServiceServer) Liveness

func (UnimplementedModelServiceServer) Readiness

func (UnimplementedModelServiceServer) TriggerModel

func (UnimplementedModelServiceServer) TriggerModelBinaryFileUpload

func (UnimplementedModelServiceServer) UpdateModelVersion

type UnsafeModelServiceServer

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

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

type UpdateModelVersionPatch

type UpdateModelVersionPatch struct {

	// Model version description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Model version status
	Status ModelVersion_Status `protobuf:"varint,2,opt,name=status,proto3,enum=instill.model.v1alpha.ModelVersion_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

UpdateModelVersionPatch represents a patch to update a model

func (*UpdateModelVersionPatch) Descriptor deprecated

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

Deprecated: Use UpdateModelVersionPatch.ProtoReflect.Descriptor instead.

func (*UpdateModelVersionPatch) GetDescription

func (x *UpdateModelVersionPatch) GetDescription() string

func (*UpdateModelVersionPatch) GetStatus

func (*UpdateModelVersionPatch) ProtoMessage

func (*UpdateModelVersionPatch) ProtoMessage()

func (*UpdateModelVersionPatch) ProtoReflect

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

func (*UpdateModelVersionPatch) Reset

func (x *UpdateModelVersionPatch) Reset()

func (*UpdateModelVersionPatch) String

func (x *UpdateModelVersionPatch) String() string

type UpdateModelVersionRequest

type UpdateModelVersionRequest struct {

	// Model name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model version
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// Model version patch to update
	VersionPatch *UpdateModelVersionPatch `protobuf:"bytes,3,opt,name=version_patch,json=versionPatch,proto3" json:"version_patch,omitempty"`
	// Update mask for a model instance
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

CreateModelRequest represents a request to update a model

func (*UpdateModelVersionRequest) Descriptor deprecated

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

Deprecated: Use UpdateModelVersionRequest.ProtoReflect.Descriptor instead.

func (*UpdateModelVersionRequest) GetFieldMask

func (x *UpdateModelVersionRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*UpdateModelVersionRequest) GetName

func (x *UpdateModelVersionRequest) GetName() string

func (*UpdateModelVersionRequest) GetVersion

func (x *UpdateModelVersionRequest) GetVersion() uint64

func (*UpdateModelVersionRequest) GetVersionPatch

func (x *UpdateModelVersionRequest) GetVersionPatch() *UpdateModelVersionPatch

func (*UpdateModelVersionRequest) ProtoMessage

func (*UpdateModelVersionRequest) ProtoMessage()

func (*UpdateModelVersionRequest) ProtoReflect

func (*UpdateModelVersionRequest) Reset

func (x *UpdateModelVersionRequest) Reset()

func (*UpdateModelVersionRequest) String

func (x *UpdateModelVersionRequest) String() string

type UpdateModelVersionResponse

type UpdateModelVersionResponse struct {

	// A model version instance
	ModelVersion *ModelVersion `protobuf:"bytes,1,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"`
	// contains filtered or unexported fields
}

UpdateModelVersionResponse represents a response for a model version instance

func (*UpdateModelVersionResponse) Descriptor deprecated

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

Deprecated: Use UpdateModelVersionResponse.ProtoReflect.Descriptor instead.

func (*UpdateModelVersionResponse) GetModelVersion

func (x *UpdateModelVersionResponse) GetModelVersion() *ModelVersion

func (*UpdateModelVersionResponse) ProtoMessage

func (*UpdateModelVersionResponse) ProtoMessage()

func (*UpdateModelVersionResponse) ProtoReflect

func (*UpdateModelVersionResponse) Reset

func (x *UpdateModelVersionResponse) Reset()

func (*UpdateModelVersionResponse) String

func (x *UpdateModelVersionResponse) String() string

Jump to

Keyboard shortcuts

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