genproto: google.golang.org/genproto/googleapis/cloud/ml/v1 Index | Files

package ml

import "google.golang.org/genproto/googleapis/cloud/ml/v1"

Index

Package Files

job_service.pb.go model_service.pb.go operation_metadata.pb.go prediction_service.pb.go project_service.pb.go

Variables

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.

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.

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.

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.

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.

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.

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.

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

func RegisterJobServiceServer Uses

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

func RegisterModelServiceServer Uses

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

func RegisterOnlinePredictionServiceServer Uses

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

func RegisterProjectManagementServiceServer Uses

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

type CancelJobRequest Uses

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 Uses

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

Deprecated: Use CancelJobRequest.ProtoReflect.Descriptor instead.

func (*CancelJobRequest) GetName Uses

func (x *CancelJobRequest) GetName() string

func (*CancelJobRequest) ProtoMessage Uses

func (*CancelJobRequest) ProtoMessage()

func (*CancelJobRequest) ProtoReflect Uses

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

func (*CancelJobRequest) Reset Uses

func (x *CancelJobRequest) Reset()

func (*CancelJobRequest) String Uses

func (x *CancelJobRequest) String() string

type CreateJobRequest Uses

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 Uses

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

Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.

func (*CreateJobRequest) GetJob Uses

func (x *CreateJobRequest) GetJob() *Job

func (*CreateJobRequest) GetParent Uses

func (x *CreateJobRequest) GetParent() string

func (*CreateJobRequest) ProtoMessage Uses

func (*CreateJobRequest) ProtoMessage()

func (*CreateJobRequest) ProtoReflect Uses

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

func (*CreateJobRequest) Reset Uses

func (x *CreateJobRequest) Reset()

func (*CreateJobRequest) String Uses

func (x *CreateJobRequest) String() string

type CreateModelRequest Uses

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 Uses

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

Deprecated: Use CreateModelRequest.ProtoReflect.Descriptor instead.

func (*CreateModelRequest) GetModel Uses

func (x *CreateModelRequest) GetModel() *Model

func (*CreateModelRequest) GetParent Uses

func (x *CreateModelRequest) GetParent() string

func (*CreateModelRequest) ProtoMessage Uses

func (*CreateModelRequest) ProtoMessage()

func (*CreateModelRequest) ProtoReflect Uses

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

func (*CreateModelRequest) Reset Uses

func (x *CreateModelRequest) Reset()

func (*CreateModelRequest) String Uses

func (x *CreateModelRequest) String() string

type CreateVersionRequest Uses

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 Uses

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

Deprecated: Use CreateVersionRequest.ProtoReflect.Descriptor instead.

func (*CreateVersionRequest) GetParent Uses

func (x *CreateVersionRequest) GetParent() string

func (*CreateVersionRequest) GetVersion Uses

func (x *CreateVersionRequest) GetVersion() *Version

func (*CreateVersionRequest) ProtoMessage Uses

func (*CreateVersionRequest) ProtoMessage()

func (*CreateVersionRequest) ProtoReflect Uses

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

func (*CreateVersionRequest) Reset Uses

func (x *CreateVersionRequest) Reset()

func (*CreateVersionRequest) String Uses

func (x *CreateVersionRequest) String() string

type DeleteModelRequest Uses

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 Uses

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

Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.

func (*DeleteModelRequest) GetName Uses

func (x *DeleteModelRequest) GetName() string

func (*DeleteModelRequest) ProtoMessage Uses

func (*DeleteModelRequest) ProtoMessage()

func (*DeleteModelRequest) ProtoReflect Uses

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

func (*DeleteModelRequest) Reset Uses

func (x *DeleteModelRequest) Reset()

func (*DeleteModelRequest) String Uses

func (x *DeleteModelRequest) String() string

type DeleteVersionRequest Uses

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 Uses

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

Deprecated: Use DeleteVersionRequest.ProtoReflect.Descriptor instead.

func (*DeleteVersionRequest) GetName Uses

func (x *DeleteVersionRequest) GetName() string

func (*DeleteVersionRequest) ProtoMessage Uses

func (*DeleteVersionRequest) ProtoMessage()

func (*DeleteVersionRequest) ProtoReflect Uses

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

func (*DeleteVersionRequest) Reset Uses

func (x *DeleteVersionRequest) Reset()

func (*DeleteVersionRequest) String Uses

func (x *DeleteVersionRequest) String() string

type GetConfigRequest Uses

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 Uses

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

Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetConfigRequest) GetName Uses

func (x *GetConfigRequest) GetName() string

func (*GetConfigRequest) ProtoMessage Uses

func (*GetConfigRequest) ProtoMessage()

func (*GetConfigRequest) ProtoReflect Uses

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

func (*GetConfigRequest) Reset Uses

func (x *GetConfigRequest) Reset()

func (*GetConfigRequest) String Uses

func (x *GetConfigRequest) String() string

type GetConfigResponse Uses

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 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject,proto3" json:"service_account_project,omitempty"`
    // contains filtered or unexported fields
}

Returns service account information associated with a project.

func (*GetConfigResponse) Descriptor Uses

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

Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.

func (*GetConfigResponse) GetServiceAccount Uses

func (x *GetConfigResponse) GetServiceAccount() string

func (*GetConfigResponse) GetServiceAccountProject Uses

func (x *GetConfigResponse) GetServiceAccountProject() int64

func (*GetConfigResponse) ProtoMessage Uses

func (*GetConfigResponse) ProtoMessage()

func (*GetConfigResponse) ProtoReflect Uses

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

func (*GetConfigResponse) Reset Uses

func (x *GetConfigResponse) Reset()

func (*GetConfigResponse) String Uses

func (x *GetConfigResponse) String() string

type GetJobRequest Uses

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 Uses

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

Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.

func (*GetJobRequest) GetName Uses

func (x *GetJobRequest) GetName() string

func (*GetJobRequest) ProtoMessage Uses

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) ProtoReflect Uses

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

func (*GetJobRequest) Reset Uses

func (x *GetJobRequest) Reset()

func (*GetJobRequest) String Uses

func (x *GetJobRequest) String() string

type GetModelRequest Uses

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 Uses

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

Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.

func (*GetModelRequest) GetName Uses

func (x *GetModelRequest) GetName() string

func (*GetModelRequest) ProtoMessage Uses

func (*GetModelRequest) ProtoMessage()

func (*GetModelRequest) ProtoReflect Uses

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

func (*GetModelRequest) Reset Uses

func (x *GetModelRequest) Reset()

func (*GetModelRequest) String Uses

func (x *GetModelRequest) String() string

type GetVersionRequest Uses

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 Uses

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

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) GetName Uses

func (x *GetVersionRequest) GetName() string

func (*GetVersionRequest) ProtoMessage Uses

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect Uses

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

func (*GetVersionRequest) Reset Uses

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String Uses

func (x *GetVersionRequest) String() string

type HyperparameterOutput Uses

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 `protobuf:"bytes,2,rep,name=hyperparameters,proto3" json:"hyperparameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // 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 Uses

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

Deprecated: Use HyperparameterOutput.ProtoReflect.Descriptor instead.

func (*HyperparameterOutput) GetAllMetrics Uses

func (x *HyperparameterOutput) GetAllMetrics() []*HyperparameterOutput_HyperparameterMetric

func (*HyperparameterOutput) GetFinalMetric Uses

func (x *HyperparameterOutput) GetFinalMetric() *HyperparameterOutput_HyperparameterMetric

func (*HyperparameterOutput) GetHyperparameters Uses

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

func (*HyperparameterOutput) GetTrialId Uses

func (x *HyperparameterOutput) GetTrialId() string

func (*HyperparameterOutput) ProtoMessage Uses

func (*HyperparameterOutput) ProtoMessage()

func (*HyperparameterOutput) ProtoReflect Uses

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

func (*HyperparameterOutput) Reset Uses

func (x *HyperparameterOutput) Reset()

func (*HyperparameterOutput) String Uses

func (x *HyperparameterOutput) String() string

type HyperparameterOutput_HyperparameterMetric Uses

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 Uses

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

Deprecated: Use HyperparameterOutput_HyperparameterMetric.ProtoReflect.Descriptor instead.

func (*HyperparameterOutput_HyperparameterMetric) GetObjectiveValue Uses

func (x *HyperparameterOutput_HyperparameterMetric) GetObjectiveValue() float64

func (*HyperparameterOutput_HyperparameterMetric) GetTrainingStep Uses

func (x *HyperparameterOutput_HyperparameterMetric) GetTrainingStep() int64

func (*HyperparameterOutput_HyperparameterMetric) ProtoMessage Uses

func (*HyperparameterOutput_HyperparameterMetric) ProtoMessage()

func (*HyperparameterOutput_HyperparameterMetric) ProtoReflect Uses

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

func (*HyperparameterOutput_HyperparameterMetric) Reset Uses

func (x *HyperparameterOutput_HyperparameterMetric) Reset()

func (*HyperparameterOutput_HyperparameterMetric) String Uses

func (x *HyperparameterOutput_HyperparameterMetric) String() string

type HyperparameterSpec Uses

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 `protobuf:"bytes,5,opt,name=hyperparameter_metric_tag,json=hyperparameterMetricTag,proto3" json:"hyperparameter_metric_tag,omitempty"`
    // contains filtered or unexported fields
}

Represents a set of hyperparameters to optimize.

func (*HyperparameterSpec) Descriptor Uses

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

Deprecated: Use HyperparameterSpec.ProtoReflect.Descriptor instead.

func (*HyperparameterSpec) GetGoal Uses

func (x *HyperparameterSpec) GetGoal() HyperparameterSpec_GoalType

func (*HyperparameterSpec) GetHyperparameterMetricTag Uses

func (x *HyperparameterSpec) GetHyperparameterMetricTag() string

func (*HyperparameterSpec) GetMaxParallelTrials Uses

func (x *HyperparameterSpec) GetMaxParallelTrials() int32

func (*HyperparameterSpec) GetMaxTrials Uses

func (x *HyperparameterSpec) GetMaxTrials() int32

func (*HyperparameterSpec) GetParams Uses

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

func (*HyperparameterSpec) ProtoMessage Uses

func (*HyperparameterSpec) ProtoMessage()

func (*HyperparameterSpec) ProtoReflect Uses

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

func (*HyperparameterSpec) Reset Uses

func (x *HyperparameterSpec) Reset()

func (*HyperparameterSpec) String Uses

func (x *HyperparameterSpec) String() string

type HyperparameterSpec_GoalType Uses

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 Uses

func (HyperparameterSpec_GoalType) Descriptor() protoreflect.EnumDescriptor

func (HyperparameterSpec_GoalType) Enum Uses

func (x HyperparameterSpec_GoalType) Enum() *HyperparameterSpec_GoalType

func (HyperparameterSpec_GoalType) EnumDescriptor Uses

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

Deprecated: Use HyperparameterSpec_GoalType.Descriptor instead.

func (HyperparameterSpec_GoalType) Number Uses

func (x HyperparameterSpec_GoalType) Number() protoreflect.EnumNumber

func (HyperparameterSpec_GoalType) String Uses

func (x HyperparameterSpec_GoalType) String() string

func (HyperparameterSpec_GoalType) Type Uses

func (HyperparameterSpec_GoalType) Type() protoreflect.EnumType

type Job Uses

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 *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // Output only. When the job processing was started.
    StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // Output only. When the job processing was completed.
    EndTime *timestamp.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 Uses

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetCreateTime Uses

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

func (*Job) GetEndTime Uses

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

func (*Job) GetErrorMessage Uses

func (x *Job) GetErrorMessage() string

func (*Job) GetInput Uses

func (m *Job) GetInput() isJob_Input

func (*Job) GetJobId Uses

func (x *Job) GetJobId() string

func (*Job) GetOutput Uses

func (m *Job) GetOutput() isJob_Output

func (*Job) GetPredictionInput Uses

func (x *Job) GetPredictionInput() *PredictionInput

func (*Job) GetPredictionOutput Uses

func (x *Job) GetPredictionOutput() *PredictionOutput

func (*Job) GetStartTime Uses

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

func (*Job) GetState Uses

func (x *Job) GetState() Job_State

func (*Job) GetTrainingInput Uses

func (x *Job) GetTrainingInput() *TrainingInput

func (*Job) GetTrainingOutput Uses

func (x *Job) GetTrainingOutput() *TrainingOutput

func (*Job) ProtoMessage Uses

func (*Job) ProtoMessage()

func (*Job) ProtoReflect Uses

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

func (*Job) Reset Uses

func (x *Job) Reset()

func (*Job) String Uses

func (x *Job) String() string

type JobServiceClient Uses

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) (*empty.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 Uses

func NewJobServiceClient(cc grpc.ClientConnInterface) JobServiceClient

type JobServiceServer Uses

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) (*empty.Empty, error)
}

JobServiceServer is the server API for JobService service.

type Job_PredictionInput Uses

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 Uses

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 Uses

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 Uses

func (Job_State) Descriptor() protoreflect.EnumDescriptor

func (Job_State) Enum Uses

func (x Job_State) Enum() *Job_State

func (Job_State) EnumDescriptor Uses

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

Deprecated: Use Job_State.Descriptor instead.

func (Job_State) Number Uses

func (x Job_State) Number() protoreflect.EnumNumber

func (Job_State) String Uses

func (x Job_State) String() string

func (Job_State) Type Uses

func (Job_State) Type() protoreflect.EnumType

type Job_TrainingInput Uses

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 Uses

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

type ListJobsRequest Uses

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 Uses

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

Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.

func (*ListJobsRequest) GetFilter Uses

func (x *ListJobsRequest) GetFilter() string

func (*ListJobsRequest) GetPageSize Uses

func (x *ListJobsRequest) GetPageSize() int32

func (*ListJobsRequest) GetPageToken Uses

func (x *ListJobsRequest) GetPageToken() string

func (*ListJobsRequest) GetParent Uses

func (x *ListJobsRequest) GetParent() string

func (*ListJobsRequest) ProtoMessage Uses

func (*ListJobsRequest) ProtoMessage()

func (*ListJobsRequest) ProtoReflect Uses

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

func (*ListJobsRequest) Reset Uses

func (x *ListJobsRequest) Reset()

func (*ListJobsRequest) String Uses

func (x *ListJobsRequest) String() string

type ListJobsResponse Uses

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 Uses

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

Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.

func (*ListJobsResponse) GetJobs Uses

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

func (*ListJobsResponse) GetNextPageToken Uses

func (x *ListJobsResponse) GetNextPageToken() string

func (*ListJobsResponse) ProtoMessage Uses

func (*ListJobsResponse) ProtoMessage()

func (*ListJobsResponse) ProtoReflect Uses

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

func (*ListJobsResponse) Reset Uses

func (x *ListJobsResponse) Reset()

func (*ListJobsResponse) String Uses

func (x *ListJobsResponse) String() string

type ListModelsRequest Uses

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 Uses

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

Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.

func (*ListModelsRequest) GetPageSize Uses

func (x *ListModelsRequest) GetPageSize() int32

func (*ListModelsRequest) GetPageToken Uses

func (x *ListModelsRequest) GetPageToken() string

func (*ListModelsRequest) GetParent Uses

func (x *ListModelsRequest) GetParent() string

func (*ListModelsRequest) ProtoMessage Uses

func (*ListModelsRequest) ProtoMessage()

func (*ListModelsRequest) ProtoReflect Uses

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

func (*ListModelsRequest) Reset Uses

func (x *ListModelsRequest) Reset()

func (*ListModelsRequest) String Uses

func (x *ListModelsRequest) String() string

type ListModelsResponse Uses

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 Uses

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

Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.

func (*ListModelsResponse) GetModels Uses

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

func (*ListModelsResponse) GetNextPageToken Uses

func (x *ListModelsResponse) GetNextPageToken() string

func (*ListModelsResponse) ProtoMessage Uses

func (*ListModelsResponse) ProtoMessage()

func (*ListModelsResponse) ProtoReflect Uses

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

func (*ListModelsResponse) Reset Uses

func (x *ListModelsResponse) Reset()

func (*ListModelsResponse) String Uses

func (x *ListModelsResponse) String() string

type ListVersionsRequest Uses

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 Uses

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

Deprecated: Use ListVersionsRequest.ProtoReflect.Descriptor instead.

func (*ListVersionsRequest) GetPageSize Uses

func (x *ListVersionsRequest) GetPageSize() int32

func (*ListVersionsRequest) GetPageToken Uses

func (x *ListVersionsRequest) GetPageToken() string

func (*ListVersionsRequest) GetParent Uses

func (x *ListVersionsRequest) GetParent() string

func (*ListVersionsRequest) ProtoMessage Uses

func (*ListVersionsRequest) ProtoMessage()

func (*ListVersionsRequest) ProtoReflect Uses

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

func (*ListVersionsRequest) Reset Uses

func (x *ListVersionsRequest) Reset()

func (*ListVersionsRequest) String Uses

func (x *ListVersionsRequest) String() string

type ListVersionsResponse Uses

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 Uses

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

Deprecated: Use ListVersionsResponse.ProtoReflect.Descriptor instead.

func (*ListVersionsResponse) GetNextPageToken Uses

func (x *ListVersionsResponse) GetNextPageToken() string

func (*ListVersionsResponse) GetVersions Uses

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

func (*ListVersionsResponse) ProtoMessage Uses

func (*ListVersionsResponse) ProtoMessage()

func (*ListVersionsResponse) ProtoReflect Uses

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

func (*ListVersionsResponse) Reset Uses

func (x *ListVersionsResponse) Reset()

func (*ListVersionsResponse) String Uses

func (x *ListVersionsResponse) String() string

type ManualScaling Uses

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 Uses

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

Deprecated: Use ManualScaling.ProtoReflect.Descriptor instead.

func (*ManualScaling) GetNodes Uses

func (x *ManualScaling) GetNodes() int32

func (*ManualScaling) ProtoMessage Uses

func (*ManualScaling) ProtoMessage()

func (*ManualScaling) ProtoReflect Uses

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

func (*ManualScaling) Reset Uses

func (x *ManualScaling) Reset()

func (*ManualScaling) String Uses

func (x *ManualScaling) String() string

type Model Uses

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 `protobuf:"varint,5,opt,name=online_prediction_logging,json=onlinePredictionLogging,proto3" json:"online_prediction_logging,omitempty"`
    // 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 Uses

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

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetDefaultVersion Uses

func (x *Model) GetDefaultVersion() *Version

func (*Model) GetDescription Uses

func (x *Model) GetDescription() string

func (*Model) GetName Uses

func (x *Model) GetName() string

func (*Model) GetOnlinePredictionLogging Uses

func (x *Model) GetOnlinePredictionLogging() bool

func (*Model) GetRegions Uses

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

func (*Model) ProtoMessage Uses

func (*Model) ProtoMessage()

func (*Model) ProtoReflect Uses

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

func (*Model) Reset Uses

func (x *Model) Reset()

func (*Model) String Uses

func (x *Model) String() string

type ModelServiceClient Uses

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.

func NewModelServiceClient Uses

func NewModelServiceClient(cc grpc.ClientConnInterface) ModelServiceClient

type ModelServiceServer Uses

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 Uses

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.

func NewOnlinePredictionServiceClient Uses

func NewOnlinePredictionServiceClient(cc grpc.ClientConnInterface) OnlinePredictionServiceClient

type OnlinePredictionServiceServer Uses

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 Uses

type OperationMetadata struct {

    // The time the operation was submitted.
    CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // The time operation processing started.
    StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // The time operation processing completed.
    EndTime *timestamp.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 `protobuf:"varint,4,opt,name=is_cancellation_requested,json=isCancellationRequested,proto3" json:"is_cancellation_requested,omitempty"`
    // The operation type.
    OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.ml.v1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
    // 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 Uses

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

Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.

func (*OperationMetadata) GetCreateTime Uses

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

func (*OperationMetadata) GetEndTime Uses

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

func (*OperationMetadata) GetIsCancellationRequested Uses

func (x *OperationMetadata) GetIsCancellationRequested() bool

func (*OperationMetadata) GetModelName Uses

func (x *OperationMetadata) GetModelName() string

func (*OperationMetadata) GetOperationType Uses

func (x *OperationMetadata) GetOperationType() OperationMetadata_OperationType

func (*OperationMetadata) GetStartTime Uses

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

func (*OperationMetadata) GetVersion Uses

func (x *OperationMetadata) GetVersion() *Version

func (*OperationMetadata) ProtoMessage Uses

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect Uses

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

func (*OperationMetadata) Reset Uses

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String Uses

func (x *OperationMetadata) String() string

type OperationMetadata_OperationType Uses

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 Uses

func (OperationMetadata_OperationType) Descriptor() protoreflect.EnumDescriptor

func (OperationMetadata_OperationType) Enum Uses

func (x OperationMetadata_OperationType) Enum() *OperationMetadata_OperationType

func (OperationMetadata_OperationType) EnumDescriptor Uses

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

Deprecated: Use OperationMetadata_OperationType.Descriptor instead.

func (OperationMetadata_OperationType) Number Uses

func (x OperationMetadata_OperationType) Number() protoreflect.EnumNumber

func (OperationMetadata_OperationType) String Uses

func (x OperationMetadata_OperationType) String() string

func (OperationMetadata_OperationType) Type Uses

func (OperationMetadata_OperationType) Type() protoreflect.EnumType

type ParameterSpec Uses

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 `protobuf:"varint,7,opt,name=scale_type,json=scaleType,proto3,enum=google.cloud.ml.v1.ParameterSpec_ScaleType" json:"scale_type,omitempty"`
    // contains filtered or unexported fields
}

Represents a single hyperparameter to optimize.

func (*ParameterSpec) Descriptor Uses

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

Deprecated: Use ParameterSpec.ProtoReflect.Descriptor instead.

func (*ParameterSpec) GetCategoricalValues Uses

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

func (*ParameterSpec) GetDiscreteValues Uses

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

func (*ParameterSpec) GetMaxValue Uses

func (x *ParameterSpec) GetMaxValue() float64

func (*ParameterSpec) GetMinValue Uses

func (x *ParameterSpec) GetMinValue() float64

func (*ParameterSpec) GetParameterName Uses

func (x *ParameterSpec) GetParameterName() string

func (*ParameterSpec) GetScaleType Uses

func (x *ParameterSpec) GetScaleType() ParameterSpec_ScaleType

func (*ParameterSpec) GetType Uses

func (x *ParameterSpec) GetType() ParameterSpec_ParameterType

func (*ParameterSpec) ProtoMessage Uses

func (*ParameterSpec) ProtoMessage()

func (*ParameterSpec) ProtoReflect Uses

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

func (*ParameterSpec) Reset Uses

func (x *ParameterSpec) Reset()

func (*ParameterSpec) String Uses

func (x *ParameterSpec) String() string

type ParameterSpec_ParameterType Uses

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 Uses

func (ParameterSpec_ParameterType) Descriptor() protoreflect.EnumDescriptor

func (ParameterSpec_ParameterType) Enum Uses

func (x ParameterSpec_ParameterType) Enum() *ParameterSpec_ParameterType

func (ParameterSpec_ParameterType) EnumDescriptor Uses

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

Deprecated: Use ParameterSpec_ParameterType.Descriptor instead.

func (ParameterSpec_ParameterType) Number Uses

func (x ParameterSpec_ParameterType) Number() protoreflect.EnumNumber

func (ParameterSpec_ParameterType) String Uses

func (x ParameterSpec_ParameterType) String() string

func (ParameterSpec_ParameterType) Type Uses

func (ParameterSpec_ParameterType) Type() protoreflect.EnumType

type ParameterSpec_ScaleType Uses

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 Uses

func (ParameterSpec_ScaleType) Descriptor() protoreflect.EnumDescriptor

func (ParameterSpec_ScaleType) Enum Uses

func (x ParameterSpec_ScaleType) Enum() *ParameterSpec_ScaleType

func (ParameterSpec_ScaleType) EnumDescriptor Uses

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

Deprecated: Use ParameterSpec_ScaleType.Descriptor instead.

func (ParameterSpec_ScaleType) Number Uses

func (x ParameterSpec_ScaleType) Number() protoreflect.EnumNumber

func (ParameterSpec_ScaleType) String Uses

func (x ParameterSpec_ScaleType) String() string

func (ParameterSpec_ScaleType) Type Uses

func (ParameterSpec_ScaleType) Type() protoreflect.EnumType

type PredictRequest Uses

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 Uses

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

Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.

func (*PredictRequest) GetHttpBody Uses

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

func (*PredictRequest) GetName Uses

func (x *PredictRequest) GetName() string

func (*PredictRequest) ProtoMessage Uses

func (*PredictRequest) ProtoMessage()

func (*PredictRequest) ProtoReflect Uses

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

func (*PredictRequest) Reset Uses

func (x *PredictRequest) Reset()

func (*PredictRequest) String Uses

func (x *PredictRequest) String() string

type PredictionInput Uses

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 `protobuf:"varint,3,opt,name=data_format,json=dataFormat,proto3,enum=google.cloud.ml.v1.PredictionInput_DataFormat" json:"data_format,omitempty"`
    // 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 Uses

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

Deprecated: Use PredictionInput.ProtoReflect.Descriptor instead.

func (*PredictionInput) GetDataFormat Uses

func (x *PredictionInput) GetDataFormat() PredictionInput_DataFormat

func (*PredictionInput) GetInputPaths Uses

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

func (*PredictionInput) GetMaxWorkerCount Uses

func (x *PredictionInput) GetMaxWorkerCount() int64

func (*PredictionInput) GetModelName Uses

func (x *PredictionInput) GetModelName() string

func (*PredictionInput) GetModelVersion Uses

func (m *PredictionInput) GetModelVersion() isPredictionInput_ModelVersion

func (*PredictionInput) GetOutputPath Uses

func (x *PredictionInput) GetOutputPath() string

func (*PredictionInput) GetRegion Uses

func (x *PredictionInput) GetRegion() string

func (*PredictionInput) GetRuntimeVersion Uses

func (x *PredictionInput) GetRuntimeVersion() string

func (*PredictionInput) GetUri Uses

func (x *PredictionInput) GetUri() string

func (*PredictionInput) GetVersionName Uses

func (x *PredictionInput) GetVersionName() string

func (*PredictionInput) ProtoMessage Uses

func (*PredictionInput) ProtoMessage()

func (*PredictionInput) ProtoReflect Uses

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

func (*PredictionInput) Reset Uses

func (x *PredictionInput) Reset()

func (*PredictionInput) String Uses

func (x *PredictionInput) String() string

type PredictionInput_DataFormat Uses

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 Uses

func (PredictionInput_DataFormat) Descriptor() protoreflect.EnumDescriptor

func (PredictionInput_DataFormat) Enum Uses

func (x PredictionInput_DataFormat) Enum() *PredictionInput_DataFormat

func (PredictionInput_DataFormat) EnumDescriptor Uses

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

Deprecated: Use PredictionInput_DataFormat.Descriptor instead.

func (PredictionInput_DataFormat) Number Uses

func (x PredictionInput_DataFormat) Number() protoreflect.EnumNumber

func (PredictionInput_DataFormat) String Uses

func (x PredictionInput_DataFormat) String() string

func (PredictionInput_DataFormat) Type Uses

func (PredictionInput_DataFormat) Type() protoreflect.EnumType

type PredictionInput_ModelName Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

Deprecated: Use PredictionOutput.ProtoReflect.Descriptor instead.

func (*PredictionOutput) GetErrorCount Uses

func (x *PredictionOutput) GetErrorCount() int64

func (*PredictionOutput) GetNodeHours Uses

func (x *PredictionOutput) GetNodeHours() float64

func (*PredictionOutput) GetOutputPath Uses

func (x *PredictionOutput) GetOutputPath() string

func (*PredictionOutput) GetPredictionCount Uses

func (x *PredictionOutput) GetPredictionCount() int64

func (*PredictionOutput) ProtoMessage Uses

func (*PredictionOutput) ProtoMessage()

func (*PredictionOutput) ProtoReflect Uses

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

func (*PredictionOutput) Reset Uses

func (x *PredictionOutput) Reset()

func (*PredictionOutput) String Uses

func (x *PredictionOutput) String() string

type ProjectManagementServiceClient Uses

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.

func NewProjectManagementServiceClient Uses

func NewProjectManagementServiceClient(cc grpc.ClientConnInterface) ProjectManagementServiceClient

type ProjectManagementServiceServer Uses

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 Uses

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 Uses

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

Deprecated: Use SetDefaultVersionRequest.ProtoReflect.Descriptor instead.

func (*SetDefaultVersionRequest) GetName Uses

func (x *SetDefaultVersionRequest) GetName() string

func (*SetDefaultVersionRequest) ProtoMessage Uses

func (*SetDefaultVersionRequest) ProtoMessage()

func (*SetDefaultVersionRequest) ProtoReflect Uses

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

func (*SetDefaultVersionRequest) Reset Uses

func (x *SetDefaultVersionRequest) Reset()

func (*SetDefaultVersionRequest) String Uses

func (x *SetDefaultVersionRequest) String() string

type TrainingInput Uses

type TrainingInput struct {

    // Required. Specifies the machine types, the number of replicas for workers
    // and parameter servers.
    ScaleTier TrainingInput_ScaleTier `protobuf:"varint,1,opt,name=scale_tier,json=scaleTier,proto3,enum=google.cloud.ml.v1.TrainingInput_ScaleTier" json:"scale_tier,omitempty"`
    // 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 Uses

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

Deprecated: Use TrainingInput.ProtoReflect.Descriptor instead.

func (*TrainingInput) GetArgs Uses

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

func (*TrainingInput) GetHyperparameters Uses

func (x *TrainingInput) GetHyperparameters() *HyperparameterSpec

func (*TrainingInput) GetJobDir Uses

func (x *TrainingInput) GetJobDir() string

func (*TrainingInput) GetMasterType Uses

func (x *TrainingInput) GetMasterType() string

func (*TrainingInput) GetPackageUris Uses

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

func (*TrainingInput) GetParameterServerCount Uses

func (x *TrainingInput) GetParameterServerCount() int64

func (*TrainingInput) GetParameterServerType Uses

func (x *TrainingInput) GetParameterServerType() string

func (*TrainingInput) GetPythonModule Uses

func (x *TrainingInput) GetPythonModule() string

func (*TrainingInput) GetRegion Uses

func (x *TrainingInput) GetRegion() string

func (*TrainingInput) GetRuntimeVersion Uses

func (x *TrainingInput) GetRuntimeVersion() string

func (*TrainingInput) GetScaleTier Uses

func (x *TrainingInput) GetScaleTier() TrainingInput_ScaleTier

func (*TrainingInput) GetWorkerCount Uses

func (x *TrainingInput) GetWorkerCount() int64

func (*TrainingInput) GetWorkerType Uses

func (x *TrainingInput) GetWorkerType() string

func (*TrainingInput) ProtoMessage Uses

func (*TrainingInput) ProtoMessage()

func (*TrainingInput) ProtoReflect Uses

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

func (*TrainingInput) Reset Uses

func (x *TrainingInput) Reset()

func (*TrainingInput) String Uses

func (x *TrainingInput) String() string

type TrainingInput_ScaleTier Uses

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 Uses

func (TrainingInput_ScaleTier) Descriptor() protoreflect.EnumDescriptor

func (TrainingInput_ScaleTier) Enum Uses

func (x TrainingInput_ScaleTier) Enum() *TrainingInput_ScaleTier

func (TrainingInput_ScaleTier) EnumDescriptor Uses

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

Deprecated: Use TrainingInput_ScaleTier.Descriptor instead.

func (TrainingInput_ScaleTier) Number Uses

func (x TrainingInput_ScaleTier) Number() protoreflect.EnumNumber

func (TrainingInput_ScaleTier) String Uses

func (x TrainingInput_ScaleTier) String() string

func (TrainingInput_ScaleTier) Type Uses

func (TrainingInput_ScaleTier) Type() protoreflect.EnumType

type TrainingOutput Uses

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 `protobuf:"varint,4,opt,name=is_hyperparameter_tuning_job,json=isHyperparameterTuningJob,proto3" json:"is_hyperparameter_tuning_job,omitempty"`
    // contains filtered or unexported fields
}

Represents results of a training job. Output only.

func (*TrainingOutput) Descriptor Uses

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

Deprecated: Use TrainingOutput.ProtoReflect.Descriptor instead.

func (*TrainingOutput) GetCompletedTrialCount Uses

func (x *TrainingOutput) GetCompletedTrialCount() int64

func (*TrainingOutput) GetConsumedMlUnits Uses

func (x *TrainingOutput) GetConsumedMlUnits() float64

func (*TrainingOutput) GetIsHyperparameterTuningJob Uses

func (x *TrainingOutput) GetIsHyperparameterTuningJob() bool

func (*TrainingOutput) GetTrials Uses

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

func (*TrainingOutput) ProtoMessage Uses

func (*TrainingOutput) ProtoMessage()

func (*TrainingOutput) ProtoReflect Uses

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

func (*TrainingOutput) Reset Uses

func (x *TrainingOutput) Reset()

func (*TrainingOutput) String Uses

func (x *TrainingOutput) String() string

type UnimplementedJobServiceServer Uses

type UnimplementedJobServiceServer struct {
}

UnimplementedJobServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedJobServiceServer) CancelJob Uses

func (*UnimplementedJobServiceServer) CancelJob(context.Context, *CancelJobRequest) (*empty.Empty, error)

func (*UnimplementedJobServiceServer) CreateJob Uses

func (*UnimplementedJobServiceServer) CreateJob(context.Context, *CreateJobRequest) (*Job, error)

func (*UnimplementedJobServiceServer) GetJob Uses

func (*UnimplementedJobServiceServer) GetJob(context.Context, *GetJobRequest) (*Job, error)

func (*UnimplementedJobServiceServer) ListJobs Uses

func (*UnimplementedJobServiceServer) ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)

type UnimplementedModelServiceServer Uses

type UnimplementedModelServiceServer struct {
}

UnimplementedModelServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedModelServiceServer) CreateModel Uses

func (*UnimplementedModelServiceServer) CreateModel(context.Context, *CreateModelRequest) (*Model, error)

func (*UnimplementedModelServiceServer) CreateVersion Uses

func (*UnimplementedModelServiceServer) CreateVersion(context.Context, *CreateVersionRequest) (*longrunning.Operation, error)

func (*UnimplementedModelServiceServer) DeleteModel Uses

func (*UnimplementedModelServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*longrunning.Operation, error)

func (*UnimplementedModelServiceServer) DeleteVersion Uses

func (*UnimplementedModelServiceServer) DeleteVersion(context.Context, *DeleteVersionRequest) (*longrunning.Operation, error)

func (*UnimplementedModelServiceServer) GetModel Uses

func (*UnimplementedModelServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)

func (*UnimplementedModelServiceServer) GetVersion Uses

func (*UnimplementedModelServiceServer) GetVersion(context.Context, *GetVersionRequest) (*Version, error)

func (*UnimplementedModelServiceServer) ListModels Uses

func (*UnimplementedModelServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)

func (*UnimplementedModelServiceServer) ListVersions Uses

func (*UnimplementedModelServiceServer) ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)

func (*UnimplementedModelServiceServer) SetDefaultVersion Uses

func (*UnimplementedModelServiceServer) SetDefaultVersion(context.Context, *SetDefaultVersionRequest) (*Version, error)

type UnimplementedOnlinePredictionServiceServer Uses

type UnimplementedOnlinePredictionServiceServer struct {
}

UnimplementedOnlinePredictionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedOnlinePredictionServiceServer) Predict Uses

func (*UnimplementedOnlinePredictionServiceServer) Predict(context.Context, *PredictRequest) (*httpbody.HttpBody, error)

type UnimplementedProjectManagementServiceServer Uses

type UnimplementedProjectManagementServiceServer struct {
}

UnimplementedProjectManagementServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProjectManagementServiceServer) GetConfig Uses

func (*UnimplementedProjectManagementServiceServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)

type Version Uses

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 *timestamp.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 *timestamp.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 Uses

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetCreateTime Uses

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

func (*Version) GetDeploymentUri Uses

func (x *Version) GetDeploymentUri() string

func (*Version) GetDescription Uses

func (x *Version) GetDescription() string

func (*Version) GetIsDefault Uses

func (x *Version) GetIsDefault() bool

func (*Version) GetLastUseTime Uses

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

func (*Version) GetManualScaling Uses

func (x *Version) GetManualScaling() *ManualScaling

func (*Version) GetName Uses

func (x *Version) GetName() string

func (*Version) GetRuntimeVersion Uses

func (x *Version) GetRuntimeVersion() string

func (*Version) ProtoMessage Uses

func (*Version) ProtoMessage()

func (*Version) ProtoReflect Uses

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

func (*Version) Reset Uses

func (x *Version) Reset()

func (*Version) String Uses

func (x *Version) String() string

Package ml imports 15 packages (graph). Updated 2020-07-22. Refresh now. Tools for package owners.