modelv1alpha

package
v0.3.3-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 21 Imported by: 1

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 (
	Model_Visibility_name = map[int32]string{
		0: "VISIBILITY_UNSPECIFIED",
		1: "VISIBILITY_PRIVATE",
		2: "VISIBILITY_PUBLIC",
	}
	Model_Visibility_value = map[string]int32{
		"VISIBILITY_UNSPECIFIED": 0,
		"VISIBILITY_PRIVATE":     1,
		"VISIBILITY_PUBLIC":      2,
	}
)

Enum value maps for Model_Visibility.

View Source
var (
	ModelInstance_Task_name = map[int32]string{
		0: "TASK_UNSPECIFIED",
		1: "TASK_CLASSIFICATION",
		2: "TASK_DETECTION",
		3: "TASK_KEYPOINT",
		4: "TASK_OCR",
	}
	ModelInstance_Task_value = map[string]int32{
		"TASK_UNSPECIFIED":    0,
		"TASK_CLASSIFICATION": 1,
		"TASK_DETECTION":      2,
		"TASK_KEYPOINT":       3,
		"TASK_OCR":            4,
	}
)

Enum value maps for ModelInstance_Task.

View Source
var (
	ModelInstance_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_OFFLINE",
		2: "STATE_ONLINE",
		3: "STATE_ERROR",
	}
	ModelInstance_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_OFFLINE":     1,
		"STATE_ONLINE":      2,
		"STATE_ERROR":       3,
	}
)

Enum value maps for ModelInstance_State.

View Source
var (
	ReleaseStage_name = map[int32]string{
		0: "RELEASE_STAGE_UNSPECIFIED",
		1: "RELEASE_STAGE_ALPHA",
		2: "RELEASE_STAGE_BETA",
		3: "RELEASE_STAGE_GENERALLY_AVAILABLE",
		4: "RELEASE_STAGE_CUSTOM",
	}
	ReleaseStage_value = map[string]int32{
		"RELEASE_STAGE_UNSPECIFIED":         0,
		"RELEASE_STAGE_ALPHA":               1,
		"RELEASE_STAGE_BETA":                2,
		"RELEASE_STAGE_GENERALLY_AVAILABLE": 3,
		"RELEASE_STAGE_CUSTOM":              4,
	}
)

Enum value maps for ReleaseStage.

View Source
var (
	View_name = map[int32]string{
		0: "VIEW_UNSPECIFIED",
		1: "VIEW_BASIC",
		2: "VIEW_FULL",
	}
	View_value = map[string]int32{
		"VIEW_UNSPECIFIED": 0,
		"VIEW_BASIC":       1,
		"VIEW_FULL":        2,
	}
)

Enum value maps for View.

View Source
var File_vdp_model_v1alpha_classification_output_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_common_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_detection_output_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_healthcheck_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_keypoint_output_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_model_definition_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_model_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_model_service_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_ocr_output_proto protoreflect.FileDescriptor
View Source
var File_vdp_model_v1alpha_unspecified_output_proto protoreflect.FileDescriptor
View Source
var ModelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vdp.model.v1alpha.ModelService",
	HandlerType: (*ModelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Liveness",
			Handler:    _ModelService_Liveness_Handler,
		},
		{
			MethodName: "Readiness",
			Handler:    _ModelService_Readiness_Handler,
		},
		{
			MethodName: "ListModelDefinition",
			Handler:    _ModelService_ListModelDefinition_Handler,
		},
		{
			MethodName: "GetModelDefinition",
			Handler:    _ModelService_GetModelDefinition_Handler,
		},
		{
			MethodName: "ListModel",
			Handler:    _ModelService_ListModel_Handler,
		},
		{
			MethodName: "CreateModel",
			Handler:    _ModelService_CreateModel_Handler,
		},
		{
			MethodName: "GetModel",
			Handler:    _ModelService_GetModel_Handler,
		},
		{
			MethodName: "UpdateModel",
			Handler:    _ModelService_UpdateModel_Handler,
		},
		{
			MethodName: "DeleteModel",
			Handler:    _ModelService_DeleteModel_Handler,
		},
		{
			MethodName: "LookUpModel",
			Handler:    _ModelService_LookUpModel_Handler,
		},
		{
			MethodName: "RenameModel",
			Handler:    _ModelService_RenameModel_Handler,
		},
		{
			MethodName: "PublishModel",
			Handler:    _ModelService_PublishModel_Handler,
		},
		{
			MethodName: "UnpublishModel",
			Handler:    _ModelService_UnpublishModel_Handler,
		},
		{
			MethodName: "ListModelInstance",
			Handler:    _ModelService_ListModelInstance_Handler,
		},
		{
			MethodName: "GetModelInstance",
			Handler:    _ModelService_GetModelInstance_Handler,
		},
		{
			MethodName: "LookUpModelInstance",
			Handler:    _ModelService_LookUpModelInstance_Handler,
		},
		{
			MethodName: "DeployModelInstance",
			Handler:    _ModelService_DeployModelInstance_Handler,
		},
		{
			MethodName: "UndeployModelInstance",
			Handler:    _ModelService_UndeployModelInstance_Handler,
		},
		{
			MethodName: "GetModelInstanceCard",
			Handler:    _ModelService_GetModelInstanceCard_Handler,
		},
		{
			MethodName: "TriggerModelInstance",
			Handler:    _ModelService_TriggerModelInstance_Handler,
		},
		{
			MethodName: "TestModelInstance",
			Handler:    _ModelService_TestModelInstance_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "CreateModelBinaryFileUpload",
			Handler:       _ModelService_CreateModelBinaryFileUpload_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "TriggerModelInstanceBinaryFileUpload",
			Handler:       _ModelService_TriggerModelInstanceBinaryFileUpload_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "TestModelInstanceBinaryFileUpload",
			Handler:       _ModelService_TestModelInstanceBinaryFileUpload_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "vdp/model/v1alpha/model_service.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 ClassificationOutput

type ClassificationOutput struct {

	// Classification category
	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 CreateModelBinaryFileUploadRequest

type CreateModelBinaryFileUploadRequest struct {

	// The model to be created
	//
	// The model `name` field is used to identify the model to create.
	// Format: models/{model}
	Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// Model content in bytes
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,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) GetContent

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

func (*CreateModelBinaryFileUploadRequest) GetModel

func (*CreateModelBinaryFileUploadRequest) ProtoMessage

func (*CreateModelBinaryFileUploadRequest) ProtoMessage()

func (*CreateModelBinaryFileUploadRequest) ProtoReflect

func (*CreateModelBinaryFileUploadRequest) Reset

func (*CreateModelBinaryFileUploadRequest) String

type CreateModelBinaryFileUploadResponse

type CreateModelBinaryFileUploadResponse struct {

	// The created model
	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 CreateModelRequest

type CreateModelRequest struct {

	// The model to be created
	//
	// The model `name` field is used to identify the model to create.
	// Format: models/{model}
	Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

CreateModelRequest represents a request to create a model

func (*CreateModelRequest) Descriptor deprecated

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

Deprecated: Use CreateModelRequest.ProtoReflect.Descriptor instead.

func (*CreateModelRequest) GetModel

func (x *CreateModelRequest) GetModel() *Model

func (*CreateModelRequest) ProtoMessage

func (*CreateModelRequest) ProtoMessage()

func (*CreateModelRequest) ProtoReflect

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

func (*CreateModelRequest) Reset

func (x *CreateModelRequest) Reset()

func (*CreateModelRequest) String

func (x *CreateModelRequest) String() string

type CreateModelResponse

type CreateModelResponse struct {

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

CreateModelResponse represents a response for a model

func (*CreateModelResponse) Descriptor deprecated

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

Deprecated: Use CreateModelResponse.ProtoReflect.Descriptor instead.

func (*CreateModelResponse) GetModel

func (x *CreateModelResponse) GetModel() *Model

func (*CreateModelResponse) ProtoMessage

func (*CreateModelResponse) ProtoMessage()

func (*CreateModelResponse) ProtoReflect

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

func (*CreateModelResponse) Reset

func (x *CreateModelResponse) Reset()

func (*CreateModelResponse) String

func (x *CreateModelResponse) String() string

type DeleteModelRequest

type DeleteModelRequest struct {

	// Resource name of the model.
	// For example "models/{model}"
	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 DeployModelInstanceRequest

type DeployModelInstanceRequest struct {

	// Resource name for the model instance to be deployed.
	// Format: models/{model}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

DeployModelInstanceRequest represents a request to deploy a model instance to online state

func (*DeployModelInstanceRequest) Descriptor deprecated

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

Deprecated: Use DeployModelInstanceRequest.ProtoReflect.Descriptor instead.

func (*DeployModelInstanceRequest) GetName

func (x *DeployModelInstanceRequest) GetName() string

func (*DeployModelInstanceRequest) ProtoMessage

func (*DeployModelInstanceRequest) ProtoMessage()

func (*DeployModelInstanceRequest) ProtoReflect

func (*DeployModelInstanceRequest) Reset

func (x *DeployModelInstanceRequest) Reset()

func (*DeployModelInstanceRequest) String

func (x *DeployModelInstanceRequest) String() string

type DeployModelInstanceResponse

type DeployModelInstanceResponse struct {

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

DeployModelInstanceResponse represents a response for a deployed model instance TODO: should use [Long-running operations](https://google.aip.dev/151)

func (*DeployModelInstanceResponse) Descriptor deprecated

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

Deprecated: Use DeployModelInstanceResponse.ProtoReflect.Descriptor instead.

func (*DeployModelInstanceResponse) GetInstance

func (x *DeployModelInstanceResponse) GetInstance() *ModelInstance

func (*DeployModelInstanceResponse) ProtoMessage

func (*DeployModelInstanceResponse) ProtoMessage()

func (*DeployModelInstanceResponse) ProtoReflect

func (*DeployModelInstanceResponse) Reset

func (x *DeployModelInstanceResponse) Reset()

func (*DeployModelInstanceResponse) String

func (x *DeployModelInstanceResponse) String() string

type DetectionObject

type DetectionObject struct {

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

DetectionObject represents a predicted object

func (*DetectionObject) Descriptor deprecated

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

Deprecated: Use DetectionObject.ProtoReflect.Descriptor instead.

func (*DetectionObject) GetBoundingBox

func (x *DetectionObject) GetBoundingBox() *BoundingBox

func (*DetectionObject) GetCategory

func (x *DetectionObject) GetCategory() string

func (*DetectionObject) GetScore

func (x *DetectionObject) GetScore() float32

func (*DetectionObject) ProtoMessage

func (*DetectionObject) ProtoMessage()

func (*DetectionObject) ProtoReflect

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

func (*DetectionObject) Reset

func (x *DetectionObject) Reset()

func (*DetectionObject) String

func (x *DetectionObject) String() string

type DetectionOutput

type DetectionOutput struct {

	// A list of detection objects
	Objects []*DetectionObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"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) GetObjects

func (x *DetectionOutput) GetObjects() []*DetectionObject

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 GetModelDefinitionRequest

type GetModelDefinitionRequest struct {

	// Resource name of the model definition.
	// For example "model-definitions/{uuid}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Definition view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `ModelDefinition.model_spec` and
	// `ModelDefinition.model_instance_spec`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,2,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,omitempty"`
	// contains filtered or unexported fields
}

GetModelDefinitionRequest represents a request to query a model definition

func (*GetModelDefinitionRequest) Descriptor deprecated

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

Deprecated: Use GetModelDefinitionRequest.ProtoReflect.Descriptor instead.

func (*GetModelDefinitionRequest) GetName

func (x *GetModelDefinitionRequest) GetName() string

func (*GetModelDefinitionRequest) GetView

func (x *GetModelDefinitionRequest) GetView() View

func (*GetModelDefinitionRequest) ProtoMessage

func (*GetModelDefinitionRequest) ProtoMessage()

func (*GetModelDefinitionRequest) ProtoReflect

func (*GetModelDefinitionRequest) Reset

func (x *GetModelDefinitionRequest) Reset()

func (*GetModelDefinitionRequest) String

func (x *GetModelDefinitionRequest) String() string

type GetModelDefinitionResponse

type GetModelDefinitionResponse struct {

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

GetModelDefinitionResponse represents a response for a model definition

func (*GetModelDefinitionResponse) Descriptor deprecated

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

Deprecated: Use GetModelDefinitionResponse.ProtoReflect.Descriptor instead.

func (*GetModelDefinitionResponse) GetModelDefinition

func (x *GetModelDefinitionResponse) GetModelDefinition() *ModelDefinition

func (*GetModelDefinitionResponse) ProtoMessage

func (*GetModelDefinitionResponse) ProtoMessage()

func (*GetModelDefinitionResponse) ProtoReflect

func (*GetModelDefinitionResponse) Reset

func (x *GetModelDefinitionResponse) Reset()

func (*GetModelDefinitionResponse) String

func (x *GetModelDefinitionResponse) String() string

type GetModelInstanceCardRequest

type GetModelInstanceCardRequest struct {

	// Resource name of the model instance card.
	// For example "models/{model}/instances/{instance}/readme"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

GetModelInstanceCardRequest represents a request to query a model instance's README card

func (*GetModelInstanceCardRequest) Descriptor deprecated

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

Deprecated: Use GetModelInstanceCardRequest.ProtoReflect.Descriptor instead.

func (*GetModelInstanceCardRequest) GetName

func (x *GetModelInstanceCardRequest) GetName() string

func (*GetModelInstanceCardRequest) ProtoMessage

func (*GetModelInstanceCardRequest) ProtoMessage()

func (*GetModelInstanceCardRequest) ProtoReflect

func (*GetModelInstanceCardRequest) Reset

func (x *GetModelInstanceCardRequest) Reset()

func (*GetModelInstanceCardRequest) String

func (x *GetModelInstanceCardRequest) String() string

type GetModelInstanceCardResponse

type GetModelInstanceCardResponse struct {

	// Retrieved model instance card
	Readme *ModelInstanceCard `protobuf:"bytes,1,opt,name=readme,proto3" json:"readme,omitempty"`
	// contains filtered or unexported fields
}

GetModelInstanceCardResponse represents a response to fetch a model instance's README card

func (*GetModelInstanceCardResponse) Descriptor deprecated

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

Deprecated: Use GetModelInstanceCardResponse.ProtoReflect.Descriptor instead.

func (*GetModelInstanceCardResponse) GetReadme

func (*GetModelInstanceCardResponse) ProtoMessage

func (*GetModelInstanceCardResponse) ProtoMessage()

func (*GetModelInstanceCardResponse) ProtoReflect

func (*GetModelInstanceCardResponse) Reset

func (x *GetModelInstanceCardResponse) Reset()

func (*GetModelInstanceCardResponse) String

type GetModelInstanceRequest

type GetModelInstanceRequest struct {

	// Resource name of the model instance.
	// For example "models/{model}/instances/{instance}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model instance view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `ModelInstance.configuration`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,2,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,omitempty"`
	// contains filtered or unexported fields
}

GetModelInstanceRequest represents a request to query a model instance

func (*GetModelInstanceRequest) Descriptor deprecated

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

Deprecated: Use GetModelInstanceRequest.ProtoReflect.Descriptor instead.

func (*GetModelInstanceRequest) GetName

func (x *GetModelInstanceRequest) GetName() string

func (*GetModelInstanceRequest) GetView

func (x *GetModelInstanceRequest) GetView() View

func (*GetModelInstanceRequest) ProtoMessage

func (*GetModelInstanceRequest) ProtoMessage()

func (*GetModelInstanceRequest) ProtoReflect

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

func (*GetModelInstanceRequest) Reset

func (x *GetModelInstanceRequest) Reset()

func (*GetModelInstanceRequest) String

func (x *GetModelInstanceRequest) String() string

type GetModelInstanceResponse

type GetModelInstanceResponse struct {

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

GetModelInstanceResponse represents a response for a model instance

func (*GetModelInstanceResponse) Descriptor deprecated

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

Deprecated: Use GetModelInstanceResponse.ProtoReflect.Descriptor instead.

func (*GetModelInstanceResponse) GetInstance

func (x *GetModelInstanceResponse) GetInstance() *ModelInstance

func (*GetModelInstanceResponse) ProtoMessage

func (*GetModelInstanceResponse) ProtoMessage()

func (*GetModelInstanceResponse) ProtoReflect

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

func (*GetModelInstanceResponse) Reset

func (x *GetModelInstanceResponse) Reset()

func (*GetModelInstanceResponse) String

func (x *GetModelInstanceResponse) String() string

type GetModelRequest

type GetModelRequest struct {

	// Resource name of the model.
	// For example "models/{model}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `Model.configuration`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,2,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,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) GetView

func (x *GetModelRequest) GetView() View

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 {

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

GetModelResponse represents a response for a model

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 trigger a model instance

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 Keypoint

type Keypoint struct {

	// x coordinate
	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
	// y coordinate
	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
	// visibility
	V float32 `protobuf:"fixed32,3,opt,name=v,proto3" json:"v,omitempty"`
	// contains filtered or unexported fields
}

Keypoint structure which include coordinate and keypoint visibility

func (*Keypoint) Descriptor deprecated

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

Deprecated: Use Keypoint.ProtoReflect.Descriptor instead.

func (*Keypoint) GetV

func (x *Keypoint) GetV() float32

func (*Keypoint) GetX

func (x *Keypoint) GetX() float32

func (*Keypoint) GetY

func (x *Keypoint) GetY() float32

func (*Keypoint) ProtoMessage

func (*Keypoint) ProtoMessage()

func (*Keypoint) ProtoReflect

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

func (*Keypoint) Reset

func (x *Keypoint) Reset()

func (*Keypoint) String

func (x *Keypoint) String() string

type KeypointObject

type KeypointObject struct {

	// Keypoints
	Keypoints []*Keypoint `protobuf:"bytes,1,rep,name=keypoints,proto3" json:"keypoints,omitempty"`
	// Keypoint score
	Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
	// Bounding box object
	BoundingBox *BoundingBox `protobuf:"bytes,3,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// contains filtered or unexported fields
}

KeypointObject corresponding to a person object

func (*KeypointObject) Descriptor deprecated

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

Deprecated: Use KeypointObject.ProtoReflect.Descriptor instead.

func (*KeypointObject) GetBoundingBox

func (x *KeypointObject) GetBoundingBox() *BoundingBox

func (*KeypointObject) GetKeypoints

func (x *KeypointObject) GetKeypoints() []*Keypoint

func (*KeypointObject) GetScore

func (x *KeypointObject) GetScore() float32

func (*KeypointObject) ProtoMessage

func (*KeypointObject) ProtoMessage()

func (*KeypointObject) ProtoReflect

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

func (*KeypointObject) Reset

func (x *KeypointObject) Reset()

func (*KeypointObject) String

func (x *KeypointObject) String() string

type KeypointOutput

type KeypointOutput struct {

	// A list of keypoint objects
	Objects []*KeypointObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

KeypointOutput represents the output of keypoint detection task

func (*KeypointOutput) Descriptor deprecated

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

Deprecated: Use KeypointOutput.ProtoReflect.Descriptor instead.

func (*KeypointOutput) GetObjects

func (x *KeypointOutput) GetObjects() []*KeypointObject

func (*KeypointOutput) ProtoMessage

func (*KeypointOutput) ProtoMessage()

func (*KeypointOutput) ProtoReflect

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

func (*KeypointOutput) Reset

func (x *KeypointOutput) Reset()

func (*KeypointOutput) String

func (x *KeypointOutput) String() string

type ListModelDefinitionRequest

type ListModelDefinitionRequest struct {

	// Page size: the maximum number of resources to return. The service may
	// return fewer than this value. If unspecified, at most 10 ModelDefinitions
	// will be returned. The maximum value is 100; values above 100 will be
	// coereced to 100.
	PageSize *int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
	// Page token
	PageToken *string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3,oneof" json:"page_token,omitempty"`
	// Definition view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `ModelDefinition.model_spec` and
	// `ModelDefinition.model_instance_spec`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,3,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,omitempty"`
	// contains filtered or unexported fields
}

ListModelDefinitionRequest represents a request to list all supported model definitions

func (*ListModelDefinitionRequest) Descriptor deprecated

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

Deprecated: Use ListModelDefinitionRequest.ProtoReflect.Descriptor instead.

func (*ListModelDefinitionRequest) GetPageSize

func (x *ListModelDefinitionRequest) GetPageSize() int64

func (*ListModelDefinitionRequest) GetPageToken

func (x *ListModelDefinitionRequest) GetPageToken() string

func (*ListModelDefinitionRequest) GetView

func (x *ListModelDefinitionRequest) GetView() View

func (*ListModelDefinitionRequest) ProtoMessage

func (*ListModelDefinitionRequest) ProtoMessage()

func (*ListModelDefinitionRequest) ProtoReflect

func (*ListModelDefinitionRequest) Reset

func (x *ListModelDefinitionRequest) Reset()

func (*ListModelDefinitionRequest) String

func (x *ListModelDefinitionRequest) String() string

type ListModelDefinitionResponse

type ListModelDefinitionResponse struct {

	// a list of ModelDefinition instances
	ModelDefinitions []*ModelDefinition `protobuf:"bytes,1,rep,name=model_definitions,json=modelDefinitions,proto3" json:"model_definitions,omitempty"`
	// Next page token
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of model definitions
	TotalSize int64 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListModelDefinitionResponse represents a response to list all supported model definitions

func (*ListModelDefinitionResponse) Descriptor deprecated

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

Deprecated: Use ListModelDefinitionResponse.ProtoReflect.Descriptor instead.

func (*ListModelDefinitionResponse) GetModelDefinitions

func (x *ListModelDefinitionResponse) GetModelDefinitions() []*ModelDefinition

func (*ListModelDefinitionResponse) GetNextPageToken

func (x *ListModelDefinitionResponse) GetNextPageToken() string

func (*ListModelDefinitionResponse) GetTotalSize

func (x *ListModelDefinitionResponse) GetTotalSize() int64

func (*ListModelDefinitionResponse) ProtoMessage

func (*ListModelDefinitionResponse) ProtoMessage()

func (*ListModelDefinitionResponse) ProtoReflect

func (*ListModelDefinitionResponse) Reset

func (x *ListModelDefinitionResponse) Reset()

func (*ListModelDefinitionResponse) String

func (x *ListModelDefinitionResponse) String() string

type ListModelInstanceRequest

type ListModelInstanceRequest struct {

	// The name of the model whose instances we'd like to list.
	// e.g., "models/yolov4"
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Page size: the maximum number of resources to return. The service may
	// return fewer than this value. If unspecified, at most 10 model instances
	// will be returned. The maximum value is 100; values above 100 will be
	// coereced to 100.
	PageSize *int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
	// Page token
	PageToken *string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3,oneof" json:"page_token,omitempty"`
	// Model instance view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `ModelInstance.configuration`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,4,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,omitempty"`
	// contains filtered or unexported fields
}

ListModelInstanceRequest represents a request to list all instances of a model

func (*ListModelInstanceRequest) Descriptor deprecated

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

Deprecated: Use ListModelInstanceRequest.ProtoReflect.Descriptor instead.

func (*ListModelInstanceRequest) GetPageSize

func (x *ListModelInstanceRequest) GetPageSize() int64

func (*ListModelInstanceRequest) GetPageToken

func (x *ListModelInstanceRequest) GetPageToken() string

func (*ListModelInstanceRequest) GetParent

func (x *ListModelInstanceRequest) GetParent() string

func (*ListModelInstanceRequest) GetView

func (x *ListModelInstanceRequest) GetView() View

func (*ListModelInstanceRequest) ProtoMessage

func (*ListModelInstanceRequest) ProtoMessage()

func (*ListModelInstanceRequest) ProtoReflect

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

func (*ListModelInstanceRequest) Reset

func (x *ListModelInstanceRequest) Reset()

func (*ListModelInstanceRequest) String

func (x *ListModelInstanceRequest) String() string

type ListModelInstanceResponse

type ListModelInstanceResponse struct {

	// a list of Model instances
	Instances []*ModelInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	// Next page token
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of model instances
	TotalSize int64 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListModelInstanceResponse represents a response for a list of model instances

func (*ListModelInstanceResponse) Descriptor deprecated

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

Deprecated: Use ListModelInstanceResponse.ProtoReflect.Descriptor instead.

func (*ListModelInstanceResponse) GetInstances

func (x *ListModelInstanceResponse) GetInstances() []*ModelInstance

func (*ListModelInstanceResponse) GetNextPageToken

func (x *ListModelInstanceResponse) GetNextPageToken() string

func (*ListModelInstanceResponse) GetTotalSize

func (x *ListModelInstanceResponse) GetTotalSize() int64

func (*ListModelInstanceResponse) ProtoMessage

func (*ListModelInstanceResponse) ProtoMessage()

func (*ListModelInstanceResponse) ProtoReflect

func (*ListModelInstanceResponse) Reset

func (x *ListModelInstanceResponse) Reset()

func (*ListModelInstanceResponse) String

func (x *ListModelInstanceResponse) String() string

type ListModelRequest

type ListModelRequest struct {

	// Page size: the maximum number of resources to return. The service may
	// return fewer than this value. If unspecified, at most 10 models will be
	// returned. The maximum value is 100; values above 100 will be coereced to
	// 100.
	PageSize *int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
	// Page token
	PageToken *string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3,oneof" json:"page_token,omitempty"`
	// Model view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `Model.configuration`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,3,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,omitempty"`
	// contains filtered or unexported fields
}

ListModelRequest represents a request to list all models

func (*ListModelRequest) Descriptor deprecated

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

Deprecated: Use ListModelRequest.ProtoReflect.Descriptor instead.

func (*ListModelRequest) GetPageSize

func (x *ListModelRequest) GetPageSize() int64

func (*ListModelRequest) GetPageToken

func (x *ListModelRequest) GetPageToken() string

func (*ListModelRequest) GetView

func (x *ListModelRequest) GetView() View

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"`
	// Next page token
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of models
	TotalSize int64 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,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) GetNextPageToken

func (x *ListModelResponse) GetNextPageToken() string

func (*ListModelResponse) GetTotalSize

func (x *ListModelResponse) GetTotalSize() int64

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 {

	// HealthCheckRequest message
	HealthCheckRequest *v1alpha.HealthCheckRequest `protobuf:"bytes,1,opt,name=health_check_request,json=healthCheckRequest,proto3,oneof" json:"health_check_request,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) GetHealthCheckRequest

func (x *LivenessRequest) GetHealthCheckRequest() *v1alpha.HealthCheckRequest

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 {

	// HealthCheckResponse message
	HealthCheckResponse *v1alpha.HealthCheckResponse `protobuf:"bytes,1,opt,name=health_check_response,json=healthCheckResponse,proto3" json:"health_check_response,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) GetHealthCheckResponse

func (x *LivenessResponse) GetHealthCheckResponse() *v1alpha.HealthCheckResponse

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 LookUpModelInstanceRequest

type LookUpModelInstanceRequest struct {

	// Permalink of a model instance. For example:
	// "models/{model_uid}/instances/{instance_uid}"
	Permalink string `protobuf:"bytes,1,opt,name=permalink,proto3" json:"permalink,omitempty"`
	// Model instance view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `ModelInstance.configuration`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,2,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,omitempty"`
	// contains filtered or unexported fields
}

LookUpModelInstanceRequest represents a request to query a model instance by permalink

func (*LookUpModelInstanceRequest) Descriptor deprecated

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

Deprecated: Use LookUpModelInstanceRequest.ProtoReflect.Descriptor instead.

func (x *LookUpModelInstanceRequest) GetPermalink() string

func (*LookUpModelInstanceRequest) GetView

func (x *LookUpModelInstanceRequest) GetView() View

func (*LookUpModelInstanceRequest) ProtoMessage

func (*LookUpModelInstanceRequest) ProtoMessage()

func (*LookUpModelInstanceRequest) ProtoReflect

func (*LookUpModelInstanceRequest) Reset

func (x *LookUpModelInstanceRequest) Reset()

func (*LookUpModelInstanceRequest) String

func (x *LookUpModelInstanceRequest) String() string

type LookUpModelInstanceResponse

type LookUpModelInstanceResponse struct {

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

LookUpModelInstanceResponse represents a response for a model instance

func (*LookUpModelInstanceResponse) Descriptor deprecated

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

Deprecated: Use LookUpModelInstanceResponse.ProtoReflect.Descriptor instead.

func (*LookUpModelInstanceResponse) GetInstance

func (x *LookUpModelInstanceResponse) GetInstance() *ModelInstance

func (*LookUpModelInstanceResponse) ProtoMessage

func (*LookUpModelInstanceResponse) ProtoMessage()

func (*LookUpModelInstanceResponse) ProtoReflect

func (*LookUpModelInstanceResponse) Reset

func (x *LookUpModelInstanceResponse) Reset()

func (*LookUpModelInstanceResponse) String

func (x *LookUpModelInstanceResponse) String() string

type LookUpModelRequest

type LookUpModelRequest struct {

	// Permalink of a model. For example:
	// "models/{uid}"
	Permalink string `protobuf:"bytes,1,opt,name=permalink,proto3" json:"permalink,omitempty"`
	// Model view (default is VIEW_BASIC)
	// VIEW_UNSPECIFIED/VIEW_BASIC: omit `Model.configuration`
	// VIEW_FULL: show full information
	View *View `protobuf:"varint,2,opt,name=view,proto3,enum=vdp.model.v1alpha.View,oneof" json:"view,omitempty"`
	// contains filtered or unexported fields
}

LookUpModelRequest represents a request to query a model instance by permalink

func (*LookUpModelRequest) Descriptor deprecated

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

Deprecated: Use LookUpModelRequest.ProtoReflect.Descriptor instead.

func (x *LookUpModelRequest) GetPermalink() string

func (*LookUpModelRequest) GetView

func (x *LookUpModelRequest) GetView() View

func (*LookUpModelRequest) ProtoMessage

func (*LookUpModelRequest) ProtoMessage()

func (*LookUpModelRequest) ProtoReflect

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

func (*LookUpModelRequest) Reset

func (x *LookUpModelRequest) Reset()

func (*LookUpModelRequest) String

func (x *LookUpModelRequest) String() string

type LookUpModelResponse

type LookUpModelResponse struct {

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

LookUpModelResponse represents a response for a model instance

func (*LookUpModelResponse) Descriptor deprecated

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

Deprecated: Use LookUpModelResponse.ProtoReflect.Descriptor instead.

func (*LookUpModelResponse) GetModel

func (x *LookUpModelResponse) GetModel() *Model

func (*LookUpModelResponse) ProtoMessage

func (*LookUpModelResponse) ProtoMessage()

func (*LookUpModelResponse) ProtoReflect

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

func (*LookUpModelResponse) Reset

func (x *LookUpModelResponse) Reset()

func (*LookUpModelResponse) String

func (x *LookUpModelResponse) String() string

type Model

type Model struct {

	// Resource name. It must have the format of "models/{model}".
	// For example: "models/yolov4"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model ID in UUIDv4
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// Resource ID (the last segment of the resource name) used to construct the
	// resource name. This conforms to RFC-1034, which restricts to letters,
	// numbers, and hyphen, with the first character a letter, the last a letter
	// or a number, and a 63 character maximum.
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// Model description
	Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Model definition resource name
	ModelDefinition string `protobuf:"bytes,5,opt,name=model_definition,json=modelDefinition,proto3" json:"model_definition,omitempty"`
	// Model configuration represents the configuration JSON that has been
	// validated using the `model_spec` JSON schema of a ModelDefinition
	Configuration *structpb.Struct `protobuf:"bytes,6,opt,name=configuration,proto3" json:"configuration,omitempty"`
	// Model visibility including public or private
	Visibility Model_Visibility `protobuf:"varint,7,opt,name=visibility,proto3,enum=vdp.model.v1alpha.Model_Visibility" json:"visibility,omitempty"`
	// Model owner
	//
	// Types that are assignable to Owner:
	//	*Model_User
	//	*Model_Org
	Owner isModel_Owner `protobuf_oneof:"owner"`
	// Model create time
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Model update time
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Model represents a model

func (*Model) Descriptor deprecated

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

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetConfiguration

func (x *Model) GetConfiguration() *structpb.Struct

func (*Model) GetCreateTime

func (x *Model) GetCreateTime() *timestamppb.Timestamp

func (*Model) GetDescription

func (x *Model) GetDescription() string

func (*Model) GetId

func (x *Model) GetId() string

func (*Model) GetModelDefinition

func (x *Model) GetModelDefinition() string

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) GetOrg

func (x *Model) GetOrg() string

func (*Model) GetOwner

func (m *Model) GetOwner() isModel_Owner

func (*Model) GetUid

func (x *Model) GetUid() string

func (*Model) GetUpdateTime

func (x *Model) GetUpdateTime() *timestamppb.Timestamp

func (*Model) GetUser

func (x *Model) GetUser() string

func (*Model) GetVisibility

func (x *Model) GetVisibility() Model_Visibility

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 ModelDefinition

type ModelDefinition struct {

	// ModelDefinition resource name. It must have the format of
	// "model-definitions/{model-definition}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ModelDefinition ID in UUIDv4
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// ModelDefinition resource ID (the last segment of the resource name) used to
	// construct the resource name.
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// ModelDefinition display official title
	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	// ModelDefinition documentation url
	DocumentationUrl string `protobuf:"bytes,5,opt,name=documentation_url,json=documentationUrl,proto3" json:"documentation_url,omitempty"`
	// ModelDefinition icon
	Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"`
	// ModelDefinition release stage
	ReleaseStage ReleaseStage `` /* 134-byte string literal not displayed */
	// ModelDefinition model specification represents the JSON schema used to
	// validate the JSON configurations of a model created from a specific model
	// source. Must be a valid JSON that includes what fields are needed to
	// create/display a model.
	ModelSpec *structpb.Struct `protobuf:"bytes,8,opt,name=model_spec,json=modelSpec,proto3" json:"model_spec,omitempty"`
	// ModelDefinition model instance specification represents the JSON schema
	// used to validate the JSON configurations of a model instance from a
	// specific model source. Must be a valid JSON that includes what fields are
	// needed to display a model instance.
	ModelInstanceSpec *structpb.Struct `protobuf:"bytes,9,opt,name=model_instance_spec,json=modelInstanceSpec,proto3" json:"model_instance_spec,omitempty"`
	// ModelDefinition create time
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// ModelDefinition update time
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

///////////////////////////////////////////////////////////////// ModelDefinition represents the definition of a model

func (*ModelDefinition) Descriptor deprecated

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

Deprecated: Use ModelDefinition.ProtoReflect.Descriptor instead.

func (*ModelDefinition) GetCreateTime

func (x *ModelDefinition) GetCreateTime() *timestamppb.Timestamp

func (*ModelDefinition) GetDocumentationUrl

func (x *ModelDefinition) GetDocumentationUrl() string

func (*ModelDefinition) GetIcon

func (x *ModelDefinition) GetIcon() string

func (*ModelDefinition) GetId

func (x *ModelDefinition) GetId() string

func (*ModelDefinition) GetModelInstanceSpec

func (x *ModelDefinition) GetModelInstanceSpec() *structpb.Struct

func (*ModelDefinition) GetModelSpec

func (x *ModelDefinition) GetModelSpec() *structpb.Struct

func (*ModelDefinition) GetName

func (x *ModelDefinition) GetName() string

func (*ModelDefinition) GetReleaseStage

func (x *ModelDefinition) GetReleaseStage() ReleaseStage

func (*ModelDefinition) GetTitle

func (x *ModelDefinition) GetTitle() string

func (*ModelDefinition) GetUid

func (x *ModelDefinition) GetUid() string

func (*ModelDefinition) GetUpdateTime

func (x *ModelDefinition) GetUpdateTime() *timestamppb.Timestamp

func (*ModelDefinition) ProtoMessage

func (*ModelDefinition) ProtoMessage()

func (*ModelDefinition) ProtoReflect

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

func (*ModelDefinition) Reset

func (x *ModelDefinition) Reset()

func (*ModelDefinition) String

func (x *ModelDefinition) String() string

type ModelInstance

type ModelInstance struct {

	// Resource name. It must have the format of
	// "models/{model}/instances/{instance}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Model instance ID in UUIDv4
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// Model instance ID (the last segment of the resource name), used to
	// construct the resource name. This conforms to RFC-1034, which restricts to
	// letters, numbers, and hyphen, with the first character a letter, the last a
	// letter or a number, and a 63 character maximum.
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// Model instance state
	State ModelInstance_State `protobuf:"varint,4,opt,name=state,proto3,enum=vdp.model.v1alpha.ModelInstance_State" json:"state,omitempty"`
	// Model instance task
	Task ModelInstance_Task `protobuf:"varint,5,opt,name=task,proto3,enum=vdp.model.v1alpha.ModelInstance_Task" json:"task,omitempty"`
	// Model definition resource name
	ModelDefinition string `protobuf:"bytes,6,opt,name=model_definition,json=modelDefinition,proto3" json:"model_definition,omitempty"`
	// Model instance configuration represents the configuration JSON that
	// has been validated using the `model_instance_spec` JSON schema of a
	// ModelDefinition
	Configuration *structpb.Struct `protobuf:"bytes,7,opt,name=configuration,proto3" json:"configuration,omitempty"`
	// Model instance create time
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Model instance update time
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

ModelVersion represents one deployable instance of a model

func (*ModelInstance) Descriptor deprecated

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

Deprecated: Use ModelInstance.ProtoReflect.Descriptor instead.

func (*ModelInstance) GetConfiguration

func (x *ModelInstance) GetConfiguration() *structpb.Struct

func (*ModelInstance) GetCreateTime

func (x *ModelInstance) GetCreateTime() *timestamppb.Timestamp

func (*ModelInstance) GetId

func (x *ModelInstance) GetId() string

func (*ModelInstance) GetModelDefinition

func (x *ModelInstance) GetModelDefinition() string

func (*ModelInstance) GetName

func (x *ModelInstance) GetName() string

func (*ModelInstance) GetState

func (x *ModelInstance) GetState() ModelInstance_State

func (*ModelInstance) GetTask

func (x *ModelInstance) GetTask() ModelInstance_Task

func (*ModelInstance) GetUid

func (x *ModelInstance) GetUid() string

func (*ModelInstance) GetUpdateTime

func (x *ModelInstance) GetUpdateTime() *timestamppb.Timestamp

func (*ModelInstance) ProtoMessage

func (*ModelInstance) ProtoMessage()

func (*ModelInstance) ProtoReflect

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

func (*ModelInstance) Reset

func (x *ModelInstance) Reset()

func (*ModelInstance) String

func (x *ModelInstance) String() string

type ModelInstanceCard

type ModelInstanceCard struct {

	// Resource name. It must have the format of
	// "models/{model}/instances/{instance}/readme"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Size of the file
	Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// Type of the resource. Fixed to "file".
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// Content of the README file in bytes and base64 format
	Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// Encoding type of the content. Fixed to "base64".
	Encoding string `protobuf:"bytes,5,opt,name=encoding,proto3" json:"encoding,omitempty"`
	// contains filtered or unexported fields
}

ModelInstanceCard represents the README card for a model instance. There exists one and exactly one README card per model instance.

func (*ModelInstanceCard) Descriptor deprecated

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

Deprecated: Use ModelInstanceCard.ProtoReflect.Descriptor instead.

func (*ModelInstanceCard) GetContent

func (x *ModelInstanceCard) GetContent() []byte

func (*ModelInstanceCard) GetEncoding

func (x *ModelInstanceCard) GetEncoding() string

func (*ModelInstanceCard) GetName

func (x *ModelInstanceCard) GetName() string

func (*ModelInstanceCard) GetSize

func (x *ModelInstanceCard) GetSize() int32

func (*ModelInstanceCard) GetType

func (x *ModelInstanceCard) GetType() string

func (*ModelInstanceCard) ProtoMessage

func (*ModelInstanceCard) ProtoMessage()

func (*ModelInstanceCard) ProtoReflect

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

func (*ModelInstanceCard) Reset

func (x *ModelInstanceCard) Reset()

func (*ModelInstanceCard) String

func (x *ModelInstanceCard) String() string

type ModelInstance_State

type ModelInstance_State int32

State enumerates a model instance state

const (
	// State: UNSPECIFIED
	ModelInstance_STATE_UNSPECIFIED ModelInstance_State = 0
	// State: OFFLINE
	ModelInstance_STATE_OFFLINE ModelInstance_State = 1
	// State: ONLINE
	ModelInstance_STATE_ONLINE ModelInstance_State = 2
	// State: ERROR
	ModelInstance_STATE_ERROR ModelInstance_State = 3
)

func (ModelInstance_State) Descriptor

func (ModelInstance_State) Enum

func (ModelInstance_State) EnumDescriptor deprecated

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

Deprecated: Use ModelInstance_State.Descriptor instead.

func (ModelInstance_State) Number

func (ModelInstance_State) String

func (x ModelInstance_State) String() string

func (ModelInstance_State) Type

type ModelInstance_Task

type ModelInstance_Task int32

Task enumerates the task type of a model instance

const (
	// Task: UNSPECIFIED
	ModelInstance_TASK_UNSPECIFIED ModelInstance_Task = 0
	// Task: CLASSIFICATION
	ModelInstance_TASK_CLASSIFICATION ModelInstance_Task = 1
	// Task: DETECTION
	ModelInstance_TASK_DETECTION ModelInstance_Task = 2
	// Task: KEYPOINT
	ModelInstance_TASK_KEYPOINT ModelInstance_Task = 3
	// Task: OCR
	ModelInstance_TASK_OCR ModelInstance_Task = 4
)

func (ModelInstance_Task) Descriptor

func (ModelInstance_Task) Enum

func (ModelInstance_Task) EnumDescriptor deprecated

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

Deprecated: Use ModelInstance_Task.Descriptor instead.

func (ModelInstance_Task) Number

func (ModelInstance_Task) String

func (x ModelInstance_Task) String() string

func (ModelInstance_Task) Type

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)
	// ListModelDefinition method receives a ListModelDefinitionRequest message
	// and returns a ListModelDefinitionResponse
	ListModelDefinition(ctx context.Context, in *ListModelDefinitionRequest, opts ...grpc.CallOption) (*ListModelDefinitionResponse, error)
	// GetModelDefinition method receives a GetModelDefinitionRequest message and
	// returns a GetModelDefinitionResponse
	GetModelDefinition(ctx context.Context, in *GetModelDefinitionRequest, opts ...grpc.CallOption) (*GetModelDefinitionResponse, error)
	// ListModel method receives a ListModelRequest message and returns a
	// ListModelResponse
	ListModel(ctx context.Context, in *ListModelRequest, opts ...grpc.CallOption) (*ListModelResponse, error)
	// CreateModel method receives a CreateModelRequest message and returns a
	// CreateModelResponse
	CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*CreateModelResponse, error)
	// CreateModelBinaryFileUpload method receives a
	// CreateModelBinaryFileUploadRequest message and returns a
	// CreateModelBinaryFileUploadResponse message.
	//
	// Endpoint: "POST /v1alpha/models:multipart"
	CreateModelBinaryFileUpload(ctx context.Context, opts ...grpc.CallOption) (ModelService_CreateModelBinaryFileUploadClient, error)
	// GetModel method receives a GetModelRequest message and returns a
	// GetModelResponse
	GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*GetModelResponse, error)
	// UpdateModel method receives a UpdateModelRequest message and returns a
	// UpdateModelResponse
	UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*UpdateModelResponse, error)
	// DeleteModel method receives a DeleteModelRequest message and returns a
	// DeleteModelResponse
	DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error)
	// LookUpModel method receives a LookUpModelRequest message and returns a
	// LookUpModelResponse
	LookUpModel(ctx context.Context, in *LookUpModelRequest, opts ...grpc.CallOption) (*LookUpModelResponse, error)
	// RenameModel method rename a model
	RenameModel(ctx context.Context, in *RenameModelRequest, opts ...grpc.CallOption) (*RenameModelResponse, error)
	// PublishModel method receives a PublishModelRequest message and returns a
	// PublishModelResponse
	PublishModel(ctx context.Context, in *PublishModelRequest, opts ...grpc.CallOption) (*PublishModelResponse, error)
	// UnpublishModel method receives a UnpublishModelRequest message and returns
	// a UnpublishModelResponse
	UnpublishModel(ctx context.Context, in *UnpublishModelRequest, opts ...grpc.CallOption) (*UnpublishModelResponse, error)
	// ListModelInstance method receives a ListModelInstanceRequest message and
	// returns a ListModelInstanceResponse
	ListModelInstance(ctx context.Context, in *ListModelInstanceRequest, opts ...grpc.CallOption) (*ListModelInstanceResponse, error)
	// GetModelInstance method receives a GetModelInstanceRequest message and
	// returns a GetModelInstanceResponse
	GetModelInstance(ctx context.Context, in *GetModelInstanceRequest, opts ...grpc.CallOption) (*GetModelInstanceResponse, error)
	// LookUpModelInstance method receives a LookUpModelInstanceRequest message
	// and returns a
	// LookUpModelInstanceResponse
	LookUpModelInstance(ctx context.Context, in *LookUpModelInstanceRequest, opts ...grpc.CallOption) (*LookUpModelInstanceResponse, error)
	// DeployModelInstance deploy a model instance to online state
	// TODO: should use [Long-running operations](https://google.aip.dev/151)
	DeployModelInstance(ctx context.Context, in *DeployModelInstanceRequest, opts ...grpc.CallOption) (*DeployModelInstanceResponse, error)
	// UndeployModelInstance undeploy a model instance to offline state
	// TODO: should use [Long-running operations](https://google.aip.dev/151)
	UndeployModelInstance(ctx context.Context, in *UndeployModelInstanceRequest, opts ...grpc.CallOption) (*UndeployModelInstanceResponse, error)
	// GetModelInstanceCard method receives a GetModelInstanceCardRequest message
	// and returns a GetModelInstanceCardResponse
	GetModelInstanceCard(ctx context.Context, in *GetModelInstanceCardRequest, opts ...grpc.CallOption) (*GetModelInstanceCardResponse, error)
	///////////////////////////////////////////////////////
	//
	// TriggerModelInstance method receives a TriggerModelInstanceRequest message
	// and returns a TriggerModelInstanceResponse message.
	TriggerModelInstance(ctx context.Context, in *TriggerModelInstanceRequest, opts ...grpc.CallOption) (*TriggerModelInstanceResponse, error)
	// TriggerModelInstanceBinaryFileUpload method receives a
	// TriggerModelInstanceBinaryFileUploadRequest message and returns a
	// TriggerModelInstanceBinaryFileUploadResponse message.
	//
	// Endpoint: "POST/v1alpha/{name=models/*/instances/*}:trigger-multipart"
	TriggerModelInstanceBinaryFileUpload(ctx context.Context, opts ...grpc.CallOption) (ModelService_TriggerModelInstanceBinaryFileUploadClient, error)
	// TestModelInstance method receives a TestModelInstanceRequest message
	// and returns a TestModelInstanceResponse message.
	TestModelInstance(ctx context.Context, in *TestModelInstanceRequest, opts ...grpc.CallOption) (*TestModelInstanceResponse, error)
	// TestModelInstanceBinaryFileUpload method receives a
	// TestModelInstanceBinaryFileUploadRequest message and returns a
	// TestModelInstanceBinaryFileUploadResponse message.
	//
	// Endpoint: "POST/v1alpha/{name=models/*/instances/*}:test-multipart"
	TestModelInstanceBinaryFileUpload(ctx context.Context, opts ...grpc.CallOption) (ModelService_TestModelInstanceBinaryFileUploadClient, 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)
	// ListModelDefinition method receives a ListModelDefinitionRequest message
	// and returns a ListModelDefinitionResponse
	ListModelDefinition(context.Context, *ListModelDefinitionRequest) (*ListModelDefinitionResponse, error)
	// GetModelDefinition method receives a GetModelDefinitionRequest message and
	// returns a GetModelDefinitionResponse
	GetModelDefinition(context.Context, *GetModelDefinitionRequest) (*GetModelDefinitionResponse, error)
	// ListModel method receives a ListModelRequest message and returns a
	// ListModelResponse
	ListModel(context.Context, *ListModelRequest) (*ListModelResponse, error)
	// CreateModel method receives a CreateModelRequest message and returns a
	// CreateModelResponse
	CreateModel(context.Context, *CreateModelRequest) (*CreateModelResponse, error)
	// CreateModelBinaryFileUpload method receives a
	// CreateModelBinaryFileUploadRequest message and returns a
	// CreateModelBinaryFileUploadResponse message.
	//
	// Endpoint: "POST /v1alpha/models:multipart"
	CreateModelBinaryFileUpload(ModelService_CreateModelBinaryFileUploadServer) error
	// GetModel method receives a GetModelRequest message and returns a
	// GetModelResponse
	GetModel(context.Context, *GetModelRequest) (*GetModelResponse, error)
	// UpdateModel method receives a UpdateModelRequest message and returns a
	// UpdateModelResponse
	UpdateModel(context.Context, *UpdateModelRequest) (*UpdateModelResponse, error)
	// DeleteModel method receives a DeleteModelRequest message and returns a
	// DeleteModelResponse
	DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
	// LookUpModel method receives a LookUpModelRequest message and returns a
	// LookUpModelResponse
	LookUpModel(context.Context, *LookUpModelRequest) (*LookUpModelResponse, error)
	// RenameModel method rename a model
	RenameModel(context.Context, *RenameModelRequest) (*RenameModelResponse, error)
	// PublishModel method receives a PublishModelRequest message and returns a
	// PublishModelResponse
	PublishModel(context.Context, *PublishModelRequest) (*PublishModelResponse, error)
	// UnpublishModel method receives a UnpublishModelRequest message and returns
	// a UnpublishModelResponse
	UnpublishModel(context.Context, *UnpublishModelRequest) (*UnpublishModelResponse, error)
	// ListModelInstance method receives a ListModelInstanceRequest message and
	// returns a ListModelInstanceResponse
	ListModelInstance(context.Context, *ListModelInstanceRequest) (*ListModelInstanceResponse, error)
	// GetModelInstance method receives a GetModelInstanceRequest message and
	// returns a GetModelInstanceResponse
	GetModelInstance(context.Context, *GetModelInstanceRequest) (*GetModelInstanceResponse, error)
	// LookUpModelInstance method receives a LookUpModelInstanceRequest message
	// and returns a
	// LookUpModelInstanceResponse
	LookUpModelInstance(context.Context, *LookUpModelInstanceRequest) (*LookUpModelInstanceResponse, error)
	// DeployModelInstance deploy a model instance to online state
	// TODO: should use [Long-running operations](https://google.aip.dev/151)
	DeployModelInstance(context.Context, *DeployModelInstanceRequest) (*DeployModelInstanceResponse, error)
	// UndeployModelInstance undeploy a model instance to offline state
	// TODO: should use [Long-running operations](https://google.aip.dev/151)
	UndeployModelInstance(context.Context, *UndeployModelInstanceRequest) (*UndeployModelInstanceResponse, error)
	// GetModelInstanceCard method receives a GetModelInstanceCardRequest message
	// and returns a GetModelInstanceCardResponse
	GetModelInstanceCard(context.Context, *GetModelInstanceCardRequest) (*GetModelInstanceCardResponse, error)
	///////////////////////////////////////////////////////
	//
	// TriggerModelInstance method receives a TriggerModelInstanceRequest message
	// and returns a TriggerModelInstanceResponse message.
	TriggerModelInstance(context.Context, *TriggerModelInstanceRequest) (*TriggerModelInstanceResponse, error)
	// TriggerModelInstanceBinaryFileUpload method receives a
	// TriggerModelInstanceBinaryFileUploadRequest message and returns a
	// TriggerModelInstanceBinaryFileUploadResponse message.
	//
	// Endpoint: "POST/v1alpha/{name=models/*/instances/*}:trigger-multipart"
	TriggerModelInstanceBinaryFileUpload(ModelService_TriggerModelInstanceBinaryFileUploadServer) error
	// TestModelInstance method receives a TestModelInstanceRequest message
	// and returns a TestModelInstanceResponse message.
	TestModelInstance(context.Context, *TestModelInstanceRequest) (*TestModelInstanceResponse, error)
	// TestModelInstanceBinaryFileUpload method receives a
	// TestModelInstanceBinaryFileUploadRequest message and returns a
	// TestModelInstanceBinaryFileUploadResponse message.
	//
	// Endpoint: "POST/v1alpha/{name=models/*/instances/*}:test-multipart"
	TestModelInstanceBinaryFileUpload(ModelService_TestModelInstanceBinaryFileUploadServer) 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_TestModelInstanceBinaryFileUploadClient

type ModelService_TestModelInstanceBinaryFileUploadClient interface {
	Send(*TestModelInstanceBinaryFileUploadRequest) error
	CloseAndRecv() (*TestModelInstanceBinaryFileUploadResponse, error)
	grpc.ClientStream
}

type ModelService_TestModelInstanceBinaryFileUploadServer

type ModelService_TestModelInstanceBinaryFileUploadServer interface {
	SendAndClose(*TestModelInstanceBinaryFileUploadResponse) error
	Recv() (*TestModelInstanceBinaryFileUploadRequest, error)
	grpc.ServerStream
}

type ModelService_TriggerModelInstanceBinaryFileUploadClient

type ModelService_TriggerModelInstanceBinaryFileUploadClient interface {
	Send(*TriggerModelInstanceBinaryFileUploadRequest) error
	CloseAndRecv() (*TriggerModelInstanceBinaryFileUploadResponse, error)
	grpc.ClientStream
}

type ModelService_TriggerModelInstanceBinaryFileUploadServer

type ModelService_TriggerModelInstanceBinaryFileUploadServer interface {
	SendAndClose(*TriggerModelInstanceBinaryFileUploadResponse) error
	Recv() (*TriggerModelInstanceBinaryFileUploadRequest, error)
	grpc.ServerStream
}

type Model_Org

type Model_Org struct {
	// The resource name of an organization
	Org string `protobuf:"bytes,9,opt,name=org,proto3,oneof"`
}

type Model_User

type Model_User struct {
	// The resource name of a user, e.g., "users/local-user".
	User string `protobuf:"bytes,8,opt,name=user,proto3,oneof"`
}

type Model_Visibility

type Model_Visibility int32

Model visibility including public or private

const (
	// Visibility: UNSPECIFIED, equivalent to PRIVATE.
	Model_VISIBILITY_UNSPECIFIED Model_Visibility = 0
	// Visibility: PRIVATE
	Model_VISIBILITY_PRIVATE Model_Visibility = 1
	// Visibility: PUBLIC
	Model_VISIBILITY_PUBLIC Model_Visibility = 2
)

func (Model_Visibility) Descriptor

func (Model_Visibility) Enum

func (Model_Visibility) EnumDescriptor deprecated

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

Deprecated: Use Model_Visibility.Descriptor instead.

func (Model_Visibility) Number

func (Model_Visibility) String

func (x Model_Visibility) String() string

func (Model_Visibility) Type

type OcrObject

type OcrObject struct {

	// OCR text
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// OCR text score
	Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
	// OCR bounding box
	BoundingBox *BoundingBox `protobuf:"bytes,3,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// contains filtered or unexported fields
}

OcrObject represents a predicted ocr object

func (*OcrObject) Descriptor deprecated

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

Deprecated: Use OcrObject.ProtoReflect.Descriptor instead.

func (*OcrObject) GetBoundingBox

func (x *OcrObject) GetBoundingBox() *BoundingBox

func (*OcrObject) GetScore

func (x *OcrObject) GetScore() float32

func (*OcrObject) GetText

func (x *OcrObject) GetText() string

func (*OcrObject) ProtoMessage

func (*OcrObject) ProtoMessage()

func (*OcrObject) ProtoReflect

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

func (*OcrObject) Reset

func (x *OcrObject) Reset()

func (*OcrObject) String

func (x *OcrObject) String() string

type OcrOutput

type OcrOutput struct {

	// A list of OCR objects
	Objects []*OcrObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

OcrOutput represents the output of ocr task

func (*OcrOutput) Descriptor deprecated

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

Deprecated: Use OcrOutput.ProtoReflect.Descriptor instead.

func (*OcrOutput) GetObjects

func (x *OcrOutput) GetObjects() []*OcrObject

func (*OcrOutput) ProtoMessage

func (*OcrOutput) ProtoMessage()

func (*OcrOutput) ProtoReflect

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

func (*OcrOutput) Reset

func (x *OcrOutput) Reset()

func (*OcrOutput) String

func (x *OcrOutput) String() string

type PublishModelRequest

type PublishModelRequest struct {

	// Resource name of the model.
	// For example "models/{model}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

PublishModelRequest represents a request to publish a model

func (*PublishModelRequest) Descriptor deprecated

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

Deprecated: Use PublishModelRequest.ProtoReflect.Descriptor instead.

func (*PublishModelRequest) GetName

func (x *PublishModelRequest) GetName() string

func (*PublishModelRequest) ProtoMessage

func (*PublishModelRequest) ProtoMessage()

func (*PublishModelRequest) ProtoReflect

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

func (*PublishModelRequest) Reset

func (x *PublishModelRequest) Reset()

func (*PublishModelRequest) String

func (x *PublishModelRequest) String() string

type PublishModelResponse

type PublishModelResponse struct {

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

PublishModelResponse represents a response for the published model

func (*PublishModelResponse) Descriptor deprecated

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

Deprecated: Use PublishModelResponse.ProtoReflect.Descriptor instead.

func (*PublishModelResponse) GetModel

func (x *PublishModelResponse) GetModel() *Model

func (*PublishModelResponse) ProtoMessage

func (*PublishModelResponse) ProtoMessage()

func (*PublishModelResponse) ProtoReflect

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

func (*PublishModelResponse) Reset

func (x *PublishModelResponse) Reset()

func (*PublishModelResponse) String

func (x *PublishModelResponse) String() string

type ReadinessRequest

type ReadinessRequest struct {

	// HealthCheckRequest message
	HealthCheckRequest *v1alpha.HealthCheckRequest `protobuf:"bytes,1,opt,name=health_check_request,json=healthCheckRequest,proto3,oneof" json:"health_check_request,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) GetHealthCheckRequest

func (x *ReadinessRequest) GetHealthCheckRequest() *v1alpha.HealthCheckRequest

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 {

	// HealthCheckResponse message
	HealthCheckResponse *v1alpha.HealthCheckResponse `protobuf:"bytes,1,opt,name=health_check_response,json=healthCheckResponse,proto3" json:"health_check_response,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) GetHealthCheckResponse

func (x *ReadinessResponse) GetHealthCheckResponse() *v1alpha.HealthCheckResponse

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 ReleaseStage

type ReleaseStage int32

ReleaseStage enumerates the release stages

const (
	// ReleaseStage: UNSPECIFIED
	ReleaseStage_RELEASE_STAGE_UNSPECIFIED ReleaseStage = 0
	// ReleaseStage: ALPHA
	ReleaseStage_RELEASE_STAGE_ALPHA ReleaseStage = 1
	// ReleaseStage: BETA
	ReleaseStage_RELEASE_STAGE_BETA ReleaseStage = 2
	// ReleaseStage: GENERALLY_AVAILABLE
	ReleaseStage_RELEASE_STAGE_GENERALLY_AVAILABLE ReleaseStage = 3
	// ReleaseStage: CUSTOM
	ReleaseStage_RELEASE_STAGE_CUSTOM ReleaseStage = 4
)

func (ReleaseStage) Descriptor

func (ReleaseStage) Enum

func (x ReleaseStage) Enum() *ReleaseStage

func (ReleaseStage) EnumDescriptor deprecated

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

Deprecated: Use ReleaseStage.Descriptor instead.

func (ReleaseStage) Number

func (ReleaseStage) String

func (x ReleaseStage) String() string

func (ReleaseStage) Type

type RenameModelRequest

type RenameModelRequest struct {

	// Resource name for the model to be renamed.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// New ID of this model
	NewModelId string `protobuf:"bytes,2,opt,name=new_model_id,json=newModelId,proto3" json:"new_model_id,omitempty"`
	// contains filtered or unexported fields
}

RenameModelRequest represents a request to rename a model

func (*RenameModelRequest) Descriptor deprecated

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

Deprecated: Use RenameModelRequest.ProtoReflect.Descriptor instead.

func (*RenameModelRequest) GetName

func (x *RenameModelRequest) GetName() string

func (*RenameModelRequest) GetNewModelId

func (x *RenameModelRequest) GetNewModelId() string

func (*RenameModelRequest) ProtoMessage

func (*RenameModelRequest) ProtoMessage()

func (*RenameModelRequest) ProtoReflect

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

func (*RenameModelRequest) Reset

func (x *RenameModelRequest) Reset()

func (*RenameModelRequest) String

func (x *RenameModelRequest) String() string

type RenameModelResponse

type RenameModelResponse struct {

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

RenameModelResponse represents a response for a model

func (*RenameModelResponse) Descriptor deprecated

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

Deprecated: Use RenameModelResponse.ProtoReflect.Descriptor instead.

func (*RenameModelResponse) GetModel

func (x *RenameModelResponse) GetModel() *Model

func (*RenameModelResponse) ProtoMessage

func (*RenameModelResponse) ProtoMessage()

func (*RenameModelResponse) ProtoReflect

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

func (*RenameModelResponse) Reset

func (x *RenameModelResponse) Reset()

func (*RenameModelResponse) String

func (x *RenameModelResponse) String() string

type TaskOutput

type TaskOutput struct {

	// The inference task output
	//
	// Types that are assignable to Output:
	//	*TaskOutput_Classification
	//	*TaskOutput_Detection
	//	*TaskOutput_Keypoint
	//	*TaskOutput_Ocr
	//	*TaskOutput_Unspecified
	Output isTaskOutput_Output `protobuf_oneof:"output"`
	// contains filtered or unexported fields
}

TaskOutput represents the output of a CV Task result from a model instance

func (*TaskOutput) Descriptor deprecated

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

Deprecated: Use TaskOutput.ProtoReflect.Descriptor instead.

func (*TaskOutput) GetClassification

func (x *TaskOutput) GetClassification() *ClassificationOutput

func (*TaskOutput) GetDetection

func (x *TaskOutput) GetDetection() *DetectionOutput

func (*TaskOutput) GetKeypoint

func (x *TaskOutput) GetKeypoint() *KeypointOutput

func (*TaskOutput) GetOcr

func (x *TaskOutput) GetOcr() *OcrOutput

func (*TaskOutput) GetOutput

func (m *TaskOutput) GetOutput() isTaskOutput_Output

func (*TaskOutput) GetUnspecified

func (x *TaskOutput) GetUnspecified() *UnspecifiedOutput

func (*TaskOutput) ProtoMessage

func (*TaskOutput) ProtoMessage()

func (*TaskOutput) ProtoReflect

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

func (*TaskOutput) Reset

func (x *TaskOutput) Reset()

func (*TaskOutput) String

func (x *TaskOutput) String() string

type TaskOutput_Classification

type TaskOutput_Classification struct {
	// The classification output
	Classification *ClassificationOutput `protobuf:"bytes,1,opt,name=classification,proto3,oneof"`
}

type TaskOutput_Detection

type TaskOutput_Detection struct {
	// The detection output
	Detection *DetectionOutput `protobuf:"bytes,2,opt,name=detection,proto3,oneof"`
}

type TaskOutput_Keypoint

type TaskOutput_Keypoint struct {
	// The keypoint output
	Keypoint *KeypointOutput `protobuf:"bytes,3,opt,name=keypoint,proto3,oneof"`
}

type TaskOutput_Ocr

type TaskOutput_Ocr struct {
	// The ocr output
	Ocr *OcrOutput `protobuf:"bytes,4,opt,name=ocr,proto3,oneof"`
}

type TaskOutput_Unspecified

type TaskOutput_Unspecified struct {
	// The unspecified task output
	Unspecified *UnspecifiedOutput `protobuf:"bytes,5,opt,name=unspecified,proto3,oneof"`
}

type TestModelInstanceBinaryFileUploadRequest

type TestModelInstanceBinaryFileUploadRequest struct {

	// The resource name of the model instance to trigger.
	// For example "models/{model}/instances/{instance}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The list of file length for each uploaded binary file
	FileLengths []uint64 `protobuf:"varint,2,rep,packed,name=file_lengths,json=fileLengths,proto3" json:"file_lengths,omitempty"`
	// Content of images in bytes
	Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

TestModelInstanceBinaryFileUploadRequest represents a request to test a model instance by uploading binary file

func (*TestModelInstanceBinaryFileUploadRequest) Descriptor deprecated

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

Deprecated: Use TestModelInstanceBinaryFileUploadRequest.ProtoReflect.Descriptor instead.

func (*TestModelInstanceBinaryFileUploadRequest) GetContent

func (*TestModelInstanceBinaryFileUploadRequest) GetFileLengths

func (x *TestModelInstanceBinaryFileUploadRequest) GetFileLengths() []uint64

func (*TestModelInstanceBinaryFileUploadRequest) GetName

func (*TestModelInstanceBinaryFileUploadRequest) ProtoMessage

func (*TestModelInstanceBinaryFileUploadRequest) ProtoReflect

func (*TestModelInstanceBinaryFileUploadRequest) Reset

func (*TestModelInstanceBinaryFileUploadRequest) String

type TestModelInstanceBinaryFileUploadResponse

type TestModelInstanceBinaryFileUploadResponse struct {

	// The task type
	Task ModelInstance_Task `protobuf:"varint,1,opt,name=task,proto3,enum=vdp.model.v1alpha.ModelInstance_Task" json:"task,omitempty"`
	// The task output from a model instance
	TaskOutputs []*TaskOutput `protobuf:"bytes,2,rep,name=task_outputs,json=taskOutputs,proto3" json:"task_outputs,omitempty"`
	// contains filtered or unexported fields
}

TestModelInstanceBinaryFileUploadResponse represents a response for the output for testing a model instance

func (*TestModelInstanceBinaryFileUploadResponse) Descriptor deprecated

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

Deprecated: Use TestModelInstanceBinaryFileUploadResponse.ProtoReflect.Descriptor instead.

func (*TestModelInstanceBinaryFileUploadResponse) GetTask

func (*TestModelInstanceBinaryFileUploadResponse) GetTaskOutputs

func (*TestModelInstanceBinaryFileUploadResponse) ProtoMessage

func (*TestModelInstanceBinaryFileUploadResponse) ProtoReflect

func (*TestModelInstanceBinaryFileUploadResponse) Reset

func (*TestModelInstanceBinaryFileUploadResponse) String

type TestModelInstanceRequest

type TestModelInstanceRequest struct {

	// The resource name of the model instance to trigger.
	// For example "models/{model}/instances/{instance}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Input to trigger the model instance
	Inputs []*Input `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// contains filtered or unexported fields
}

TestModelInstanceRequest represents a request to test a model instance

func (*TestModelInstanceRequest) Descriptor deprecated

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

Deprecated: Use TestModelInstanceRequest.ProtoReflect.Descriptor instead.

func (*TestModelInstanceRequest) GetInputs

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

func (*TestModelInstanceRequest) GetName

func (x *TestModelInstanceRequest) GetName() string

func (*TestModelInstanceRequest) ProtoMessage

func (*TestModelInstanceRequest) ProtoMessage()

func (*TestModelInstanceRequest) ProtoReflect

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

func (*TestModelInstanceRequest) Reset

func (x *TestModelInstanceRequest) Reset()

func (*TestModelInstanceRequest) String

func (x *TestModelInstanceRequest) String() string

type TestModelInstanceResponse

type TestModelInstanceResponse struct {

	// The task type
	Task ModelInstance_Task `protobuf:"varint,1,opt,name=task,proto3,enum=vdp.model.v1alpha.ModelInstance_Task" json:"task,omitempty"`
	// The task output from a model instance
	TaskOutputs []*TaskOutput `protobuf:"bytes,2,rep,name=task_outputs,json=taskOutputs,proto3" json:"task_outputs,omitempty"`
	// contains filtered or unexported fields
}

TestModelInstanceResponse represents a response for the output for testing a model instance

func (*TestModelInstanceResponse) Descriptor deprecated

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

Deprecated: Use TestModelInstanceResponse.ProtoReflect.Descriptor instead.

func (*TestModelInstanceResponse) GetTask

func (*TestModelInstanceResponse) GetTaskOutputs

func (x *TestModelInstanceResponse) GetTaskOutputs() []*TaskOutput

func (*TestModelInstanceResponse) ProtoMessage

func (*TestModelInstanceResponse) ProtoMessage()

func (*TestModelInstanceResponse) ProtoReflect

func (*TestModelInstanceResponse) Reset

func (x *TestModelInstanceResponse) Reset()

func (*TestModelInstanceResponse) String

func (x *TestModelInstanceResponse) String() string

type TriggerModelInstanceBinaryFileUploadRequest

type TriggerModelInstanceBinaryFileUploadRequest struct {

	// The resource name of the model instance to trigger.
	// For example "models/{model}/instances/{instance}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The list of file length for each uploaded binary file
	FileLengths []uint64 `protobuf:"varint,2,rep,packed,name=file_lengths,json=fileLengths,proto3" json:"file_lengths,omitempty"`
	// Content of images in bytes
	Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelInstanceBinaryFileUploadRequest represents a request to test a model instance by uploading binary file

func (*TriggerModelInstanceBinaryFileUploadRequest) Descriptor deprecated

Deprecated: Use TriggerModelInstanceBinaryFileUploadRequest.ProtoReflect.Descriptor instead.

func (*TriggerModelInstanceBinaryFileUploadRequest) GetContent

func (*TriggerModelInstanceBinaryFileUploadRequest) GetFileLengths

func (*TriggerModelInstanceBinaryFileUploadRequest) GetName

func (*TriggerModelInstanceBinaryFileUploadRequest) ProtoMessage

func (*TriggerModelInstanceBinaryFileUploadRequest) ProtoReflect

func (*TriggerModelInstanceBinaryFileUploadRequest) Reset

func (*TriggerModelInstanceBinaryFileUploadRequest) String

type TriggerModelInstanceBinaryFileUploadResponse

type TriggerModelInstanceBinaryFileUploadResponse struct {

	// The task type
	Task ModelInstance_Task `protobuf:"varint,1,opt,name=task,proto3,enum=vdp.model.v1alpha.ModelInstance_Task" json:"task,omitempty"`
	// The task output from a model instance
	TaskOutputs []*TaskOutput `protobuf:"bytes,2,rep,name=task_outputs,json=taskOutputs,proto3" json:"task_outputs,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelInstanceBinaryFileUploadResponse represents a response for the output for testing a model instance

func (*TriggerModelInstanceBinaryFileUploadResponse) Descriptor deprecated

Deprecated: Use TriggerModelInstanceBinaryFileUploadResponse.ProtoReflect.Descriptor instead.

func (*TriggerModelInstanceBinaryFileUploadResponse) GetTask

func (*TriggerModelInstanceBinaryFileUploadResponse) GetTaskOutputs

func (*TriggerModelInstanceBinaryFileUploadResponse) ProtoMessage

func (*TriggerModelInstanceBinaryFileUploadResponse) ProtoReflect

func (*TriggerModelInstanceBinaryFileUploadResponse) Reset

func (*TriggerModelInstanceBinaryFileUploadResponse) String

type TriggerModelInstanceRequest

type TriggerModelInstanceRequest struct {

	// The resource name of the model instance to trigger.
	// For example "models/{model}/instances/{instance}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Input to trigger the model instance
	Inputs []*Input `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelInstanceRequest represents a request to trigger a model instance

func (*TriggerModelInstanceRequest) Descriptor deprecated

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

Deprecated: Use TriggerModelInstanceRequest.ProtoReflect.Descriptor instead.

func (*TriggerModelInstanceRequest) GetInputs

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

func (*TriggerModelInstanceRequest) GetName

func (x *TriggerModelInstanceRequest) GetName() string

func (*TriggerModelInstanceRequest) ProtoMessage

func (*TriggerModelInstanceRequest) ProtoMessage()

func (*TriggerModelInstanceRequest) ProtoReflect

func (*TriggerModelInstanceRequest) Reset

func (x *TriggerModelInstanceRequest) Reset()

func (*TriggerModelInstanceRequest) String

func (x *TriggerModelInstanceRequest) String() string

type TriggerModelInstanceResponse

type TriggerModelInstanceResponse struct {

	// The task type
	Task ModelInstance_Task `protobuf:"varint,1,opt,name=task,proto3,enum=vdp.model.v1alpha.ModelInstance_Task" json:"task,omitempty"`
	// The task output from a model instance
	TaskOutputs []*TaskOutput `protobuf:"bytes,2,rep,name=task_outputs,json=taskOutputs,proto3" json:"task_outputs,omitempty"`
	// contains filtered or unexported fields
}

TriggerModelInstanceResponse represents a response for the output for triggering a model instance

func (*TriggerModelInstanceResponse) Descriptor deprecated

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

Deprecated: Use TriggerModelInstanceResponse.ProtoReflect.Descriptor instead.

func (*TriggerModelInstanceResponse) GetTask

func (*TriggerModelInstanceResponse) GetTaskOutputs

func (x *TriggerModelInstanceResponse) GetTaskOutputs() []*TaskOutput

func (*TriggerModelInstanceResponse) ProtoMessage

func (*TriggerModelInstanceResponse) ProtoMessage()

func (*TriggerModelInstanceResponse) ProtoReflect

func (*TriggerModelInstanceResponse) Reset

func (x *TriggerModelInstanceResponse) Reset()

func (*TriggerModelInstanceResponse) String

type UndeployModelInstanceRequest

type UndeployModelInstanceRequest struct {

	// Resource name for the model instance to be undeployed.
	// Format: models/{model}/instances/{instance}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

UndeployModelInstanceRequest represents a request to undeploy a model instance to offline state

func (*UndeployModelInstanceRequest) Descriptor deprecated

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

Deprecated: Use UndeployModelInstanceRequest.ProtoReflect.Descriptor instead.

func (*UndeployModelInstanceRequest) GetName

func (x *UndeployModelInstanceRequest) GetName() string

func (*UndeployModelInstanceRequest) ProtoMessage

func (*UndeployModelInstanceRequest) ProtoMessage()

func (*UndeployModelInstanceRequest) ProtoReflect

func (*UndeployModelInstanceRequest) Reset

func (x *UndeployModelInstanceRequest) Reset()

func (*UndeployModelInstanceRequest) String

type UndeployModelInstanceResponse

type UndeployModelInstanceResponse struct {

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

UndeployModelInstanceResponse represents a response for a undeployed model instance TODO: should use [Long-running operations](https://google.aip.dev/151)

func (*UndeployModelInstanceResponse) Descriptor deprecated

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

Deprecated: Use UndeployModelInstanceResponse.ProtoReflect.Descriptor instead.

func (*UndeployModelInstanceResponse) GetInstance

func (x *UndeployModelInstanceResponse) GetInstance() *ModelInstance

func (*UndeployModelInstanceResponse) ProtoMessage

func (*UndeployModelInstanceResponse) ProtoMessage()

func (*UndeployModelInstanceResponse) ProtoReflect

func (*UndeployModelInstanceResponse) Reset

func (x *UndeployModelInstanceResponse) Reset()

func (*UndeployModelInstanceResponse) String

type UnimplementedModelServiceServer

type UnimplementedModelServiceServer struct {
}

UnimplementedModelServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedModelServiceServer) CreateModel

func (UnimplementedModelServiceServer) CreateModelBinaryFileUpload

func (UnimplementedModelServiceServer) DeleteModel

func (UnimplementedModelServiceServer) GetModel

func (UnimplementedModelServiceServer) GetModelDefinition

func (UnimplementedModelServiceServer) GetModelInstance

func (UnimplementedModelServiceServer) ListModel

func (UnimplementedModelServiceServer) ListModelInstance

func (UnimplementedModelServiceServer) Liveness

func (UnimplementedModelServiceServer) LookUpModel

func (UnimplementedModelServiceServer) PublishModel

func (UnimplementedModelServiceServer) Readiness

func (UnimplementedModelServiceServer) RenameModel

func (UnimplementedModelServiceServer) TestModelInstance

func (UnimplementedModelServiceServer) TestModelInstanceBinaryFileUpload

func (UnimplementedModelServiceServer) TriggerModelInstanceBinaryFileUpload

func (UnimplementedModelServiceServer) UnpublishModel

func (UnimplementedModelServiceServer) UpdateModel

type UnpublishModelRequest

type UnpublishModelRequest struct {

	// Resource name of the model.
	// For example "models/{model}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

UnpublishModelRequest represents a request to unpublish a model

func (*UnpublishModelRequest) Descriptor deprecated

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

Deprecated: Use UnpublishModelRequest.ProtoReflect.Descriptor instead.

func (*UnpublishModelRequest) GetName

func (x *UnpublishModelRequest) GetName() string

func (*UnpublishModelRequest) ProtoMessage

func (*UnpublishModelRequest) ProtoMessage()

func (*UnpublishModelRequest) ProtoReflect

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

func (*UnpublishModelRequest) Reset

func (x *UnpublishModelRequest) Reset()

func (*UnpublishModelRequest) String

func (x *UnpublishModelRequest) String() string

type UnpublishModelResponse

type UnpublishModelResponse struct {

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

UnpublishModelResponse represents a response for the unpublished model

func (*UnpublishModelResponse) Descriptor deprecated

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

Deprecated: Use UnpublishModelResponse.ProtoReflect.Descriptor instead.

func (*UnpublishModelResponse) GetModel

func (x *UnpublishModelResponse) GetModel() *Model

func (*UnpublishModelResponse) ProtoMessage

func (*UnpublishModelResponse) ProtoMessage()

func (*UnpublishModelResponse) ProtoReflect

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

func (*UnpublishModelResponse) Reset

func (x *UnpublishModelResponse) Reset()

func (*UnpublishModelResponse) String

func (x *UnpublishModelResponse) String() string

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 UnspecifiedOutput

type UnspecifiedOutput struct {

	// A list of unspecified task outputs
	RawOutputs []*structpb.Struct `protobuf:"bytes,1,rep,name=raw_outputs,json=rawOutputs,proto3" json:"raw_outputs,omitempty"`
	// contains filtered or unexported fields
}

UnspecifiedOutput represents a list of unspecified task output

func (*UnspecifiedOutput) Descriptor deprecated

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

Deprecated: Use UnspecifiedOutput.ProtoReflect.Descriptor instead.

func (*UnspecifiedOutput) GetRawOutputs

func (x *UnspecifiedOutput) GetRawOutputs() []*structpb.Struct

func (*UnspecifiedOutput) ProtoMessage

func (*UnspecifiedOutput) ProtoMessage()

func (*UnspecifiedOutput) ProtoReflect

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

func (*UnspecifiedOutput) Reset

func (x *UnspecifiedOutput) Reset()

func (*UnspecifiedOutput) String

func (x *UnspecifiedOutput) String() string

type UpdateModelRequest

type UpdateModelRequest struct {

	// The model to update
	//
	// The model `name` field is used to identify the model to update.
	// Format: models/{model}
	Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// Mask of fields to update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateModelRequest represents a request to update a model

func (*UpdateModelRequest) Descriptor deprecated

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

Deprecated: Use UpdateModelRequest.ProtoReflect.Descriptor instead.

func (*UpdateModelRequest) GetModel

func (x *UpdateModelRequest) GetModel() *Model

func (*UpdateModelRequest) GetUpdateMask

func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateModelRequest) ProtoMessage

func (*UpdateModelRequest) ProtoMessage()

func (*UpdateModelRequest) ProtoReflect

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

func (*UpdateModelRequest) Reset

func (x *UpdateModelRequest) Reset()

func (*UpdateModelRequest) String

func (x *UpdateModelRequest) String() string

type UpdateModelResponse

type UpdateModelResponse struct {

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

UpdateModelResponse represents a response for a model

func (*UpdateModelResponse) Descriptor deprecated

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

Deprecated: Use UpdateModelResponse.ProtoReflect.Descriptor instead.

func (*UpdateModelResponse) GetModel

func (x *UpdateModelResponse) GetModel() *Model

func (*UpdateModelResponse) ProtoMessage

func (*UpdateModelResponse) ProtoMessage()

func (*UpdateModelResponse) ProtoReflect

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

func (*UpdateModelResponse) Reset

func (x *UpdateModelResponse) Reset()

func (*UpdateModelResponse) String

func (x *UpdateModelResponse) String() string

type View

type View int32

View represents a view of any resource. The resource view is implemented by adding a parameter to the method request which allows the client to specify which view of the resource it wants to receive in the response.

const (
	// View: UNSPECIFIED, equivalent to BASIC.
	View_VIEW_UNSPECIFIED View = 0
	// View: BASIC, server response only include basic information of the resource
	View_VIEW_BASIC View = 1
	// View: FULL, full representation of the resource
	View_VIEW_FULL View = 2
)

func (View) Descriptor

func (View) Descriptor() protoreflect.EnumDescriptor

func (View) Enum

func (x View) Enum() *View

func (View) EnumDescriptor deprecated

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

Deprecated: Use View.Descriptor instead.

func (View) Number

func (x View) Number() protoreflect.EnumNumber

func (View) String

func (x View) String() string

func (View) Type

func (View) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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