ml

package
v0.0.0-...-3abc09e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TrainingInput_ScaleTier_name = map[int32]string{
		0: "BASIC",
		1: "STANDARD_1",
		3: "PREMIUM_1",
		6: "BASIC_GPU",
		5: "CUSTOM",
	}
	TrainingInput_ScaleTier_value = map[string]int32{
		"BASIC":      0,
		"STANDARD_1": 1,
		"PREMIUM_1":  3,
		"BASIC_GPU":  6,
		"CUSTOM":     5,
	}
)

Enum value maps for TrainingInput_ScaleTier.

View Source
var (
	HyperparameterSpec_GoalType_name = map[int32]string{
		0: "GOAL_TYPE_UNSPECIFIED",
		1: "MAXIMIZE",
		2: "MINIMIZE",
	}
	HyperparameterSpec_GoalType_value = map[string]int32{
		"GOAL_TYPE_UNSPECIFIED": 0,
		"MAXIMIZE":              1,
		"MINIMIZE":              2,
	}
)

Enum value maps for HyperparameterSpec_GoalType.

View Source
var (
	ParameterSpec_ParameterType_name = map[int32]string{
		0: "PARAMETER_TYPE_UNSPECIFIED",
		1: "DOUBLE",
		2: "INTEGER",
		3: "CATEGORICAL",
		4: "DISCRETE",
	}
	ParameterSpec_ParameterType_value = map[string]int32{
		"PARAMETER_TYPE_UNSPECIFIED": 0,
		"DOUBLE":                     1,
		"INTEGER":                    2,
		"CATEGORICAL":                3,
		"DISCRETE":                   4,
	}
)

Enum value maps for ParameterSpec_ParameterType.

View Source
var (
	ParameterSpec_ScaleType_name = map[int32]string{
		0: "NONE",
		1: "UNIT_LINEAR_SCALE",
		2: "UNIT_LOG_SCALE",
		3: "UNIT_REVERSE_LOG_SCALE",
	}
	ParameterSpec_ScaleType_value = map[string]int32{
		"NONE":                   0,
		"UNIT_LINEAR_SCALE":      1,
		"UNIT_LOG_SCALE":         2,
		"UNIT_REVERSE_LOG_SCALE": 3,
	}
)

Enum value maps for ParameterSpec_ScaleType.

View Source
var (
	PredictionInput_DataFormat_name = map[int32]string{
		0: "DATA_FORMAT_UNSPECIFIED",
		1: "TEXT",
		2: "TF_RECORD",
		3: "TF_RECORD_GZIP",
	}
	PredictionInput_DataFormat_value = map[string]int32{
		"DATA_FORMAT_UNSPECIFIED": 0,
		"TEXT":                    1,
		"TF_RECORD":               2,
		"TF_RECORD_GZIP":          3,
	}
)

Enum value maps for PredictionInput_DataFormat.

View Source
var (
	Job_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "QUEUED",
		2: "PREPARING",
		3: "RUNNING",
		4: "SUCCEEDED",
		5: "FAILED",
		6: "CANCELLING",
		7: "CANCELLED",
	}
	Job_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"QUEUED":            1,
		"PREPARING":         2,
		"RUNNING":           3,
		"SUCCEEDED":         4,
		"FAILED":            5,
		"CANCELLING":        6,
		"CANCELLED":         7,
	}
)

Enum value maps for Job_State.

View Source
var (
	OperationMetadata_OperationType_name = map[int32]string{
		0: "OPERATION_TYPE_UNSPECIFIED",
		1: "CREATE_VERSION",
		2: "DELETE_VERSION",
		3: "DELETE_MODEL",
	}
	OperationMetadata_OperationType_value = map[string]int32{
		"OPERATION_TYPE_UNSPECIFIED": 0,
		"CREATE_VERSION":             1,
		"DELETE_VERSION":             2,
		"DELETE_MODEL":               3,
	}
)

Enum value maps for OperationMetadata_OperationType.

View Source
var File_google_cloud_ml_v1_job_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_ml_v1_model_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_ml_v1_operation_metadata_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_ml_v1_prediction_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_ml_v1_project_service_proto protoreflect.FileDescriptor

Functions

func RegisterJobServiceServer

func RegisterJobServiceServer(s *grpc.Server, srv JobServiceServer)

func RegisterModelServiceServer

func RegisterModelServiceServer(s *grpc.Server, srv ModelServiceServer)

func RegisterOnlinePredictionServiceServer

func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer)

func RegisterProjectManagementServiceServer

func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer)

Types

type CancelJobRequest

type CancelJobRequest struct {

	// Required. The name of the job to cancel.
	//
	// Authorization: requires `Editor` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the CancelJob method.

func (*CancelJobRequest) Descriptor deprecated

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

Deprecated: Use CancelJobRequest.ProtoReflect.Descriptor instead.

func (*CancelJobRequest) GetName

func (x *CancelJobRequest) GetName() string

func (*CancelJobRequest) ProtoMessage

func (*CancelJobRequest) ProtoMessage()

func (*CancelJobRequest) ProtoReflect

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

func (*CancelJobRequest) Reset

func (x *CancelJobRequest) Reset()

func (*CancelJobRequest) String

func (x *CancelJobRequest) String() string

type CreateJobRequest

type CreateJobRequest struct {

	// Required. The project name.
	//
	// Authorization: requires `Editor` role on the specified project.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The job to create.
	Job *Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
	// contains filtered or unexported fields
}

Request message for the CreateJob method.

func (*CreateJobRequest) Descriptor deprecated

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

Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.

func (*CreateJobRequest) GetJob

func (x *CreateJobRequest) GetJob() *Job

func (*CreateJobRequest) GetParent

func (x *CreateJobRequest) GetParent() string

func (*CreateJobRequest) ProtoMessage

func (*CreateJobRequest) ProtoMessage()

func (*CreateJobRequest) ProtoReflect

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

func (*CreateJobRequest) Reset

func (x *CreateJobRequest) Reset()

func (*CreateJobRequest) String

func (x *CreateJobRequest) String() string

type CreateModelRequest

type CreateModelRequest struct {

	// Required. The project name.
	//
	// Authorization: requires `Editor` role on the specified project.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The model to create.
	Model *Model `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

Request message for the CreateModel method.

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

func (x *CreateModelRequest) GetParent() string

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 CreateVersionRequest

type CreateVersionRequest struct {

	// Required. The name of the model.
	//
	// Authorization: requires `Editor` role on the parent project.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The version details.
	Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Uploads the provided trained model version to Cloud Machine Learning.

func (*CreateVersionRequest) Descriptor deprecated

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

Deprecated: Use CreateVersionRequest.ProtoReflect.Descriptor instead.

func (*CreateVersionRequest) GetParent

func (x *CreateVersionRequest) GetParent() string

func (*CreateVersionRequest) GetVersion

func (x *CreateVersionRequest) GetVersion() *Version

func (*CreateVersionRequest) ProtoMessage

func (*CreateVersionRequest) ProtoMessage()

func (*CreateVersionRequest) ProtoReflect

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

func (*CreateVersionRequest) Reset

func (x *CreateVersionRequest) Reset()

func (*CreateVersionRequest) String

func (x *CreateVersionRequest) String() string

type DeleteModelRequest

type DeleteModelRequest struct {

	// Required. The name of the model.
	//
	// Authorization: requires `Editor` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DeleteModel method.

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 DeleteVersionRequest

type DeleteVersionRequest struct {

	// Required. The name of the version. You can get the names of all the
	// versions of a model by calling
	// [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list).
	//
	// Authorization: requires `Editor` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DeleteVerionRequest method.

func (*DeleteVersionRequest) Descriptor deprecated

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

Deprecated: Use DeleteVersionRequest.ProtoReflect.Descriptor instead.

func (*DeleteVersionRequest) GetName

func (x *DeleteVersionRequest) GetName() string

func (*DeleteVersionRequest) ProtoMessage

func (*DeleteVersionRequest) ProtoMessage()

func (*DeleteVersionRequest) ProtoReflect

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

func (*DeleteVersionRequest) Reset

func (x *DeleteVersionRequest) Reset()

func (*DeleteVersionRequest) String

func (x *DeleteVersionRequest) String() string

type GetConfigRequest

type GetConfigRequest struct {

	// Required. The project name.
	//
	// Authorization: requires `Viewer` role on the specified project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Requests service account information associated with a project.

func (*GetConfigRequest) Descriptor deprecated

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

Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetConfigRequest) GetName

func (x *GetConfigRequest) GetName() string

func (*GetConfigRequest) ProtoMessage

func (*GetConfigRequest) ProtoMessage()

func (*GetConfigRequest) ProtoReflect

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

func (*GetConfigRequest) Reset

func (x *GetConfigRequest) Reset()

func (*GetConfigRequest) String

func (x *GetConfigRequest) String() string

type GetConfigResponse

type GetConfigResponse struct {

	// The service account Cloud ML uses to access resources in the project.
	ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// The project number for `service_account`.
	ServiceAccountProject int64 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Returns service account information associated with a project.

func (*GetConfigResponse) Descriptor deprecated

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

Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.

func (*GetConfigResponse) GetServiceAccount

func (x *GetConfigResponse) GetServiceAccount() string

func (*GetConfigResponse) GetServiceAccountProject

func (x *GetConfigResponse) GetServiceAccountProject() int64

func (*GetConfigResponse) ProtoMessage

func (*GetConfigResponse) ProtoMessage()

func (*GetConfigResponse) ProtoReflect

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

func (*GetConfigResponse) Reset

func (x *GetConfigResponse) Reset()

func (*GetConfigResponse) String

func (x *GetConfigResponse) String() string

type GetJobRequest

type GetJobRequest struct {

	// Required. The name of the job to get the description of.
	//
	// Authorization: requires `Viewer` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the GetJob method.

func (*GetJobRequest) Descriptor deprecated

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

Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.

func (*GetJobRequest) GetName

func (x *GetJobRequest) GetName() string

func (*GetJobRequest) ProtoMessage

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) ProtoReflect

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

func (*GetJobRequest) Reset

func (x *GetJobRequest) Reset()

func (*GetJobRequest) String

func (x *GetJobRequest) String() string

type GetModelRequest

type GetModelRequest struct {

	// Required. The name of the model.
	//
	// Authorization: requires `Viewer` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the GetModel method.

func (*GetModelRequest) Descriptor deprecated

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

Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.

func (*GetModelRequest) GetName

func (x *GetModelRequest) GetName() string

func (*GetModelRequest) ProtoMessage

func (*GetModelRequest) ProtoMessage()

func (*GetModelRequest) ProtoReflect

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

func (*GetModelRequest) Reset

func (x *GetModelRequest) Reset()

func (*GetModelRequest) String

func (x *GetModelRequest) String() string

type GetVersionRequest

type GetVersionRequest struct {

	// Required. The name of the version.
	//
	// Authorization: requires `Viewer` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the GetVersion method.

func (*GetVersionRequest) Descriptor deprecated

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

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) GetName

func (x *GetVersionRequest) GetName() string

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect

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

func (*GetVersionRequest) Reset

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (x *GetVersionRequest) String() string

type HyperparameterOutput

type HyperparameterOutput struct {

	// The trial id for these results.
	TrialId string `protobuf:"bytes,1,opt,name=trial_id,json=trialId,proto3" json:"trial_id,omitempty"`
	// The hyperparameters given to this trial.
	Hyperparameters map[string]string `` /* 171-byte string literal not displayed */
	// The final objective metric seen for this trial.
	FinalMetric *HyperparameterOutput_HyperparameterMetric `protobuf:"bytes,3,opt,name=final_metric,json=finalMetric,proto3" json:"final_metric,omitempty"`
	// All recorded object metrics for this trial.
	AllMetrics []*HyperparameterOutput_HyperparameterMetric `protobuf:"bytes,4,rep,name=all_metrics,json=allMetrics,proto3" json:"all_metrics,omitempty"`
	// contains filtered or unexported fields
}

Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.

func (*HyperparameterOutput) Descriptor deprecated

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

Deprecated: Use HyperparameterOutput.ProtoReflect.Descriptor instead.

func (*HyperparameterOutput) GetAllMetrics

func (*HyperparameterOutput) GetFinalMetric

func (*HyperparameterOutput) GetHyperparameters

func (x *HyperparameterOutput) GetHyperparameters() map[string]string

func (*HyperparameterOutput) GetTrialId

func (x *HyperparameterOutput) GetTrialId() string

func (*HyperparameterOutput) ProtoMessage

func (*HyperparameterOutput) ProtoMessage()

func (*HyperparameterOutput) ProtoReflect

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

func (*HyperparameterOutput) Reset

func (x *HyperparameterOutput) Reset()

func (*HyperparameterOutput) String

func (x *HyperparameterOutput) String() string

type HyperparameterOutput_HyperparameterMetric

type HyperparameterOutput_HyperparameterMetric struct {

	// The global training step for this metric.
	TrainingStep int64 `protobuf:"varint,1,opt,name=training_step,json=trainingStep,proto3" json:"training_step,omitempty"`
	// The objective value at this training step.
	ObjectiveValue float64 `protobuf:"fixed64,2,opt,name=objective_value,json=objectiveValue,proto3" json:"objective_value,omitempty"`
	// contains filtered or unexported fields
}

An observed value of a metric.

func (*HyperparameterOutput_HyperparameterMetric) Descriptor deprecated

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

Deprecated: Use HyperparameterOutput_HyperparameterMetric.ProtoReflect.Descriptor instead.

func (*HyperparameterOutput_HyperparameterMetric) GetObjectiveValue

func (x *HyperparameterOutput_HyperparameterMetric) GetObjectiveValue() float64

func (*HyperparameterOutput_HyperparameterMetric) GetTrainingStep

func (x *HyperparameterOutput_HyperparameterMetric) GetTrainingStep() int64

func (*HyperparameterOutput_HyperparameterMetric) ProtoMessage

func (*HyperparameterOutput_HyperparameterMetric) ProtoReflect

func (*HyperparameterOutput_HyperparameterMetric) Reset

func (*HyperparameterOutput_HyperparameterMetric) String

type HyperparameterSpec

type HyperparameterSpec struct {

	// Required. The type of goal to use for tuning. Available types are
	// `MAXIMIZE` and `MINIMIZE`.
	//
	// Defaults to `MAXIMIZE`.
	Goal HyperparameterSpec_GoalType `protobuf:"varint,1,opt,name=goal,proto3,enum=google.cloud.ml.v1.HyperparameterSpec_GoalType" json:"goal,omitempty"`
	// Required. The set of parameters to tune.
	Params []*ParameterSpec `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"`
	// Optional. How many training trials should be attempted to optimize
	// the specified hyperparameters.
	//
	// Defaults to one.
	MaxTrials int32 `protobuf:"varint,3,opt,name=max_trials,json=maxTrials,proto3" json:"max_trials,omitempty"`
	// Optional. The number of training trials to run concurrently.
	// You can reduce the time it takes to perform hyperparameter tuning by adding
	// trials in parallel. However, each trail only benefits from the information
	// gained in completed trials. That means that a trial does not get access to
	// the results of trials running at the same time, which could reduce the
	// quality of the overall optimization.
	//
	// Each trial will use the same scale tier and machine types.
	//
	// Defaults to one.
	MaxParallelTrials int32 `protobuf:"varint,4,opt,name=max_parallel_trials,json=maxParallelTrials,proto3" json:"max_parallel_trials,omitempty"`
	// Optional. The Tensorflow summary tag name to use for optimizing trials. For
	// current versions of Tensorflow, this tag name should exactly match what is
	// shown in Tensorboard, including all scopes.  For versions of Tensorflow
	// prior to 0.12, this should be only the tag passed to tf.Summary.
	// By default, "training/hptuning/metric" will be used.
	HyperparameterMetricTag string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents a set of hyperparameters to optimize.

func (*HyperparameterSpec) Descriptor deprecated

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

Deprecated: Use HyperparameterSpec.ProtoReflect.Descriptor instead.

func (*HyperparameterSpec) GetGoal

func (*HyperparameterSpec) GetHyperparameterMetricTag

func (x *HyperparameterSpec) GetHyperparameterMetricTag() string

func (*HyperparameterSpec) GetMaxParallelTrials

func (x *HyperparameterSpec) GetMaxParallelTrials() int32

func (*HyperparameterSpec) GetMaxTrials

func (x *HyperparameterSpec) GetMaxTrials() int32

func (*HyperparameterSpec) GetParams

func (x *HyperparameterSpec) GetParams() []*ParameterSpec

func (*HyperparameterSpec) ProtoMessage

func (*HyperparameterSpec) ProtoMessage()

func (*HyperparameterSpec) ProtoReflect

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

func (*HyperparameterSpec) Reset

func (x *HyperparameterSpec) Reset()

func (*HyperparameterSpec) String

func (x *HyperparameterSpec) String() string

type HyperparameterSpec_GoalType

type HyperparameterSpec_GoalType int32

The available types of optimization goals.

const (
	// Goal Type will default to maximize.
	HyperparameterSpec_GOAL_TYPE_UNSPECIFIED HyperparameterSpec_GoalType = 0
	// Maximize the goal metric.
	HyperparameterSpec_MAXIMIZE HyperparameterSpec_GoalType = 1
	// Minimize the goal metric.
	HyperparameterSpec_MINIMIZE HyperparameterSpec_GoalType = 2
)

func (HyperparameterSpec_GoalType) Descriptor

func (HyperparameterSpec_GoalType) Enum

func (HyperparameterSpec_GoalType) EnumDescriptor deprecated

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

Deprecated: Use HyperparameterSpec_GoalType.Descriptor instead.

func (HyperparameterSpec_GoalType) Number

func (HyperparameterSpec_GoalType) String

func (HyperparameterSpec_GoalType) Type

type Job

type Job struct {

	// Required. The user-specified id of the job.
	JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	// Required. Parameters to create a job.
	//
	// Types that are assignable to Input:
	//	*Job_TrainingInput
	//	*Job_PredictionInput
	Input isJob_Input `protobuf_oneof:"input"`
	// Output only. When the job was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. When the job processing was started.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Output only. When the job processing was completed.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Output only. The detailed state of a job.
	State Job_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.ml.v1.Job_State" json:"state,omitempty"`
	// Output only. The details of a failure or a cancellation.
	ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// Output only. The current result of the job.
	//
	// Types that are assignable to Output:
	//	*Job_TrainingOutput
	//	*Job_PredictionOutput
	Output isJob_Output `protobuf_oneof:"output"`
	// contains filtered or unexported fields
}

Represents a training or prediction job.

func (*Job) Descriptor deprecated

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetCreateTime

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

func (*Job) GetEndTime

func (x *Job) GetEndTime() *timestamppb.Timestamp

func (*Job) GetErrorMessage

func (x *Job) GetErrorMessage() string

func (*Job) GetInput

func (m *Job) GetInput() isJob_Input

func (*Job) GetJobId

func (x *Job) GetJobId() string

func (*Job) GetOutput

func (m *Job) GetOutput() isJob_Output

func (*Job) GetPredictionInput

func (x *Job) GetPredictionInput() *PredictionInput

func (*Job) GetPredictionOutput

func (x *Job) GetPredictionOutput() *PredictionOutput

func (*Job) GetStartTime

func (x *Job) GetStartTime() *timestamppb.Timestamp

func (*Job) GetState

func (x *Job) GetState() Job_State

func (*Job) GetTrainingInput

func (x *Job) GetTrainingInput() *TrainingInput

func (*Job) GetTrainingOutput

func (x *Job) GetTrainingOutput() *TrainingOutput

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

type JobServiceClient

type JobServiceClient interface {
	// Creates a training or a batch prediction job.
	CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*Job, error)
	// Lists the jobs in the project.
	ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error)
	// Describes a job.
	GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error)
	// Cancels a running job.
	CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

JobServiceClient is the client API for JobService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewJobServiceClient

func NewJobServiceClient(cc grpc.ClientConnInterface) JobServiceClient

type JobServiceServer

type JobServiceServer interface {
	// Creates a training or a batch prediction job.
	CreateJob(context.Context, *CreateJobRequest) (*Job, error)
	// Lists the jobs in the project.
	ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)
	// Describes a job.
	GetJob(context.Context, *GetJobRequest) (*Job, error)
	// Cancels a running job.
	CancelJob(context.Context, *CancelJobRequest) (*emptypb.Empty, error)
}

JobServiceServer is the server API for JobService service.

type Job_PredictionInput

type Job_PredictionInput struct {
	// Input parameters to create a prediction job.
	PredictionInput *PredictionInput `protobuf:"bytes,3,opt,name=prediction_input,json=predictionInput,proto3,oneof"`
}

type Job_PredictionOutput

type Job_PredictionOutput struct {
	// The current prediction job result.
	PredictionOutput *PredictionOutput `protobuf:"bytes,10,opt,name=prediction_output,json=predictionOutput,proto3,oneof"`
}

type Job_State

type Job_State int32

Describes the job state.

const (
	// The job state is unspecified.
	Job_STATE_UNSPECIFIED Job_State = 0
	// The job has been just created and processing has not yet begun.
	Job_QUEUED Job_State = 1
	// The service is preparing to run the job.
	Job_PREPARING Job_State = 2
	// The job is in progress.
	Job_RUNNING Job_State = 3
	// The job completed successfully.
	Job_SUCCEEDED Job_State = 4
	// The job failed.
	// `error_message` should contain the details of the failure.
	Job_FAILED Job_State = 5
	// The job is being cancelled.
	// `error_message` should describe the reason for the cancellation.
	Job_CANCELLING Job_State = 6
	// The job has been cancelled.
	// `error_message` should describe the reason for the cancellation.
	Job_CANCELLED Job_State = 7
)

func (Job_State) Descriptor

func (Job_State) Descriptor() protoreflect.EnumDescriptor

func (Job_State) Enum

func (x Job_State) Enum() *Job_State

func (Job_State) EnumDescriptor deprecated

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

Deprecated: Use Job_State.Descriptor instead.

func (Job_State) Number

func (x Job_State) Number() protoreflect.EnumNumber

func (Job_State) String

func (x Job_State) String() string

func (Job_State) Type

type Job_TrainingInput

type Job_TrainingInput struct {
	// Input parameters to create a training job.
	TrainingInput *TrainingInput `protobuf:"bytes,2,opt,name=training_input,json=trainingInput,proto3,oneof"`
}

type Job_TrainingOutput

type Job_TrainingOutput struct {
	// The current training job result.
	TrainingOutput *TrainingOutput `protobuf:"bytes,9,opt,name=training_output,json=trainingOutput,proto3,oneof"`
}

type ListJobsRequest

type ListJobsRequest struct {

	// Required. The name of the project for which to list jobs.
	//
	// Authorization: requires `Viewer` role on the specified project.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Specifies the subset of jobs to retrieve.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. A page token to request the next page of results.
	//
	// You get the token from the `next_page_token` field of the response from
	// the previous call.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. The number of jobs to retrieve per "page" of results. If there
	// are more remaining results than this number, the response message will
	// contain a valid value in the `next_page_token` field.
	//
	// The default value is 20, and the maximum page size is 100.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

Request message for the ListJobs method.

func (*ListJobsRequest) Descriptor deprecated

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

Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.

func (*ListJobsRequest) GetFilter

func (x *ListJobsRequest) GetFilter() string

func (*ListJobsRequest) GetPageSize

func (x *ListJobsRequest) GetPageSize() int32

func (*ListJobsRequest) GetPageToken

func (x *ListJobsRequest) GetPageToken() string

func (*ListJobsRequest) GetParent

func (x *ListJobsRequest) GetParent() string

func (*ListJobsRequest) ProtoMessage

func (*ListJobsRequest) ProtoMessage()

func (*ListJobsRequest) ProtoReflect

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

func (*ListJobsRequest) Reset

func (x *ListJobsRequest) Reset()

func (*ListJobsRequest) String

func (x *ListJobsRequest) String() string

type ListJobsResponse

type ListJobsResponse struct {

	// The list of jobs.
	Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"`
	// Optional. Pass this token as the `page_token` field of the request for a
	// subsequent call.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListJobs method.

func (*ListJobsResponse) Descriptor deprecated

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

Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.

func (*ListJobsResponse) GetJobs

func (x *ListJobsResponse) GetJobs() []*Job

func (*ListJobsResponse) GetNextPageToken

func (x *ListJobsResponse) GetNextPageToken() string

func (*ListJobsResponse) ProtoMessage

func (*ListJobsResponse) ProtoMessage()

func (*ListJobsResponse) ProtoReflect

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

func (*ListJobsResponse) Reset

func (x *ListJobsResponse) Reset()

func (*ListJobsResponse) String

func (x *ListJobsResponse) String() string

type ListModelsRequest

type ListModelsRequest struct {

	// Required. The name of the project whose models are to be listed.
	//
	// Authorization: requires `Viewer` role on the specified project.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. A page token to request the next page of results.
	//
	// You get the token from the `next_page_token` field of the response from
	// the previous call.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. The number of models to retrieve per "page" of results. If there
	// are more remaining results than this number, the response message will
	// contain a valid value in the `next_page_token` field.
	//
	// The default value is 20, and the maximum page size is 100.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

Request message for the ListModels method.

func (*ListModelsRequest) Descriptor deprecated

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

Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.

func (*ListModelsRequest) GetPageSize

func (x *ListModelsRequest) GetPageSize() int32

func (*ListModelsRequest) GetPageToken

func (x *ListModelsRequest) GetPageToken() string

func (*ListModelsRequest) GetParent

func (x *ListModelsRequest) GetParent() string

func (*ListModelsRequest) ProtoMessage

func (*ListModelsRequest) ProtoMessage()

func (*ListModelsRequest) ProtoReflect

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

func (*ListModelsRequest) Reset

func (x *ListModelsRequest) Reset()

func (*ListModelsRequest) String

func (x *ListModelsRequest) String() string

type ListModelsResponse

type ListModelsResponse struct {

	// The list of models.
	Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
	// Optional. Pass this token as the `page_token` field of the request for a
	// subsequent call.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListModels method.

func (*ListModelsResponse) Descriptor deprecated

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

Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.

func (*ListModelsResponse) GetModels

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

func (*ListModelsResponse) GetNextPageToken

func (x *ListModelsResponse) GetNextPageToken() string

func (*ListModelsResponse) ProtoMessage

func (*ListModelsResponse) ProtoMessage()

func (*ListModelsResponse) ProtoReflect

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

func (*ListModelsResponse) Reset

func (x *ListModelsResponse) Reset()

func (*ListModelsResponse) String

func (x *ListModelsResponse) String() string

type ListVersionsRequest

type ListVersionsRequest struct {

	// Required. The name of the model for which to list the version.
	//
	// Authorization: requires `Viewer` role on the parent project.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. A page token to request the next page of results.
	//
	// You get the token from the `next_page_token` field of the response from
	// the previous call.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. The number of versions to retrieve per "page" of results. If
	// there are more remaining results than this number, the response message
	// will contain a valid value in the `next_page_token` field.
	//
	// The default value is 20, and the maximum page size is 100.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

Request message for the ListVersions method.

func (*ListVersionsRequest) Descriptor deprecated

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

Deprecated: Use ListVersionsRequest.ProtoReflect.Descriptor instead.

func (*ListVersionsRequest) GetPageSize

func (x *ListVersionsRequest) GetPageSize() int32

func (*ListVersionsRequest) GetPageToken

func (x *ListVersionsRequest) GetPageToken() string

func (*ListVersionsRequest) GetParent

func (x *ListVersionsRequest) GetParent() string

func (*ListVersionsRequest) ProtoMessage

func (*ListVersionsRequest) ProtoMessage()

func (*ListVersionsRequest) ProtoReflect

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

func (*ListVersionsRequest) Reset

func (x *ListVersionsRequest) Reset()

func (*ListVersionsRequest) String

func (x *ListVersionsRequest) String() string

type ListVersionsResponse

type ListVersionsResponse struct {

	// The list of versions.
	Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// Optional. Pass this token as the `page_token` field of the request for a
	// subsequent call.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListVersions method.

func (*ListVersionsResponse) Descriptor deprecated

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

Deprecated: Use ListVersionsResponse.ProtoReflect.Descriptor instead.

func (*ListVersionsResponse) GetNextPageToken

func (x *ListVersionsResponse) GetNextPageToken() string

func (*ListVersionsResponse) GetVersions

func (x *ListVersionsResponse) GetVersions() []*Version

func (*ListVersionsResponse) ProtoMessage

func (*ListVersionsResponse) ProtoMessage()

func (*ListVersionsResponse) ProtoReflect

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

func (*ListVersionsResponse) Reset

func (x *ListVersionsResponse) Reset()

func (*ListVersionsResponse) String

func (x *ListVersionsResponse) String() string

type ManualScaling

type ManualScaling struct {

	// The number of nodes to allocate for this model. These nodes are always up,
	// starting from the time the model is deployed, so the cost of operating
	// this model will be proportional to nodes * number of hours since
	// deployment.
	Nodes int32 `protobuf:"varint,1,opt,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

Options for manually scaling a model.

func (*ManualScaling) Descriptor deprecated

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

Deprecated: Use ManualScaling.ProtoReflect.Descriptor instead.

func (*ManualScaling) GetNodes

func (x *ManualScaling) GetNodes() int32

func (*ManualScaling) ProtoMessage

func (*ManualScaling) ProtoMessage()

func (*ManualScaling) ProtoReflect

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

func (*ManualScaling) Reset

func (x *ManualScaling) Reset()

func (*ManualScaling) String

func (x *ManualScaling) String() string

type Model

type Model struct {

	// Required. The name specified for the model when it was created.
	//
	// The model name must be unique within the project it is created in.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The description specified for the model when it was created.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Output only. The default version of the model. This version will be used to
	// handle prediction requests that do not specify a version.
	//
	// You can change the default version by calling
	// [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
	DefaultVersion *Version `protobuf:"bytes,3,opt,name=default_version,json=defaultVersion,proto3" json:"default_version,omitempty"`
	// Optional. The list of regions where the model is going to be deployed.
	// Currently only one region per model is supported.
	// Defaults to 'us-central1' if nothing is set.
	Regions []string `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"`
	// Optional. If true, enables StackDriver Logging for online prediction.
	// Default is false.
	OnlinePredictionLogging bool `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents a machine learning solution.

A model can have multiple versions, each of which is a deployed, trained model ready to receive prediction requests. The model itself is just a container.

func (*Model) Descriptor deprecated

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

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetDefaultVersion

func (x *Model) GetDefaultVersion() *Version

func (*Model) GetDescription

func (x *Model) GetDescription() string

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) GetOnlinePredictionLogging

func (x *Model) GetOnlinePredictionLogging() bool

func (*Model) GetRegions

func (x *Model) GetRegions() []string

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

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

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

type ModelServiceClient

type ModelServiceClient interface {
	// Creates a model which will later contain one or more versions.
	//
	// You must add at least one version before you can request predictions from
	// the model. Add versions by calling
	// [projects.models.versions.create](/ml/reference/rest/v1/projects.models.versions/create).
	CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*Model, error)
	// Lists the models in a project.
	//
	// Each project can contain multiple models, and each model can have multiple
	// versions.
	ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
	// Gets information about a model, including its name, the description (if
	// set), and the default version (if at least one version of the model has
	// been deployed).
	GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error)
	// Deletes a model.
	//
	// You can only delete a model if there are no versions in it. You can delete
	// versions by calling
	// [projects.models.versions.delete](/ml/reference/rest/v1/projects.models.versions/delete).
	DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Creates a new version of a model from a trained TensorFlow model.
	//
	// If the version created in the cloud by this call is the first deployed
	// version of the specified model, it will be made the default version of the
	// model. When you add a version to a model that already has one or more
	// versions, the default version does not automatically change. If you want a
	// new version to be the default, you must call
	// [projects.models.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
	CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Gets basic information about all the versions of a model.
	//
	// If you expect that a model has a lot of versions, or if you need to handle
	// only a limited number of results at a time, you can request that the list
	// be retrieved in batches (called pages):
	ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error)
	// Gets information about a model version.
	//
	// Models can have multiple versions. You can call
	// [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list)
	// to get the same information that this method returns for all of the
	// versions of a model.
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error)
	// Deletes a model version.
	//
	// Each model can have multiple versions deployed and in use at any given
	// time. Use this method to remove a single version.
	//
	// Note: You cannot delete the version that is set as the default version
	// of the model unless it is the only remaining version.
	DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Designates a version to be the default for the model.
	//
	// The default version is used for prediction requests made against the model
	// that don't specify a version.
	//
	// The first version to be created for a model is automatically set as the
	// default. You must make any subsequent changes to the default version
	// setting manually using this method.
	SetDefaultVersion(ctx context.Context, in *SetDefaultVersionRequest, opts ...grpc.CallOption) (*Version, error)
}

ModelServiceClient is the client API for ModelService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ModelServiceServer

type ModelServiceServer interface {
	// Creates a model which will later contain one or more versions.
	//
	// You must add at least one version before you can request predictions from
	// the model. Add versions by calling
	// [projects.models.versions.create](/ml/reference/rest/v1/projects.models.versions/create).
	CreateModel(context.Context, *CreateModelRequest) (*Model, error)
	// Lists the models in a project.
	//
	// Each project can contain multiple models, and each model can have multiple
	// versions.
	ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
	// Gets information about a model, including its name, the description (if
	// set), and the default version (if at least one version of the model has
	// been deployed).
	GetModel(context.Context, *GetModelRequest) (*Model, error)
	// Deletes a model.
	//
	// You can only delete a model if there are no versions in it. You can delete
	// versions by calling
	// [projects.models.versions.delete](/ml/reference/rest/v1/projects.models.versions/delete).
	DeleteModel(context.Context, *DeleteModelRequest) (*longrunning.Operation, error)
	// Creates a new version of a model from a trained TensorFlow model.
	//
	// If the version created in the cloud by this call is the first deployed
	// version of the specified model, it will be made the default version of the
	// model. When you add a version to a model that already has one or more
	// versions, the default version does not automatically change. If you want a
	// new version to be the default, you must call
	// [projects.models.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
	CreateVersion(context.Context, *CreateVersionRequest) (*longrunning.Operation, error)
	// Gets basic information about all the versions of a model.
	//
	// If you expect that a model has a lot of versions, or if you need to handle
	// only a limited number of results at a time, you can request that the list
	// be retrieved in batches (called pages):
	ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)
	// Gets information about a model version.
	//
	// Models can have multiple versions. You can call
	// [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list)
	// to get the same information that this method returns for all of the
	// versions of a model.
	GetVersion(context.Context, *GetVersionRequest) (*Version, error)
	// Deletes a model version.
	//
	// Each model can have multiple versions deployed and in use at any given
	// time. Use this method to remove a single version.
	//
	// Note: You cannot delete the version that is set as the default version
	// of the model unless it is the only remaining version.
	DeleteVersion(context.Context, *DeleteVersionRequest) (*longrunning.Operation, error)
	// Designates a version to be the default for the model.
	//
	// The default version is used for prediction requests made against the model
	// that don't specify a version.
	//
	// The first version to be created for a model is automatically set as the
	// default. You must make any subsequent changes to the default version
	// setting manually using this method.
	SetDefaultVersion(context.Context, *SetDefaultVersionRequest) (*Version, error)
}

ModelServiceServer is the server API for ModelService service.

type OnlinePredictionServiceClient

type OnlinePredictionServiceClient interface {
	// Performs prediction on the data in the request.
	//
	// **** REMOVE FROM GENERATED DOCUMENTATION
	Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
}

OnlinePredictionServiceClient is the client API for OnlinePredictionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type OnlinePredictionServiceServer

type OnlinePredictionServiceServer interface {
	// Performs prediction on the data in the request.
	//
	// **** REMOVE FROM GENERATED DOCUMENTATION
	Predict(context.Context, *PredictRequest) (*httpbody.HttpBody, error)
}

OnlinePredictionServiceServer is the server API for OnlinePredictionService service.

type OperationMetadata

type OperationMetadata struct {

	// The time the operation was submitted.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time operation processing started.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time operation processing completed.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Indicates whether a request to cancel this operation has been made.
	IsCancellationRequested bool `` /* 133-byte string literal not displayed */
	// The operation type.
	OperationType OperationMetadata_OperationType `` /* 157-byte string literal not displayed */
	// Contains the name of the model associated with the operation.
	ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	// Contains the version associated with the operation.
	Version *Version `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Represents the metadata of the long-running operation.

func (*OperationMetadata) Descriptor deprecated

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

Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.

func (*OperationMetadata) GetCreateTime

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

func (*OperationMetadata) GetEndTime

func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp

func (*OperationMetadata) GetIsCancellationRequested

func (x *OperationMetadata) GetIsCancellationRequested() bool

func (*OperationMetadata) GetModelName

func (x *OperationMetadata) GetModelName() string

func (*OperationMetadata) GetOperationType

func (x *OperationMetadata) GetOperationType() OperationMetadata_OperationType

func (*OperationMetadata) GetStartTime

func (x *OperationMetadata) GetStartTime() *timestamppb.Timestamp

func (*OperationMetadata) GetVersion

func (x *OperationMetadata) GetVersion() *Version

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect

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

func (*OperationMetadata) Reset

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String

func (x *OperationMetadata) String() string

type OperationMetadata_OperationType

type OperationMetadata_OperationType int32

The operation type.

const (
	// Unspecified operation type.
	OperationMetadata_OPERATION_TYPE_UNSPECIFIED OperationMetadata_OperationType = 0
	// An operation to create a new version.
	OperationMetadata_CREATE_VERSION OperationMetadata_OperationType = 1
	// An operation to delete an existing version.
	OperationMetadata_DELETE_VERSION OperationMetadata_OperationType = 2
	// An operation to delete an existing model.
	OperationMetadata_DELETE_MODEL OperationMetadata_OperationType = 3
)

func (OperationMetadata_OperationType) Descriptor

func (OperationMetadata_OperationType) Enum

func (OperationMetadata_OperationType) EnumDescriptor deprecated

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

Deprecated: Use OperationMetadata_OperationType.Descriptor instead.

func (OperationMetadata_OperationType) Number

func (OperationMetadata_OperationType) String

func (OperationMetadata_OperationType) Type

type ParameterSpec

type ParameterSpec struct {

	// Required. The parameter name must be unique amongst all ParameterConfigs in
	// a HyperparameterSpec message. E.g., "learning_rate".
	ParameterName string `protobuf:"bytes,1,opt,name=parameter_name,json=parameterName,proto3" json:"parameter_name,omitempty"`
	// Required. The type of the parameter.
	Type ParameterSpec_ParameterType `protobuf:"varint,4,opt,name=type,proto3,enum=google.cloud.ml.v1.ParameterSpec_ParameterType" json:"type,omitempty"`
	// Required if type is `DOUBLE` or `INTEGER`. This field
	// should be unset if type is `CATEGORICAL`. This value should be integers if
	// type is INTEGER.
	MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
	// Required if typeis `DOUBLE` or `INTEGER`. This field
	// should be unset if type is `CATEGORICAL`. This value should be integers if
	// type is `INTEGER`.
	MaxValue float64 `protobuf:"fixed64,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
	// Required if type is `CATEGORICAL`. The list of possible categories.
	CategoricalValues []string `protobuf:"bytes,5,rep,name=categorical_values,json=categoricalValues,proto3" json:"categorical_values,omitempty"`
	// Required if type is `DISCRETE`.
	// A list of feasible points.
	// The list should be in strictly increasing order. For instance, this
	// parameter might have possible settings of 1.5, 2.5, and 4.0. This list
	// should not contain more than 1,000 values.
	DiscreteValues []float64 `protobuf:"fixed64,6,rep,packed,name=discrete_values,json=discreteValues,proto3" json:"discrete_values,omitempty"`
	// Optional. How the parameter should be scaled to the hypercube.
	// Leave unset for categorical parameters.
	// Some kind of scaling is strongly recommended for real or integral
	// parameters (e.g., `UNIT_LINEAR_SCALE`).
	ScaleType ParameterSpec_ScaleType `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents a single hyperparameter to optimize.

func (*ParameterSpec) Descriptor deprecated

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

Deprecated: Use ParameterSpec.ProtoReflect.Descriptor instead.

func (*ParameterSpec) GetCategoricalValues

func (x *ParameterSpec) GetCategoricalValues() []string

func (*ParameterSpec) GetDiscreteValues

func (x *ParameterSpec) GetDiscreteValues() []float64

func (*ParameterSpec) GetMaxValue

func (x *ParameterSpec) GetMaxValue() float64

func (*ParameterSpec) GetMinValue

func (x *ParameterSpec) GetMinValue() float64

func (*ParameterSpec) GetParameterName

func (x *ParameterSpec) GetParameterName() string

func (*ParameterSpec) GetScaleType

func (x *ParameterSpec) GetScaleType() ParameterSpec_ScaleType

func (*ParameterSpec) GetType

func (*ParameterSpec) ProtoMessage

func (*ParameterSpec) ProtoMessage()

func (*ParameterSpec) ProtoReflect

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

func (*ParameterSpec) Reset

func (x *ParameterSpec) Reset()

func (*ParameterSpec) String

func (x *ParameterSpec) String() string

type ParameterSpec_ParameterType

type ParameterSpec_ParameterType int32

The type of the parameter.

const (
	// You must specify a valid type. Using this unspecified type will result in
	// an error.
	ParameterSpec_PARAMETER_TYPE_UNSPECIFIED ParameterSpec_ParameterType = 0
	// Type for real-valued parameters.
	ParameterSpec_DOUBLE ParameterSpec_ParameterType = 1
	// Type for integral parameters.
	ParameterSpec_INTEGER ParameterSpec_ParameterType = 2
	// The parameter is categorical, with a value chosen from the categories
	// field.
	ParameterSpec_CATEGORICAL ParameterSpec_ParameterType = 3
	// The parameter is real valued, with a fixed set of feasible points. If
	// `type==DISCRETE`, feasible_points must be provided, and
	// {`min_value`, `max_value`} will be ignored.
	ParameterSpec_DISCRETE ParameterSpec_ParameterType = 4
)

func (ParameterSpec_ParameterType) Descriptor

func (ParameterSpec_ParameterType) Enum

func (ParameterSpec_ParameterType) EnumDescriptor deprecated

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

Deprecated: Use ParameterSpec_ParameterType.Descriptor instead.

func (ParameterSpec_ParameterType) Number

func (ParameterSpec_ParameterType) String

func (ParameterSpec_ParameterType) Type

type ParameterSpec_ScaleType

type ParameterSpec_ScaleType int32

The type of scaling that should be applied to this parameter.

const (
	// By default, no scaling is applied.
	ParameterSpec_NONE ParameterSpec_ScaleType = 0
	// Scales the feasible space to (0, 1) linearly.
	ParameterSpec_UNIT_LINEAR_SCALE ParameterSpec_ScaleType = 1
	// Scales the feasible space logarithmically to (0, 1). The entire feasible
	// space must be strictly positive.
	ParameterSpec_UNIT_LOG_SCALE ParameterSpec_ScaleType = 2
	// Scales the feasible space "reverse" logarithmically to (0, 1). The result
	// is that values close to the top of the feasible space are spread out more
	// than points near the bottom. The entire feasible space must be strictly
	// positive.
	ParameterSpec_UNIT_REVERSE_LOG_SCALE ParameterSpec_ScaleType = 3
)

func (ParameterSpec_ScaleType) Descriptor

func (ParameterSpec_ScaleType) Enum

func (ParameterSpec_ScaleType) EnumDescriptor deprecated

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

Deprecated: Use ParameterSpec_ScaleType.Descriptor instead.

func (ParameterSpec_ScaleType) Number

func (ParameterSpec_ScaleType) String

func (x ParameterSpec_ScaleType) String() string

func (ParameterSpec_ScaleType) Type

type PredictRequest

type PredictRequest struct {

	// Required. The resource name of a model or a version.
	//
	// Authorization: requires `Viewer` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	//
	// Required. The prediction request body.
	HttpBody *httpbody.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody,proto3" json:"http_body,omitempty"`
	// contains filtered or unexported fields
}

Request for predictions to be issued against a trained model.

The body of the request is a single JSON object with a single top-level field:

<dl>

<dt>instances</dt>
<dd>A JSON array containing values representing the instances to use for
    prediction.</dd>

</dl>

The structure of each element of the instances list is determined by your model's input definition. Instances can include named inputs or can contain only unlabeled values.

Not all data includes named inputs. Some instances will be simple JSON values (boolean, number, or string). However, instances are often lists of simple values, or complex nested lists. Here are some examples of request bodies:

CSV data with each row encoded as a string value: <pre> {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]} </pre> Plain text: <pre> {"instances": ["the quick brown fox", "la bruja le dio"]} </pre> Sentences encoded as lists of words (vectors of strings): <pre>

{
  "instances": [
    ["the","quick","brown"],
    ["la","bruja","le"],
    ...
  ]
}

</pre> Floating point scalar values: <pre> {"instances": [0.0, 1.1, 2.2]} </pre> Vectors of integers: <pre>

{
  "instances": [
    [0, 1, 2],
    [3, 4, 5],
    ...
  ]
}

</pre> Tensors (in this case, two-dimensional tensors): <pre>

{
  "instances": [
    [
      [0, 1, 2],
      [3, 4, 5]
    ],
    ...
  ]
}

</pre> Images can be represented different ways. In this encoding scheme the first two dimensions represent the rows and columns of the image, and the third contains lists (vectors) of the R, G, and B values for each pixel. <pre>

{
  "instances": [
    [
      [
        [138, 30, 66],
        [130, 20, 56],
        ...
      ],
      [
        [126, 38, 61],
        [122, 24, 57],
        ...
      ],
      ...
    ],
    ...
  ]
}

</pre> JSON strings must be encoded as UTF-8. To send binary data, you must base64-encode the data and mark it as binary. To mark a JSON string as binary, replace it with a JSON object with a single attribute named `b64`: <pre>{"b64": "..."} </pre> For example:

Two Serialized tf.Examples (fake data, for illustrative purposes only): <pre> {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]} </pre> Two JPEG image byte strings (fake data, for illustrative purposes only): <pre> {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]} </pre> If your data includes named references, format each instance as a JSON object with the named references as the keys:

JSON input data to be preprocessed: <pre>

{
  "instances": [
    {
      "a": 1.0,
      "b": true,
      "c": "x"
    },
    {
      "a": -2.0,
      "b": false,
      "c": "y"
    }
  ]
}

</pre> Some models have an underlying TensorFlow graph that accepts multiple input tensors. In this case, you should use the names of JSON name/value pairs to identify the input tensors, as shown in the following exmaples:

For a graph with input tensor aliases "tag" (string) and "image" (base64-encoded string): <pre>

{
  "instances": [
    {
      "tag": "beach",
      "image": {"b64": "ASa8asdf"}
    },
    {
      "tag": "car",
      "image": {"b64": "JLK7ljk3"}
    }
  ]
}

</pre> For a graph with input tensor aliases "tag" (string) and "image" (3-dimensional array of 8-bit ints): <pre>

{
  "instances": [
    {
      "tag": "beach",
      "image": [
        [
          [138, 30, 66],
          [130, 20, 56],
          ...
        ],
        [
          [126, 38, 61],
          [122, 24, 57],
          ...
        ],
        ...
      ]
    },
    {
      "tag": "car",
      "image": [
        [
          [255, 0, 102],
          [255, 0, 97],
          ...
        ],
        [
          [254, 1, 101],
          [254, 2, 93],
          ...
        ],
        ...
      ]
    },
    ...
  ]
}

</pre> If the call is successful, the response body will contain one prediction entry per instance in the request body. If prediction fails for any instance, the response body will contain no predictions and will contian a single error entry instead.

func (*PredictRequest) Descriptor deprecated

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

Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.

func (*PredictRequest) GetHttpBody

func (x *PredictRequest) GetHttpBody() *httpbody.HttpBody

func (*PredictRequest) GetName

func (x *PredictRequest) GetName() string

func (*PredictRequest) ProtoMessage

func (*PredictRequest) ProtoMessage()

func (*PredictRequest) ProtoReflect

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

func (*PredictRequest) Reset

func (x *PredictRequest) Reset()

func (*PredictRequest) String

func (x *PredictRequest) String() string

type PredictionInput

type PredictionInput struct {

	// Required. The model or the version to use for prediction.
	//
	// Types that are assignable to ModelVersion:
	//	*PredictionInput_ModelName
	//	*PredictionInput_VersionName
	//	*PredictionInput_Uri
	ModelVersion isPredictionInput_ModelVersion `protobuf_oneof:"model_version"`
	// Required. The format of the input data files.
	DataFormat PredictionInput_DataFormat `` /* 143-byte string literal not displayed */
	// Required. The Google Cloud Storage location of the input data files.
	// May contain wildcards.
	InputPaths []string `protobuf:"bytes,4,rep,name=input_paths,json=inputPaths,proto3" json:"input_paths,omitempty"`
	// Required. The output Google Cloud Storage location.
	OutputPath string `protobuf:"bytes,5,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"`
	// Optional. The maximum number of workers to be used for parallel processing.
	// Defaults to 10 if not specified.
	MaxWorkerCount int64 `protobuf:"varint,6,opt,name=max_worker_count,json=maxWorkerCount,proto3" json:"max_worker_count,omitempty"`
	// Required. The Google Compute Engine region to run the prediction job in.
	Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"`
	// Optional. The Google Cloud ML runtime version to use for this batch
	// prediction. If not set, Google Cloud ML will pick the runtime version used
	// during the CreateVersion request for this model version, or choose the
	// latest stable version when model version information is not available
	// such as when the model is specified by uri.
	RuntimeVersion string `protobuf:"bytes,8,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
	// contains filtered or unexported fields
}

Represents input parameters for a prediction job.

func (*PredictionInput) Descriptor deprecated

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

Deprecated: Use PredictionInput.ProtoReflect.Descriptor instead.

func (*PredictionInput) GetDataFormat

func (x *PredictionInput) GetDataFormat() PredictionInput_DataFormat

func (*PredictionInput) GetInputPaths

func (x *PredictionInput) GetInputPaths() []string

func (*PredictionInput) GetMaxWorkerCount

func (x *PredictionInput) GetMaxWorkerCount() int64

func (*PredictionInput) GetModelName

func (x *PredictionInput) GetModelName() string

func (*PredictionInput) GetModelVersion

func (m *PredictionInput) GetModelVersion() isPredictionInput_ModelVersion

func (*PredictionInput) GetOutputPath

func (x *PredictionInput) GetOutputPath() string

func (*PredictionInput) GetRegion

func (x *PredictionInput) GetRegion() string

func (*PredictionInput) GetRuntimeVersion

func (x *PredictionInput) GetRuntimeVersion() string

func (*PredictionInput) GetUri

func (x *PredictionInput) GetUri() string

func (*PredictionInput) GetVersionName

func (x *PredictionInput) GetVersionName() string

func (*PredictionInput) ProtoMessage

func (*PredictionInput) ProtoMessage()

func (*PredictionInput) ProtoReflect

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

func (*PredictionInput) Reset

func (x *PredictionInput) Reset()

func (*PredictionInput) String

func (x *PredictionInput) String() string

type PredictionInput_DataFormat

type PredictionInput_DataFormat int32

The format used to separate data instances in the source files.

const (
	// Unspecified format.
	PredictionInput_DATA_FORMAT_UNSPECIFIED PredictionInput_DataFormat = 0
	// The source file is a text file with instances separated by the
	// new-line character.
	PredictionInput_TEXT PredictionInput_DataFormat = 1
	// The source file is a TFRecord file.
	PredictionInput_TF_RECORD PredictionInput_DataFormat = 2
	// The source file is a GZIP-compressed TFRecord file.
	PredictionInput_TF_RECORD_GZIP PredictionInput_DataFormat = 3
)

func (PredictionInput_DataFormat) Descriptor

func (PredictionInput_DataFormat) Enum

func (PredictionInput_DataFormat) EnumDescriptor deprecated

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

Deprecated: Use PredictionInput_DataFormat.Descriptor instead.

func (PredictionInput_DataFormat) Number

func (PredictionInput_DataFormat) String

func (PredictionInput_DataFormat) Type

type PredictionInput_ModelName

type PredictionInput_ModelName struct {
	// Use this field if you want to use the default version for the specified
	// model. The string must use the following format:
	//
	// `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"`
	ModelName string `protobuf:"bytes,1,opt,name=model_name,json=modelName,proto3,oneof"`
}

type PredictionInput_Uri

type PredictionInput_Uri struct {
	// Use this field if you want to specify a Google Cloud Storage path for
	// the model to use.
	Uri string `protobuf:"bytes,9,opt,name=uri,proto3,oneof"`
}

type PredictionInput_VersionName

type PredictionInput_VersionName struct {
	// Use this field if you want to specify a version of the model to use. The
	// string is formatted the same way as `model_version`, with the addition
	// of the version information:
	//
	// `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[YOUR_VERSION]</var>"`
	VersionName string `protobuf:"bytes,2,opt,name=version_name,json=versionName,proto3,oneof"`
}

type PredictionOutput

type PredictionOutput struct {

	// The output Google Cloud Storage location provided at the job creation time.
	OutputPath string `protobuf:"bytes,1,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"`
	// The number of generated predictions.
	PredictionCount int64 `protobuf:"varint,2,opt,name=prediction_count,json=predictionCount,proto3" json:"prediction_count,omitempty"`
	// The number of data instances which resulted in errors.
	ErrorCount int64 `protobuf:"varint,3,opt,name=error_count,json=errorCount,proto3" json:"error_count,omitempty"`
	// Node hours used by the batch prediction job.
	NodeHours float64 `protobuf:"fixed64,4,opt,name=node_hours,json=nodeHours,proto3" json:"node_hours,omitempty"`
	// contains filtered or unexported fields
}

Represents results of a prediction job.

func (*PredictionOutput) Descriptor deprecated

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

Deprecated: Use PredictionOutput.ProtoReflect.Descriptor instead.

func (*PredictionOutput) GetErrorCount

func (x *PredictionOutput) GetErrorCount() int64

func (*PredictionOutput) GetNodeHours

func (x *PredictionOutput) GetNodeHours() float64

func (*PredictionOutput) GetOutputPath

func (x *PredictionOutput) GetOutputPath() string

func (*PredictionOutput) GetPredictionCount

func (x *PredictionOutput) GetPredictionCount() int64

func (*PredictionOutput) ProtoMessage

func (*PredictionOutput) ProtoMessage()

func (*PredictionOutput) ProtoReflect

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

func (*PredictionOutput) Reset

func (x *PredictionOutput) Reset()

func (*PredictionOutput) String

func (x *PredictionOutput) String() string

type ProjectManagementServiceClient

type ProjectManagementServiceClient interface {
	// Get the service account information associated with your project. You need
	// this information in order to grant the service account persmissions for
	// the Google Cloud Storage location where you put your model training code
	// for training the model with Google Cloud Machine Learning.
	GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
}

ProjectManagementServiceClient is the client API for ProjectManagementService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ProjectManagementServiceServer

type ProjectManagementServiceServer interface {
	// Get the service account information associated with your project. You need
	// this information in order to grant the service account persmissions for
	// the Google Cloud Storage location where you put your model training code
	// for training the model with Google Cloud Machine Learning.
	GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
}

ProjectManagementServiceServer is the server API for ProjectManagementService service.

type SetDefaultVersionRequest

type SetDefaultVersionRequest struct {

	// Required. The name of the version to make the default for the model. You
	// can get the names of all the versions of a model by calling
	// [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list).
	//
	// Authorization: requires `Editor` role on the parent project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the SetDefaultVersion request.

func (*SetDefaultVersionRequest) Descriptor deprecated

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

Deprecated: Use SetDefaultVersionRequest.ProtoReflect.Descriptor instead.

func (*SetDefaultVersionRequest) GetName

func (x *SetDefaultVersionRequest) GetName() string

func (*SetDefaultVersionRequest) ProtoMessage

func (*SetDefaultVersionRequest) ProtoMessage()

func (*SetDefaultVersionRequest) ProtoReflect

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

func (*SetDefaultVersionRequest) Reset

func (x *SetDefaultVersionRequest) Reset()

func (*SetDefaultVersionRequest) String

func (x *SetDefaultVersionRequest) String() string

type TrainingInput

type TrainingInput struct {

	// Required. Specifies the machine types, the number of replicas for workers
	// and parameter servers.
	ScaleTier TrainingInput_ScaleTier `` /* 137-byte string literal not displayed */
	// Optional. Specifies the type of virtual machine to use for your training
	// job's master worker.
	//
	// The following types are supported:
	//
	// <dl>
	//   <dt>standard</dt>
	//   <dd>
	//   A basic machine configuration suitable for training simple models with
	//   small to moderate datasets.
	//   </dd>
	//   <dt>large_model</dt>
	//   <dd>
	//   A machine with a lot of memory, specially suited for parameter servers
	//   when your model is large (having many hidden layers or layers with very
	//   large numbers of nodes).
	//   </dd>
	//   <dt>complex_model_s</dt>
	//   <dd>
	//   A machine suitable for the master and workers of the cluster when your
	//   model requires more computation than the standard machine can handle
	//   satisfactorily.
	//   </dd>
	//   <dt>complex_model_m</dt>
	//   <dd>
	//   A machine with roughly twice the number of cores and roughly double the
	//   memory of <code suppresswarning="true">complex_model_s</code>.
	//   </dd>
	//   <dt>complex_model_l</dt>
	//   <dd>
	//   A machine with roughly twice the number of cores and roughly double the
	//   memory of <code suppresswarning="true">complex_model_m</code>.
	//   </dd>
	//   <dt>standard_gpu</dt>
	//   <dd>
	//   A machine equivalent to <code suppresswarning="true">standard</code> that
	//   also includes a
	//   <a href="ml/docs/how-tos/using-gpus">
	//   GPU that you can use in your trainer</a>.
	//   </dd>
	//   <dt>complex_model_m_gpu</dt>
	//   <dd>
	//   A machine equivalent to
	//   <code suppresswarning="true">coplex_model_m</code> that also includes
	//   four GPUs.
	//   </dd>
	// </dl>
	//
	// You must set this value when `scaleTier` is set to `CUSTOM`.
	MasterType string `protobuf:"bytes,2,opt,name=master_type,json=masterType,proto3" json:"master_type,omitempty"`
	// Optional. Specifies the type of virtual machine to use for your training
	// job's worker nodes.
	//
	// The supported values are the same as those described in the entry for
	// `masterType`.
	//
	// This value must be present when `scaleTier` is set to `CUSTOM` and
	// `workerCount` is greater than zero.
	WorkerType string `protobuf:"bytes,3,opt,name=worker_type,json=workerType,proto3" json:"worker_type,omitempty"`
	// Optional. Specifies the type of virtual machine to use for your training
	// job's parameter server.
	//
	// The supported values are the same as those described in the entry for
	// `master_type`.
	//
	// This value must be present when `scaleTier` is set to `CUSTOM` and
	// `parameter_server_count` is greater than zero.
	ParameterServerType string `protobuf:"bytes,4,opt,name=parameter_server_type,json=parameterServerType,proto3" json:"parameter_server_type,omitempty"`
	// Optional. The number of worker replicas to use for the training job. Each
	// replica in the cluster will be of the type specified in `worker_type`.
	//
	// This value can only be used when `scale_tier` is set to `CUSTOM`. If you
	// set this value, you must also set `worker_type`.
	WorkerCount int64 `protobuf:"varint,5,opt,name=worker_count,json=workerCount,proto3" json:"worker_count,omitempty"`
	// Optional. The number of parameter server replicas to use for the training
	// job. Each replica in the cluster will be of the type specified in
	// `parameter_server_type`.
	//
	// This value can only be used when `scale_tier` is set to `CUSTOM`.If you
	// set this value, you must also set `parameter_server_type`.
	ParameterServerCount int64 `protobuf:"varint,6,opt,name=parameter_server_count,json=parameterServerCount,proto3" json:"parameter_server_count,omitempty"`
	// Required. The Google Cloud Storage location of the packages with
	// the training program and any additional dependencies.
	PackageUris []string `protobuf:"bytes,7,rep,name=package_uris,json=packageUris,proto3" json:"package_uris,omitempty"`
	// Required. The Python module name to run after installing the packages.
	PythonModule string `protobuf:"bytes,8,opt,name=python_module,json=pythonModule,proto3" json:"python_module,omitempty"`
	// Optional. Command line arguments to pass to the program.
	Args []string `protobuf:"bytes,10,rep,name=args,proto3" json:"args,omitempty"`
	// Optional. The set of Hyperparameters to tune.
	Hyperparameters *HyperparameterSpec `protobuf:"bytes,12,opt,name=hyperparameters,proto3" json:"hyperparameters,omitempty"`
	// Required. The Google Compute Engine region to run the training job in.
	Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"`
	// Optional. A Google Cloud Storage path in which to store training outputs
	// and other data needed for training. This path is passed to your TensorFlow
	// program as the 'job_dir' command-line argument. The benefit of specifying
	// this field is that Cloud ML validates the path for use in training.
	JobDir string `protobuf:"bytes,16,opt,name=job_dir,json=jobDir,proto3" json:"job_dir,omitempty"`
	// Optional. The Google Cloud ML runtime version to use for training.  If not
	// set, Google Cloud ML will choose the latest stable version.
	RuntimeVersion string `protobuf:"bytes,15,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
	// contains filtered or unexported fields
}

Represents input parameters for a training job.

func (*TrainingInput) Descriptor deprecated

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

Deprecated: Use TrainingInput.ProtoReflect.Descriptor instead.

func (*TrainingInput) GetArgs

func (x *TrainingInput) GetArgs() []string

func (*TrainingInput) GetHyperparameters

func (x *TrainingInput) GetHyperparameters() *HyperparameterSpec

func (*TrainingInput) GetJobDir

func (x *TrainingInput) GetJobDir() string

func (*TrainingInput) GetMasterType

func (x *TrainingInput) GetMasterType() string

func (*TrainingInput) GetPackageUris

func (x *TrainingInput) GetPackageUris() []string

func (*TrainingInput) GetParameterServerCount

func (x *TrainingInput) GetParameterServerCount() int64

func (*TrainingInput) GetParameterServerType

func (x *TrainingInput) GetParameterServerType() string

func (*TrainingInput) GetPythonModule

func (x *TrainingInput) GetPythonModule() string

func (*TrainingInput) GetRegion

func (x *TrainingInput) GetRegion() string

func (*TrainingInput) GetRuntimeVersion

func (x *TrainingInput) GetRuntimeVersion() string

func (*TrainingInput) GetScaleTier

func (x *TrainingInput) GetScaleTier() TrainingInput_ScaleTier

func (*TrainingInput) GetWorkerCount

func (x *TrainingInput) GetWorkerCount() int64

func (*TrainingInput) GetWorkerType

func (x *TrainingInput) GetWorkerType() string

func (*TrainingInput) ProtoMessage

func (*TrainingInput) ProtoMessage()

func (*TrainingInput) ProtoReflect

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

func (*TrainingInput) Reset

func (x *TrainingInput) Reset()

func (*TrainingInput) String

func (x *TrainingInput) String() string

type TrainingInput_ScaleTier

type TrainingInput_ScaleTier int32

A scale tier is an abstract representation of the resources Cloud ML will allocate to a training job. When selecting a scale tier for your training job, you should consider the size of your training dataset and the complexity of your model. As the tiers increase, virtual machines are added to handle your job, and the individual machines in the cluster generally have more memory and greater processing power than they do at lower tiers. The number of training units charged per hour of processing increases as tiers get more advanced. Refer to the [pricing guide](/ml/pricing) for more details. Note that in addition to incurring costs, your use of training resources is constrained by the [quota policy](/ml/quota).

const (
	// A single worker instance. This tier is suitable for learning how to use
	// Cloud ML, and for experimenting with new models using small datasets.
	TrainingInput_BASIC TrainingInput_ScaleTier = 0
	// Many workers and a few parameter servers.
	TrainingInput_STANDARD_1 TrainingInput_ScaleTier = 1
	// A large number of workers with many parameter servers.
	TrainingInput_PREMIUM_1 TrainingInput_ScaleTier = 3
	// A single worker instance [with a GPU](ml/docs/how-tos/using-gpus).
	TrainingInput_BASIC_GPU TrainingInput_ScaleTier = 6
	// The CUSTOM tier is not a set tier, but rather enables you to use your
	// own cluster specification. When you use this tier, set values to
	// configure your processing cluster according to these guidelines:
	//
	// *   You _must_ set `TrainingInput.masterType` to specify the type
	//     of machine to use for your master node. This is the only required
	//     setting.
	//
	// *   You _may_ set `TrainingInput.workerCount` to specify the number of
	//     workers to use. If you specify one or more workers, you _must_ also
	//     set `TrainingInput.workerType` to specify the type of machine to use
	//     for your worker nodes.
	//
	// *   You _may_ set `TrainingInput.parameterServerCount` to specify the
	//     number of parameter servers to use. If you specify one or more
	//     parameter servers, you _must_ also set
	//     `TrainingInput.parameterServerType` to specify the type of machine to
	//     use for your parameter servers.
	//
	// Note that all of your workers must use the same machine type, which can
	// be different from your parameter server type and master type. Your
	// parameter servers must likewise use the same machine type, which can be
	// different from your worker type and master type.
	TrainingInput_CUSTOM TrainingInput_ScaleTier = 5
)

func (TrainingInput_ScaleTier) Descriptor

func (TrainingInput_ScaleTier) Enum

func (TrainingInput_ScaleTier) EnumDescriptor deprecated

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

Deprecated: Use TrainingInput_ScaleTier.Descriptor instead.

func (TrainingInput_ScaleTier) Number

func (TrainingInput_ScaleTier) String

func (x TrainingInput_ScaleTier) String() string

func (TrainingInput_ScaleTier) Type

type TrainingOutput

type TrainingOutput struct {

	// The number of hyperparameter tuning trials that completed successfully.
	// Only set for hyperparameter tuning jobs.
	CompletedTrialCount int64 `protobuf:"varint,1,opt,name=completed_trial_count,json=completedTrialCount,proto3" json:"completed_trial_count,omitempty"`
	// Results for individual Hyperparameter trials.
	// Only set for hyperparameter tuning jobs.
	Trials []*HyperparameterOutput `protobuf:"bytes,2,rep,name=trials,proto3" json:"trials,omitempty"`
	// The amount of ML units consumed by the job.
	ConsumedMlUnits float64 `protobuf:"fixed64,3,opt,name=consumed_ml_units,json=consumedMlUnits,proto3" json:"consumed_ml_units,omitempty"`
	// Whether this job is a hyperparameter tuning job.
	IsHyperparameterTuningJob bool `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents results of a training job. Output only.

func (*TrainingOutput) Descriptor deprecated

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

Deprecated: Use TrainingOutput.ProtoReflect.Descriptor instead.

func (*TrainingOutput) GetCompletedTrialCount

func (x *TrainingOutput) GetCompletedTrialCount() int64

func (*TrainingOutput) GetConsumedMlUnits

func (x *TrainingOutput) GetConsumedMlUnits() float64

func (*TrainingOutput) GetIsHyperparameterTuningJob

func (x *TrainingOutput) GetIsHyperparameterTuningJob() bool

func (*TrainingOutput) GetTrials

func (x *TrainingOutput) GetTrials() []*HyperparameterOutput

func (*TrainingOutput) ProtoMessage

func (*TrainingOutput) ProtoMessage()

func (*TrainingOutput) ProtoReflect

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

func (*TrainingOutput) Reset

func (x *TrainingOutput) Reset()

func (*TrainingOutput) String

func (x *TrainingOutput) String() string

type UnimplementedJobServiceServer

type UnimplementedJobServiceServer struct {
}

UnimplementedJobServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedJobServiceServer) CancelJob

func (*UnimplementedJobServiceServer) CreateJob

func (*UnimplementedJobServiceServer) GetJob

func (*UnimplementedJobServiceServer) ListJobs

type UnimplementedModelServiceServer

type UnimplementedModelServiceServer struct {
}

UnimplementedModelServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedModelServiceServer) CreateModel

func (*UnimplementedModelServiceServer) CreateVersion

func (*UnimplementedModelServiceServer) DeleteModel

func (*UnimplementedModelServiceServer) DeleteVersion

func (*UnimplementedModelServiceServer) GetModel

func (*UnimplementedModelServiceServer) GetVersion

func (*UnimplementedModelServiceServer) ListModels

func (*UnimplementedModelServiceServer) ListVersions

func (*UnimplementedModelServiceServer) SetDefaultVersion

type UnimplementedOnlinePredictionServiceServer

type UnimplementedOnlinePredictionServiceServer struct {
}

UnimplementedOnlinePredictionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedOnlinePredictionServiceServer) Predict

type UnimplementedProjectManagementServiceServer

type UnimplementedProjectManagementServiceServer struct {
}

UnimplementedProjectManagementServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProjectManagementServiceServer) GetConfig

type Version

type Version struct {

	// Required.The name specified for the version when it was created.
	//
	// The version name must be unique within the model it is created in.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The description specified for the version when it was created.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Output only. If true, this version will be used to handle prediction
	// requests that do not specify a version.
	//
	// You can change the default version by calling
	// [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
	IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	// Required. The Google Cloud Storage location of the trained model used to
	// create the version. See the
	// [overview of model deployment](/ml/docs/concepts/deployment-overview) for
	// more informaiton.
	//
	// When passing Version to
	// [projects.models.versions.create](/ml/reference/rest/v1/projects.models.versions/create)
	// the model service uses the specified location as the source of the model.
	// Once deployed, the model version is hosted by the prediction service, so
	// this location is useful only as a historical record.
	DeploymentUri string `protobuf:"bytes,4,opt,name=deployment_uri,json=deploymentUri,proto3" json:"deployment_uri,omitempty"`
	// Output only. The time the version was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the version was last used for prediction.
	LastUseTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_use_time,json=lastUseTime,proto3" json:"last_use_time,omitempty"`
	// Optional. The Google Cloud ML runtime version to use for this deployment.
	// If not set, Google Cloud ML will choose a version.
	RuntimeVersion string `protobuf:"bytes,8,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
	// Optional. Manually select the number of nodes to use for serving the
	// model. If unset (i.e., by default), the number of nodes used to serve
	// the model automatically scales with traffic. However, care should be
	// taken to ramp up traffic according to the model's ability to scale. If
	// your model needs to handle bursts of traffic beyond it's ability to
	// scale, it is recommended you set this field appropriately.
	ManualScaling *ManualScaling `protobuf:"bytes,9,opt,name=manual_scaling,json=manualScaling,proto3" json:"manual_scaling,omitempty"`
	// contains filtered or unexported fields
}

Represents a version of the model.

Each version is a trained model deployed in the cloud, ready to handle prediction requests. A model can have multiple versions. You can get information about all of the versions of a given model by calling [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list).

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetCreateTime

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

func (*Version) GetDeploymentUri

func (x *Version) GetDeploymentUri() string

func (*Version) GetDescription

func (x *Version) GetDescription() string

func (*Version) GetIsDefault

func (x *Version) GetIsDefault() bool

func (*Version) GetLastUseTime

func (x *Version) GetLastUseTime() *timestamppb.Timestamp

func (*Version) GetManualScaling

func (x *Version) GetManualScaling() *ManualScaling

func (*Version) GetName

func (x *Version) GetName() string

func (*Version) GetRuntimeVersion

func (x *Version) GetRuntimeVersion() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

Jump to

Keyboard shortcuts

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