Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMLTrainingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMLTrainingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MLTrainingServiceClient) error
- func RegisterMLTrainingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMLTrainingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MLTrainingServiceServer) error
- func RegisterMLTrainingServiceServer(s grpc.ServiceRegistrar, srv MLTrainingServiceServer)
- type GetTrainingJobRequest
- func (*GetTrainingJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTrainingJobRequest) GetId() string
- func (*GetTrainingJobRequest) ProtoMessage()
- func (x *GetTrainingJobRequest) ProtoReflect() protoreflect.Message
- func (x *GetTrainingJobRequest) Reset()
- func (x *GetTrainingJobRequest) String() string
- type GetTrainingJobResponse
- func (*GetTrainingJobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTrainingJobResponse) GetId() string
- func (x *GetTrainingJobResponse) GetMetadata() *TrainingJobMetadata
- func (*GetTrainingJobResponse) ProtoMessage()
- func (x *GetTrainingJobResponse) ProtoReflect() protoreflect.Message
- func (x *GetTrainingJobResponse) Reset()
- func (x *GetTrainingJobResponse) String() string
- type MLTrainingServiceClient
- type MLTrainingServiceServer
- type ModelType
- type SubmitTrainingJobRequest
- func (*SubmitTrainingJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTrainingJobRequest) GetFilter() *v1.Filter
- func (x *SubmitTrainingJobRequest) GetModelName() string
- func (x *SubmitTrainingJobRequest) GetModelType() ModelType
- func (x *SubmitTrainingJobRequest) GetModelVersion() string
- func (x *SubmitTrainingJobRequest) GetOrganizationId() string
- func (x *SubmitTrainingJobRequest) GetTags() []string
- func (*SubmitTrainingJobRequest) ProtoMessage()
- func (x *SubmitTrainingJobRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitTrainingJobRequest) Reset()
- func (x *SubmitTrainingJobRequest) String() string
- type SubmitTrainingJobResponse
- func (*SubmitTrainingJobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTrainingJobResponse) GetId() string
- func (*SubmitTrainingJobResponse) ProtoMessage()
- func (x *SubmitTrainingJobResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitTrainingJobResponse) Reset()
- func (x *SubmitTrainingJobResponse) String() string
- type TrainingJob
- func (*TrainingJob) Descriptor() ([]byte, []int)deprecated
- func (x *TrainingJob) GetId() string
- func (x *TrainingJob) GetMetadata() *TrainingJobMetadata
- func (x *TrainingJob) GetModelMetadata() *structpb.Struct
- func (x *TrainingJob) GetOutputPath() string
- func (x *TrainingJob) GetProcessing() bool
- func (x *TrainingJob) GetVertexJobId() string
- func (*TrainingJob) ProtoMessage()
- func (x *TrainingJob) ProtoReflect() protoreflect.Message
- func (x *TrainingJob) Reset()
- func (x *TrainingJob) String() string
- type TrainingJobMetadata
- func (*TrainingJobMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *TrainingJobMetadata) GetCreatedOn() *timestamppb.Timestamp
- func (x *TrainingJobMetadata) GetLastModified() *timestamppb.Timestamp
- func (x *TrainingJobMetadata) GetRequest() *SubmitTrainingJobRequest
- func (x *TrainingJobMetadata) GetStatus() TrainingStatus
- func (x *TrainingJobMetadata) GetSyncedModelId() string
- func (*TrainingJobMetadata) ProtoMessage()
- func (x *TrainingJobMetadata) ProtoReflect() protoreflect.Message
- func (x *TrainingJobMetadata) Reset()
- func (x *TrainingJobMetadata) String() string
- type TrainingStatus
- func (TrainingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TrainingStatus) Enum() *TrainingStatus
- func (TrainingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TrainingStatus) Number() protoreflect.EnumNumber
- func (x TrainingStatus) String() string
- func (TrainingStatus) Type() protoreflect.EnumType
- type UnimplementedMLTrainingServiceServer
- type UnsafeMLTrainingServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ModelType_name = map[int32]string{ 0: "MODEL_TYPE_UNSPECIFIED", 1: "MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION", 2: "MODEL_TYPE_MULTI_LABEL_CLASSIFICATION", } ModelType_value = map[string]int32{ "MODEL_TYPE_UNSPECIFIED": 0, "MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION": 1, "MODEL_TYPE_MULTI_LABEL_CLASSIFICATION": 2, } )
Enum value maps for ModelType.
var ( TrainingStatus_name = map[int32]string{ 0: "TRAINING_STATUS_UNSPECIFIED", 1: "TRAINING_STATUS_PENDING", 2: "TRAINING_STATUS_IN_PROGRESS", 3: "TRAINING_STATUS_COMPLETED", 4: "TRAINING_STATUS_FAILED", } TrainingStatus_value = map[string]int32{ "TRAINING_STATUS_UNSPECIFIED": 0, "TRAINING_STATUS_PENDING": 1, "TRAINING_STATUS_IN_PROGRESS": 2, "TRAINING_STATUS_COMPLETED": 3, "TRAINING_STATUS_FAILED": 4, } )
Enum value maps for TrainingStatus.
var File_app_mltraining_v1_ml_training_proto protoreflect.FileDescriptor
var MLTrainingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "viam.app.mltraining.v1.MLTrainingService", HandlerType: (*MLTrainingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitTrainingJob", Handler: _MLTrainingService_SubmitTrainingJob_Handler, }, { MethodName: "GetTrainingJob", Handler: _MLTrainingService_GetTrainingJob_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "app/mltraining/v1/ml_training.proto", }
MLTrainingService_ServiceDesc is the grpc.ServiceDesc for MLTrainingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMLTrainingServiceHandler ¶
func RegisterMLTrainingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMLTrainingServiceHandler registers the http handlers for service MLTrainingService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMLTrainingServiceHandlerClient ¶
func RegisterMLTrainingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MLTrainingServiceClient) error
RegisterMLTrainingServiceHandlerClient registers the http handlers for service MLTrainingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MLTrainingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MLTrainingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MLTrainingServiceClient" to call the correct interceptors.
func RegisterMLTrainingServiceHandlerFromEndpoint ¶
func RegisterMLTrainingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMLTrainingServiceHandlerFromEndpoint is same as RegisterMLTrainingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMLTrainingServiceHandlerServer ¶
func RegisterMLTrainingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MLTrainingServiceServer) error
RegisterMLTrainingServiceHandlerServer registers the http handlers for service MLTrainingService to "mux". UnaryRPC :call MLTrainingServiceServer 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 RegisterMLTrainingServiceHandlerFromEndpoint instead.
func RegisterMLTrainingServiceServer ¶
func RegisterMLTrainingServiceServer(s grpc.ServiceRegistrar, srv MLTrainingServiceServer)
Types ¶
type GetTrainingJobRequest ¶
type GetTrainingJobRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetTrainingJobRequest) Descriptor
deprecated
func (*GetTrainingJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTrainingJobRequest.ProtoReflect.Descriptor instead.
func (*GetTrainingJobRequest) GetId ¶
func (x *GetTrainingJobRequest) GetId() string
func (*GetTrainingJobRequest) ProtoMessage ¶
func (*GetTrainingJobRequest) ProtoMessage()
func (*GetTrainingJobRequest) ProtoReflect ¶
func (x *GetTrainingJobRequest) ProtoReflect() protoreflect.Message
func (*GetTrainingJobRequest) Reset ¶
func (x *GetTrainingJobRequest) Reset()
func (*GetTrainingJobRequest) String ¶
func (x *GetTrainingJobRequest) String() string
type GetTrainingJobResponse ¶
type GetTrainingJobResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Metadata *TrainingJobMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*GetTrainingJobResponse) Descriptor
deprecated
func (*GetTrainingJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTrainingJobResponse.ProtoReflect.Descriptor instead.
func (*GetTrainingJobResponse) GetId ¶
func (x *GetTrainingJobResponse) GetId() string
func (*GetTrainingJobResponse) GetMetadata ¶
func (x *GetTrainingJobResponse) GetMetadata() *TrainingJobMetadata
func (*GetTrainingJobResponse) ProtoMessage ¶
func (*GetTrainingJobResponse) ProtoMessage()
func (*GetTrainingJobResponse) ProtoReflect ¶
func (x *GetTrainingJobResponse) ProtoReflect() protoreflect.Message
func (*GetTrainingJobResponse) Reset ¶
func (x *GetTrainingJobResponse) Reset()
func (*GetTrainingJobResponse) String ¶
func (x *GetTrainingJobResponse) String() string
type MLTrainingServiceClient ¶
type MLTrainingServiceClient interface { SubmitTrainingJob(ctx context.Context, in *SubmitTrainingJobRequest, opts ...grpc.CallOption) (*SubmitTrainingJobResponse, error) GetTrainingJob(ctx context.Context, in *GetTrainingJobRequest, opts ...grpc.CallOption) (*GetTrainingJobResponse, error) }
MLTrainingServiceClient is the client API for MLTrainingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMLTrainingServiceClient ¶
func NewMLTrainingServiceClient(cc grpc.ClientConnInterface) MLTrainingServiceClient
type MLTrainingServiceServer ¶
type MLTrainingServiceServer interface { SubmitTrainingJob(context.Context, *SubmitTrainingJobRequest) (*SubmitTrainingJobResponse, error) GetTrainingJob(context.Context, *GetTrainingJobRequest) (*GetTrainingJobResponse, error) // contains filtered or unexported methods }
MLTrainingServiceServer is the server API for MLTrainingService service. All implementations must embed UnimplementedMLTrainingServiceServer for forward compatibility
type ModelType ¶
type ModelType int32
func (ModelType) Descriptor ¶
func (ModelType) Descriptor() protoreflect.EnumDescriptor
func (ModelType) EnumDescriptor
deprecated
func (ModelType) Number ¶
func (x ModelType) Number() protoreflect.EnumNumber
func (ModelType) Type ¶
func (ModelType) Type() protoreflect.EnumType
type SubmitTrainingJobRequest ¶
type SubmitTrainingJobRequest struct { Filter *v1.Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` ModelName string `protobuf:"bytes,3,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` ModelVersion string `protobuf:"bytes,4,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` ModelType ModelType `` /* 127-byte string literal not displayed */ Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*SubmitTrainingJobRequest) Descriptor
deprecated
func (*SubmitTrainingJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTrainingJobRequest.ProtoReflect.Descriptor instead.
func (*SubmitTrainingJobRequest) GetFilter ¶
func (x *SubmitTrainingJobRequest) GetFilter() *v1.Filter
func (*SubmitTrainingJobRequest) GetModelName ¶
func (x *SubmitTrainingJobRequest) GetModelName() string
func (*SubmitTrainingJobRequest) GetModelType ¶
func (x *SubmitTrainingJobRequest) GetModelType() ModelType
func (*SubmitTrainingJobRequest) GetModelVersion ¶
func (x *SubmitTrainingJobRequest) GetModelVersion() string
func (*SubmitTrainingJobRequest) GetOrganizationId ¶
func (x *SubmitTrainingJobRequest) GetOrganizationId() string
func (*SubmitTrainingJobRequest) GetTags ¶
func (x *SubmitTrainingJobRequest) GetTags() []string
func (*SubmitTrainingJobRequest) ProtoMessage ¶
func (*SubmitTrainingJobRequest) ProtoMessage()
func (*SubmitTrainingJobRequest) ProtoReflect ¶
func (x *SubmitTrainingJobRequest) ProtoReflect() protoreflect.Message
func (*SubmitTrainingJobRequest) Reset ¶
func (x *SubmitTrainingJobRequest) Reset()
func (*SubmitTrainingJobRequest) String ¶
func (x *SubmitTrainingJobRequest) String() string
type SubmitTrainingJobResponse ¶
type SubmitTrainingJobResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SubmitTrainingJobResponse) Descriptor
deprecated
func (*SubmitTrainingJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTrainingJobResponse.ProtoReflect.Descriptor instead.
func (*SubmitTrainingJobResponse) GetId ¶
func (x *SubmitTrainingJobResponse) GetId() string
func (*SubmitTrainingJobResponse) ProtoMessage ¶
func (*SubmitTrainingJobResponse) ProtoMessage()
func (*SubmitTrainingJobResponse) ProtoReflect ¶
func (x *SubmitTrainingJobResponse) ProtoReflect() protoreflect.Message
func (*SubmitTrainingJobResponse) Reset ¶
func (x *SubmitTrainingJobResponse) Reset()
func (*SubmitTrainingJobResponse) String ¶
func (x *SubmitTrainingJobResponse) String() string
type TrainingJob ¶
type TrainingJob struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` Metadata *TrainingJobMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata" bson:"metadata"` OutputPath string `protobuf:"bytes,3,opt,name=output_path,json=outputPath,proto3" json:"output_path" bson:"output_path"` // The vertex_job_id is the id of the Vertex AI custom training job // backing our concept of a TrainingJob. VertexJobId string `protobuf:"bytes,4,opt,name=vertex_job_id,json=vertexJobId,proto3" json:"vertex_job_id" bson:"vertex_job_id"` ModelMetadata *structpb.Struct `protobuf:"bytes,5,opt,name=model_metadata,json=modelMetadata,proto3" json:"model_metadata" bson:"model_metadata"` Processing bool `protobuf:"varint,6,opt,name=processing,proto3" json:"processing" bson:"processing"` // contains filtered or unexported fields }
func (*TrainingJob) Descriptor
deprecated
func (*TrainingJob) Descriptor() ([]byte, []int)
Deprecated: Use TrainingJob.ProtoReflect.Descriptor instead.
func (*TrainingJob) GetId ¶
func (x *TrainingJob) GetId() string
func (*TrainingJob) GetMetadata ¶
func (x *TrainingJob) GetMetadata() *TrainingJobMetadata
func (*TrainingJob) GetModelMetadata ¶
func (x *TrainingJob) GetModelMetadata() *structpb.Struct
func (*TrainingJob) GetOutputPath ¶
func (x *TrainingJob) GetOutputPath() string
func (*TrainingJob) GetProcessing ¶ added in v0.1.61
func (x *TrainingJob) GetProcessing() bool
func (*TrainingJob) GetVertexJobId ¶
func (x *TrainingJob) GetVertexJobId() string
func (*TrainingJob) ProtoMessage ¶
func (*TrainingJob) ProtoMessage()
func (*TrainingJob) ProtoReflect ¶
func (x *TrainingJob) ProtoReflect() protoreflect.Message
func (*TrainingJob) Reset ¶
func (x *TrainingJob) Reset()
func (*TrainingJob) String ¶
func (x *TrainingJob) String() string
type TrainingJobMetadata ¶
type TrainingJobMetadata struct { Request *SubmitTrainingJobRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` Status TrainingStatus `protobuf:"varint,2,opt,name=status,proto3,enum=viam.app.mltraining.v1.TrainingStatus" json:"status,omitempty"` CreatedOn *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"` LastModified *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` SyncedModelId string `protobuf:"bytes,5,opt,name=synced_model_id,json=syncedModelId,proto3" json:"synced_model_id,omitempty"` // contains filtered or unexported fields }
func (*TrainingJobMetadata) Descriptor
deprecated
func (*TrainingJobMetadata) Descriptor() ([]byte, []int)
Deprecated: Use TrainingJobMetadata.ProtoReflect.Descriptor instead.
func (*TrainingJobMetadata) GetCreatedOn ¶
func (x *TrainingJobMetadata) GetCreatedOn() *timestamppb.Timestamp
func (*TrainingJobMetadata) GetLastModified ¶
func (x *TrainingJobMetadata) GetLastModified() *timestamppb.Timestamp
func (*TrainingJobMetadata) GetRequest ¶
func (x *TrainingJobMetadata) GetRequest() *SubmitTrainingJobRequest
func (*TrainingJobMetadata) GetStatus ¶
func (x *TrainingJobMetadata) GetStatus() TrainingStatus
func (*TrainingJobMetadata) GetSyncedModelId ¶
func (x *TrainingJobMetadata) GetSyncedModelId() string
func (*TrainingJobMetadata) ProtoMessage ¶
func (*TrainingJobMetadata) ProtoMessage()
func (*TrainingJobMetadata) ProtoReflect ¶
func (x *TrainingJobMetadata) ProtoReflect() protoreflect.Message
func (*TrainingJobMetadata) Reset ¶
func (x *TrainingJobMetadata) Reset()
func (*TrainingJobMetadata) String ¶
func (x *TrainingJobMetadata) String() string
type TrainingStatus ¶
type TrainingStatus int32
const ( TrainingStatus_TRAINING_STATUS_UNSPECIFIED TrainingStatus = 0 TrainingStatus_TRAINING_STATUS_PENDING TrainingStatus = 1 TrainingStatus_TRAINING_STATUS_IN_PROGRESS TrainingStatus = 2 TrainingStatus_TRAINING_STATUS_COMPLETED TrainingStatus = 3 TrainingStatus_TRAINING_STATUS_FAILED TrainingStatus = 4 )
func (TrainingStatus) Descriptor ¶
func (TrainingStatus) Descriptor() protoreflect.EnumDescriptor
func (TrainingStatus) Enum ¶
func (x TrainingStatus) Enum() *TrainingStatus
func (TrainingStatus) EnumDescriptor
deprecated
func (TrainingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TrainingStatus.Descriptor instead.
func (TrainingStatus) Number ¶
func (x TrainingStatus) Number() protoreflect.EnumNumber
func (TrainingStatus) String ¶
func (x TrainingStatus) String() string
func (TrainingStatus) Type ¶
func (TrainingStatus) Type() protoreflect.EnumType
type UnimplementedMLTrainingServiceServer ¶
type UnimplementedMLTrainingServiceServer struct { }
UnimplementedMLTrainingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMLTrainingServiceServer) GetTrainingJob ¶
func (UnimplementedMLTrainingServiceServer) GetTrainingJob(context.Context, *GetTrainingJobRequest) (*GetTrainingJobResponse, error)
func (UnimplementedMLTrainingServiceServer) SubmitTrainingJob ¶
func (UnimplementedMLTrainingServiceServer) SubmitTrainingJob(context.Context, *SubmitTrainingJobRequest) (*SubmitTrainingJobResponse, error)
type UnsafeMLTrainingServiceServer ¶
type UnsafeMLTrainingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMLTrainingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MLTrainingServiceServer will result in compilation errors.