Documentation ¶
Index ¶
- Variables
- func RegisterJobServiceServer(s *grpc.Server, srv JobServiceServer)
- func RegisterModelServiceServer(s *grpc.Server, srv ModelServiceServer)
- func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer)
- func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer)
- type CancelJobRequest
- func (*CancelJobRequest) Descriptor() ([]byte, []int)
- func (m *CancelJobRequest) GetName() string
- func (*CancelJobRequest) ProtoMessage()
- func (m *CancelJobRequest) Reset()
- func (m *CancelJobRequest) String() string
- func (m *CancelJobRequest) XXX_DiscardUnknown()
- func (m *CancelJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CancelJobRequest) XXX_Merge(src proto.Message)
- func (m *CancelJobRequest) XXX_Size() int
- func (m *CancelJobRequest) XXX_Unmarshal(b []byte) error
- type CreateJobRequest
- func (*CreateJobRequest) Descriptor() ([]byte, []int)
- func (m *CreateJobRequest) GetJob() *Job
- func (m *CreateJobRequest) GetParent() string
- func (*CreateJobRequest) ProtoMessage()
- func (m *CreateJobRequest) Reset()
- func (m *CreateJobRequest) String() string
- func (m *CreateJobRequest) XXX_DiscardUnknown()
- func (m *CreateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateJobRequest) XXX_Merge(src proto.Message)
- func (m *CreateJobRequest) XXX_Size() int
- func (m *CreateJobRequest) XXX_Unmarshal(b []byte) error
- type CreateModelRequest
- func (*CreateModelRequest) Descriptor() ([]byte, []int)
- func (m *CreateModelRequest) GetModel() *Model
- func (m *CreateModelRequest) GetParent() string
- func (*CreateModelRequest) ProtoMessage()
- func (m *CreateModelRequest) Reset()
- func (m *CreateModelRequest) String() string
- func (m *CreateModelRequest) XXX_DiscardUnknown()
- func (m *CreateModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateModelRequest) XXX_Merge(src proto.Message)
- func (m *CreateModelRequest) XXX_Size() int
- func (m *CreateModelRequest) XXX_Unmarshal(b []byte) error
- type CreateVersionRequest
- func (*CreateVersionRequest) Descriptor() ([]byte, []int)
- func (m *CreateVersionRequest) GetParent() string
- func (m *CreateVersionRequest) GetVersion() *Version
- func (*CreateVersionRequest) ProtoMessage()
- func (m *CreateVersionRequest) Reset()
- func (m *CreateVersionRequest) String() string
- func (m *CreateVersionRequest) XXX_DiscardUnknown()
- func (m *CreateVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateVersionRequest) XXX_Merge(src proto.Message)
- func (m *CreateVersionRequest) XXX_Size() int
- func (m *CreateVersionRequest) XXX_Unmarshal(b []byte) error
- type DeleteModelRequest
- func (*DeleteModelRequest) Descriptor() ([]byte, []int)
- func (m *DeleteModelRequest) GetName() string
- func (*DeleteModelRequest) ProtoMessage()
- func (m *DeleteModelRequest) Reset()
- func (m *DeleteModelRequest) String() string
- func (m *DeleteModelRequest) XXX_DiscardUnknown()
- func (m *DeleteModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteModelRequest) XXX_Merge(src proto.Message)
- func (m *DeleteModelRequest) XXX_Size() int
- func (m *DeleteModelRequest) XXX_Unmarshal(b []byte) error
- type DeleteVersionRequest
- func (*DeleteVersionRequest) Descriptor() ([]byte, []int)
- func (m *DeleteVersionRequest) GetName() string
- func (*DeleteVersionRequest) ProtoMessage()
- func (m *DeleteVersionRequest) Reset()
- func (m *DeleteVersionRequest) String() string
- func (m *DeleteVersionRequest) XXX_DiscardUnknown()
- func (m *DeleteVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteVersionRequest) XXX_Merge(src proto.Message)
- func (m *DeleteVersionRequest) XXX_Size() int
- func (m *DeleteVersionRequest) XXX_Unmarshal(b []byte) error
- type GetConfigRequest
- func (*GetConfigRequest) Descriptor() ([]byte, []int)
- func (m *GetConfigRequest) GetName() string
- func (*GetConfigRequest) ProtoMessage()
- func (m *GetConfigRequest) Reset()
- func (m *GetConfigRequest) String() string
- func (m *GetConfigRequest) XXX_DiscardUnknown()
- func (m *GetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetConfigRequest) XXX_Merge(src proto.Message)
- func (m *GetConfigRequest) XXX_Size() int
- func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error
- type GetConfigResponse
- func (*GetConfigResponse) Descriptor() ([]byte, []int)
- func (m *GetConfigResponse) GetServiceAccount() string
- func (m *GetConfigResponse) GetServiceAccountProject() int64
- func (*GetConfigResponse) ProtoMessage()
- func (m *GetConfigResponse) Reset()
- func (m *GetConfigResponse) String() string
- func (m *GetConfigResponse) XXX_DiscardUnknown()
- func (m *GetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetConfigResponse) XXX_Merge(src proto.Message)
- func (m *GetConfigResponse) XXX_Size() int
- func (m *GetConfigResponse) XXX_Unmarshal(b []byte) error
- type GetJobRequest
- func (*GetJobRequest) Descriptor() ([]byte, []int)
- func (m *GetJobRequest) GetName() string
- func (*GetJobRequest) ProtoMessage()
- func (m *GetJobRequest) Reset()
- func (m *GetJobRequest) String() string
- func (m *GetJobRequest) XXX_DiscardUnknown()
- func (m *GetJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetJobRequest) XXX_Merge(src proto.Message)
- func (m *GetJobRequest) XXX_Size() int
- func (m *GetJobRequest) XXX_Unmarshal(b []byte) error
- type GetModelRequest
- func (*GetModelRequest) Descriptor() ([]byte, []int)
- func (m *GetModelRequest) GetName() string
- func (*GetModelRequest) ProtoMessage()
- func (m *GetModelRequest) Reset()
- func (m *GetModelRequest) String() string
- func (m *GetModelRequest) XXX_DiscardUnknown()
- func (m *GetModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetModelRequest) XXX_Merge(src proto.Message)
- func (m *GetModelRequest) XXX_Size() int
- func (m *GetModelRequest) XXX_Unmarshal(b []byte) error
- type GetVersionRequest
- func (*GetVersionRequest) Descriptor() ([]byte, []int)
- func (m *GetVersionRequest) GetName() string
- func (*GetVersionRequest) ProtoMessage()
- func (m *GetVersionRequest) Reset()
- func (m *GetVersionRequest) String() string
- func (m *GetVersionRequest) XXX_DiscardUnknown()
- func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetVersionRequest) XXX_Merge(src proto.Message)
- func (m *GetVersionRequest) XXX_Size() int
- func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error
- type HyperparameterOutput
- func (*HyperparameterOutput) Descriptor() ([]byte, []int)
- func (m *HyperparameterOutput) GetAllMetrics() []*HyperparameterOutput_HyperparameterMetric
- func (m *HyperparameterOutput) GetFinalMetric() *HyperparameterOutput_HyperparameterMetric
- func (m *HyperparameterOutput) GetHyperparameters() map[string]string
- func (m *HyperparameterOutput) GetTrialId() string
- func (*HyperparameterOutput) ProtoMessage()
- func (m *HyperparameterOutput) Reset()
- func (m *HyperparameterOutput) String() string
- func (m *HyperparameterOutput) XXX_DiscardUnknown()
- func (m *HyperparameterOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HyperparameterOutput) XXX_Merge(src proto.Message)
- func (m *HyperparameterOutput) XXX_Size() int
- func (m *HyperparameterOutput) XXX_Unmarshal(b []byte) error
- type HyperparameterOutput_HyperparameterMetric
- func (*HyperparameterOutput_HyperparameterMetric) Descriptor() ([]byte, []int)
- func (m *HyperparameterOutput_HyperparameterMetric) GetObjectiveValue() float64
- func (m *HyperparameterOutput_HyperparameterMetric) GetTrainingStep() int64
- func (*HyperparameterOutput_HyperparameterMetric) ProtoMessage()
- func (m *HyperparameterOutput_HyperparameterMetric) Reset()
- func (m *HyperparameterOutput_HyperparameterMetric) String() string
- func (m *HyperparameterOutput_HyperparameterMetric) XXX_DiscardUnknown()
- func (m *HyperparameterOutput_HyperparameterMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HyperparameterOutput_HyperparameterMetric) XXX_Merge(src proto.Message)
- func (m *HyperparameterOutput_HyperparameterMetric) XXX_Size() int
- func (m *HyperparameterOutput_HyperparameterMetric) XXX_Unmarshal(b []byte) error
- type HyperparameterSpec
- func (*HyperparameterSpec) Descriptor() ([]byte, []int)
- func (m *HyperparameterSpec) GetGoal() HyperparameterSpec_GoalType
- func (m *HyperparameterSpec) GetHyperparameterMetricTag() string
- func (m *HyperparameterSpec) GetMaxParallelTrials() int32
- func (m *HyperparameterSpec) GetMaxTrials() int32
- func (m *HyperparameterSpec) GetParams() []*ParameterSpec
- func (*HyperparameterSpec) ProtoMessage()
- func (m *HyperparameterSpec) Reset()
- func (m *HyperparameterSpec) String() string
- func (m *HyperparameterSpec) XXX_DiscardUnknown()
- func (m *HyperparameterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HyperparameterSpec) XXX_Merge(src proto.Message)
- func (m *HyperparameterSpec) XXX_Size() int
- func (m *HyperparameterSpec) XXX_Unmarshal(b []byte) error
- type HyperparameterSpec_GoalType
- type Job
- func (*Job) Descriptor() ([]byte, []int)
- func (m *Job) GetCreateTime() *timestamp.Timestamp
- func (m *Job) GetEndTime() *timestamp.Timestamp
- func (m *Job) GetErrorMessage() string
- func (m *Job) GetInput() isJob_Input
- func (m *Job) GetJobId() string
- func (m *Job) GetOutput() isJob_Output
- func (m *Job) GetPredictionInput() *PredictionInput
- func (m *Job) GetPredictionOutput() *PredictionOutput
- func (m *Job) GetStartTime() *timestamp.Timestamp
- func (m *Job) GetState() Job_State
- func (m *Job) GetTrainingInput() *TrainingInput
- func (m *Job) GetTrainingOutput() *TrainingOutput
- func (*Job) ProtoMessage()
- func (m *Job) Reset()
- func (m *Job) String() string
- func (m *Job) XXX_DiscardUnknown()
- func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Job) XXX_Merge(src proto.Message)
- func (*Job) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Job) XXX_Size() int
- func (m *Job) XXX_Unmarshal(b []byte) error
- type JobServiceClient
- type JobServiceServer
- type Job_PredictionInput
- type Job_PredictionOutput
- type Job_State
- type Job_TrainingInput
- type Job_TrainingOutput
- type ListJobsRequest
- func (*ListJobsRequest) Descriptor() ([]byte, []int)
- func (m *ListJobsRequest) GetFilter() string
- func (m *ListJobsRequest) GetPageSize() int32
- func (m *ListJobsRequest) GetPageToken() string
- func (m *ListJobsRequest) GetParent() string
- func (*ListJobsRequest) ProtoMessage()
- func (m *ListJobsRequest) Reset()
- func (m *ListJobsRequest) String() string
- func (m *ListJobsRequest) XXX_DiscardUnknown()
- func (m *ListJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListJobsRequest) XXX_Merge(src proto.Message)
- func (m *ListJobsRequest) XXX_Size() int
- func (m *ListJobsRequest) XXX_Unmarshal(b []byte) error
- type ListJobsResponse
- func (*ListJobsResponse) Descriptor() ([]byte, []int)
- func (m *ListJobsResponse) GetJobs() []*Job
- func (m *ListJobsResponse) GetNextPageToken() string
- func (*ListJobsResponse) ProtoMessage()
- func (m *ListJobsResponse) Reset()
- func (m *ListJobsResponse) String() string
- func (m *ListJobsResponse) XXX_DiscardUnknown()
- func (m *ListJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListJobsResponse) XXX_Merge(src proto.Message)
- func (m *ListJobsResponse) XXX_Size() int
- func (m *ListJobsResponse) XXX_Unmarshal(b []byte) error
- type ListModelsRequest
- func (*ListModelsRequest) Descriptor() ([]byte, []int)
- func (m *ListModelsRequest) GetPageSize() int32
- func (m *ListModelsRequest) GetPageToken() string
- func (m *ListModelsRequest) GetParent() string
- func (*ListModelsRequest) ProtoMessage()
- func (m *ListModelsRequest) Reset()
- func (m *ListModelsRequest) String() string
- func (m *ListModelsRequest) XXX_DiscardUnknown()
- func (m *ListModelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListModelsRequest) XXX_Merge(src proto.Message)
- func (m *ListModelsRequest) XXX_Size() int
- func (m *ListModelsRequest) XXX_Unmarshal(b []byte) error
- type ListModelsResponse
- func (*ListModelsResponse) Descriptor() ([]byte, []int)
- func (m *ListModelsResponse) GetModels() []*Model
- func (m *ListModelsResponse) GetNextPageToken() string
- func (*ListModelsResponse) ProtoMessage()
- func (m *ListModelsResponse) Reset()
- func (m *ListModelsResponse) String() string
- func (m *ListModelsResponse) XXX_DiscardUnknown()
- func (m *ListModelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListModelsResponse) XXX_Merge(src proto.Message)
- func (m *ListModelsResponse) XXX_Size() int
- func (m *ListModelsResponse) XXX_Unmarshal(b []byte) error
- type ListVersionsRequest
- func (*ListVersionsRequest) Descriptor() ([]byte, []int)
- func (m *ListVersionsRequest) GetPageSize() int32
- func (m *ListVersionsRequest) GetPageToken() string
- func (m *ListVersionsRequest) GetParent() string
- func (*ListVersionsRequest) ProtoMessage()
- func (m *ListVersionsRequest) Reset()
- func (m *ListVersionsRequest) String() string
- func (m *ListVersionsRequest) XXX_DiscardUnknown()
- func (m *ListVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListVersionsRequest) XXX_Merge(src proto.Message)
- func (m *ListVersionsRequest) XXX_Size() int
- func (m *ListVersionsRequest) XXX_Unmarshal(b []byte) error
- type ListVersionsResponse
- func (*ListVersionsResponse) Descriptor() ([]byte, []int)
- func (m *ListVersionsResponse) GetNextPageToken() string
- func (m *ListVersionsResponse) GetVersions() []*Version
- func (*ListVersionsResponse) ProtoMessage()
- func (m *ListVersionsResponse) Reset()
- func (m *ListVersionsResponse) String() string
- func (m *ListVersionsResponse) XXX_DiscardUnknown()
- func (m *ListVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListVersionsResponse) XXX_Merge(src proto.Message)
- func (m *ListVersionsResponse) XXX_Size() int
- func (m *ListVersionsResponse) XXX_Unmarshal(b []byte) error
- type ManualScaling
- func (*ManualScaling) Descriptor() ([]byte, []int)
- func (m *ManualScaling) GetNodes() int32
- func (*ManualScaling) ProtoMessage()
- func (m *ManualScaling) Reset()
- func (m *ManualScaling) String() string
- func (m *ManualScaling) XXX_DiscardUnknown()
- func (m *ManualScaling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ManualScaling) XXX_Merge(src proto.Message)
- func (m *ManualScaling) XXX_Size() int
- func (m *ManualScaling) XXX_Unmarshal(b []byte) error
- type Model
- func (*Model) Descriptor() ([]byte, []int)
- func (m *Model) GetDefaultVersion() *Version
- func (m *Model) GetDescription() string
- func (m *Model) GetName() string
- func (m *Model) GetOnlinePredictionLogging() bool
- func (m *Model) GetRegions() []string
- func (*Model) ProtoMessage()
- func (m *Model) Reset()
- func (m *Model) String() string
- func (m *Model) XXX_DiscardUnknown()
- func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Model) XXX_Merge(src proto.Message)
- func (m *Model) XXX_Size() int
- func (m *Model) XXX_Unmarshal(b []byte) error
- type ModelServiceClient
- type ModelServiceServer
- type OnlinePredictionServiceClient
- type OnlinePredictionServiceServer
- type OperationMetadata
- func (*OperationMetadata) Descriptor() ([]byte, []int)
- func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp
- func (m *OperationMetadata) GetEndTime() *timestamp.Timestamp
- func (m *OperationMetadata) GetIsCancellationRequested() bool
- func (m *OperationMetadata) GetModelName() string
- func (m *OperationMetadata) GetOperationType() OperationMetadata_OperationType
- func (m *OperationMetadata) GetStartTime() *timestamp.Timestamp
- func (m *OperationMetadata) GetVersion() *Version
- func (*OperationMetadata) ProtoMessage()
- func (m *OperationMetadata) Reset()
- func (m *OperationMetadata) String() string
- func (m *OperationMetadata) XXX_DiscardUnknown()
- func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OperationMetadata) XXX_Merge(src proto.Message)
- func (m *OperationMetadata) XXX_Size() int
- func (m *OperationMetadata) XXX_Unmarshal(b []byte) error
- type OperationMetadata_OperationType
- type ParameterSpec
- func (*ParameterSpec) Descriptor() ([]byte, []int)
- func (m *ParameterSpec) GetCategoricalValues() []string
- func (m *ParameterSpec) GetDiscreteValues() []float64
- func (m *ParameterSpec) GetMaxValue() float64
- func (m *ParameterSpec) GetMinValue() float64
- func (m *ParameterSpec) GetParameterName() string
- func (m *ParameterSpec) GetScaleType() ParameterSpec_ScaleType
- func (m *ParameterSpec) GetType() ParameterSpec_ParameterType
- func (*ParameterSpec) ProtoMessage()
- func (m *ParameterSpec) Reset()
- func (m *ParameterSpec) String() string
- func (m *ParameterSpec) XXX_DiscardUnknown()
- func (m *ParameterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ParameterSpec) XXX_Merge(src proto.Message)
- func (m *ParameterSpec) XXX_Size() int
- func (m *ParameterSpec) XXX_Unmarshal(b []byte) error
- type ParameterSpec_ParameterType
- type ParameterSpec_ScaleType
- type PredictRequest
- func (*PredictRequest) Descriptor() ([]byte, []int)
- func (m *PredictRequest) GetHttpBody() *httpbody.HttpBody
- func (m *PredictRequest) GetName() string
- func (*PredictRequest) ProtoMessage()
- func (m *PredictRequest) Reset()
- func (m *PredictRequest) String() string
- func (m *PredictRequest) XXX_DiscardUnknown()
- func (m *PredictRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PredictRequest) XXX_Merge(src proto.Message)
- func (m *PredictRequest) XXX_Size() int
- func (m *PredictRequest) XXX_Unmarshal(b []byte) error
- type PredictionInput
- func (*PredictionInput) Descriptor() ([]byte, []int)
- func (m *PredictionInput) GetDataFormat() PredictionInput_DataFormat
- func (m *PredictionInput) GetInputPaths() []string
- func (m *PredictionInput) GetMaxWorkerCount() int64
- func (m *PredictionInput) GetModelName() string
- func (m *PredictionInput) GetModelVersion() isPredictionInput_ModelVersion
- func (m *PredictionInput) GetOutputPath() string
- func (m *PredictionInput) GetRegion() string
- func (m *PredictionInput) GetRuntimeVersion() string
- func (m *PredictionInput) GetUri() string
- func (m *PredictionInput) GetVersionName() string
- func (*PredictionInput) ProtoMessage()
- func (m *PredictionInput) Reset()
- func (m *PredictionInput) String() string
- func (m *PredictionInput) XXX_DiscardUnknown()
- func (m *PredictionInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PredictionInput) XXX_Merge(src proto.Message)
- func (*PredictionInput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *PredictionInput) XXX_Size() int
- func (m *PredictionInput) XXX_Unmarshal(b []byte) error
- type PredictionInput_DataFormat
- type PredictionInput_ModelName
- type PredictionInput_Uri
- type PredictionInput_VersionName
- type PredictionOutput
- func (*PredictionOutput) Descriptor() ([]byte, []int)
- func (m *PredictionOutput) GetErrorCount() int64
- func (m *PredictionOutput) GetNodeHours() float64
- func (m *PredictionOutput) GetOutputPath() string
- func (m *PredictionOutput) GetPredictionCount() int64
- func (*PredictionOutput) ProtoMessage()
- func (m *PredictionOutput) Reset()
- func (m *PredictionOutput) String() string
- func (m *PredictionOutput) XXX_DiscardUnknown()
- func (m *PredictionOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PredictionOutput) XXX_Merge(src proto.Message)
- func (m *PredictionOutput) XXX_Size() int
- func (m *PredictionOutput) XXX_Unmarshal(b []byte) error
- type ProjectManagementServiceClient
- type ProjectManagementServiceServer
- type SetDefaultVersionRequest
- func (*SetDefaultVersionRequest) Descriptor() ([]byte, []int)
- func (m *SetDefaultVersionRequest) GetName() string
- func (*SetDefaultVersionRequest) ProtoMessage()
- func (m *SetDefaultVersionRequest) Reset()
- func (m *SetDefaultVersionRequest) String() string
- func (m *SetDefaultVersionRequest) XXX_DiscardUnknown()
- func (m *SetDefaultVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SetDefaultVersionRequest) XXX_Merge(src proto.Message)
- func (m *SetDefaultVersionRequest) XXX_Size() int
- func (m *SetDefaultVersionRequest) XXX_Unmarshal(b []byte) error
- type TrainingInput
- func (*TrainingInput) Descriptor() ([]byte, []int)
- func (m *TrainingInput) GetArgs() []string
- func (m *TrainingInput) GetHyperparameters() *HyperparameterSpec
- func (m *TrainingInput) GetJobDir() string
- func (m *TrainingInput) GetMasterType() string
- func (m *TrainingInput) GetPackageUris() []string
- func (m *TrainingInput) GetParameterServerCount() int64
- func (m *TrainingInput) GetParameterServerType() string
- func (m *TrainingInput) GetPythonModule() string
- func (m *TrainingInput) GetRegion() string
- func (m *TrainingInput) GetRuntimeVersion() string
- func (m *TrainingInput) GetScaleTier() TrainingInput_ScaleTier
- func (m *TrainingInput) GetWorkerCount() int64
- func (m *TrainingInput) GetWorkerType() string
- func (*TrainingInput) ProtoMessage()
- func (m *TrainingInput) Reset()
- func (m *TrainingInput) String() string
- func (m *TrainingInput) XXX_DiscardUnknown()
- func (m *TrainingInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TrainingInput) XXX_Merge(src proto.Message)
- func (m *TrainingInput) XXX_Size() int
- func (m *TrainingInput) XXX_Unmarshal(b []byte) error
- type TrainingInput_ScaleTier
- type TrainingOutput
- func (*TrainingOutput) Descriptor() ([]byte, []int)
- func (m *TrainingOutput) GetCompletedTrialCount() int64
- func (m *TrainingOutput) GetConsumedMlUnits() float64
- func (m *TrainingOutput) GetIsHyperparameterTuningJob() bool
- func (m *TrainingOutput) GetTrials() []*HyperparameterOutput
- func (*TrainingOutput) ProtoMessage()
- func (m *TrainingOutput) Reset()
- func (m *TrainingOutput) String() string
- func (m *TrainingOutput) XXX_DiscardUnknown()
- func (m *TrainingOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TrainingOutput) XXX_Merge(src proto.Message)
- func (m *TrainingOutput) XXX_Size() int
- func (m *TrainingOutput) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetCreateTime() *timestamp.Timestamp
- func (m *Version) GetDeploymentUri() string
- func (m *Version) GetDescription() string
- func (m *Version) GetIsDefault() bool
- func (m *Version) GetLastUseTime() *timestamp.Timestamp
- func (m *Version) GetManualScaling() *ManualScaling
- func (m *Version) GetName() string
- func (m *Version) GetRuntimeVersion() string
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) String() string
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var HyperparameterSpec_GoalType_name = map[int32]string{
0: "GOAL_TYPE_UNSPECIFIED",
1: "MAXIMIZE",
2: "MINIMIZE",
}
var HyperparameterSpec_GoalType_value = map[string]int32{
"GOAL_TYPE_UNSPECIFIED": 0,
"MAXIMIZE": 1,
"MINIMIZE": 2,
}
var Job_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "QUEUED",
2: "PREPARING",
3: "RUNNING",
4: "SUCCEEDED",
5: "FAILED",
6: "CANCELLING",
7: "CANCELLED",
}
var Job_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"QUEUED": 1,
"PREPARING": 2,
"RUNNING": 3,
"SUCCEEDED": 4,
"FAILED": 5,
"CANCELLING": 6,
"CANCELLED": 7,
}
var OperationMetadata_OperationType_name = map[int32]string{
0: "OPERATION_TYPE_UNSPECIFIED",
1: "CREATE_VERSION",
2: "DELETE_VERSION",
3: "DELETE_MODEL",
}
var OperationMetadata_OperationType_value = map[string]int32{
"OPERATION_TYPE_UNSPECIFIED": 0,
"CREATE_VERSION": 1,
"DELETE_VERSION": 2,
"DELETE_MODEL": 3,
}
var ParameterSpec_ParameterType_name = map[int32]string{
0: "PARAMETER_TYPE_UNSPECIFIED",
1: "DOUBLE",
2: "INTEGER",
3: "CATEGORICAL",
4: "DISCRETE",
}
var ParameterSpec_ParameterType_value = map[string]int32{
"PARAMETER_TYPE_UNSPECIFIED": 0,
"DOUBLE": 1,
"INTEGER": 2,
"CATEGORICAL": 3,
"DISCRETE": 4,
}
var ParameterSpec_ScaleType_name = map[int32]string{
0: "NONE",
1: "UNIT_LINEAR_SCALE",
2: "UNIT_LOG_SCALE",
3: "UNIT_REVERSE_LOG_SCALE",
}
var ParameterSpec_ScaleType_value = map[string]int32{
"NONE": 0,
"UNIT_LINEAR_SCALE": 1,
"UNIT_LOG_SCALE": 2,
"UNIT_REVERSE_LOG_SCALE": 3,
}
var PredictionInput_DataFormat_name = map[int32]string{
0: "DATA_FORMAT_UNSPECIFIED",
1: "TEXT",
2: "TF_RECORD",
3: "TF_RECORD_GZIP",
}
var PredictionInput_DataFormat_value = map[string]int32{
"DATA_FORMAT_UNSPECIFIED": 0,
"TEXT": 1,
"TF_RECORD": 2,
"TF_RECORD_GZIP": 3,
}
var TrainingInput_ScaleTier_name = map[int32]string{
0: "BASIC",
1: "STANDARD_1",
3: "PREMIUM_1",
6: "BASIC_GPU",
5: "CUSTOM",
}
var TrainingInput_ScaleTier_value = map[string]int32{
"BASIC": 0,
"STANDARD_1": 1,
"PREMIUM_1": 3,
"BASIC_GPU": 6,
"CUSTOM": 5,
}
Functions ¶
func RegisterJobServiceServer ¶
func RegisterJobServiceServer(s *grpc.Server, srv JobServiceServer)
func RegisterModelServiceServer ¶
func RegisterModelServiceServer(s *grpc.Server, srv ModelServiceServer)
func RegisterOnlinePredictionServiceServer ¶
func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer)
func RegisterProjectManagementServiceServer ¶
func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer)
Types ¶
type CancelJobRequest ¶
type CancelJobRequest struct { // Required. The name of the job to cancel. // // Authorization: requires `Editor` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the CancelJob method.
func (*CancelJobRequest) Descriptor ¶
func (*CancelJobRequest) Descriptor() ([]byte, []int)
func (*CancelJobRequest) GetName ¶
func (m *CancelJobRequest) GetName() string
func (*CancelJobRequest) ProtoMessage ¶
func (*CancelJobRequest) ProtoMessage()
func (*CancelJobRequest) Reset ¶
func (m *CancelJobRequest) Reset()
func (*CancelJobRequest) String ¶
func (m *CancelJobRequest) String() string
func (*CancelJobRequest) XXX_DiscardUnknown ¶
func (m *CancelJobRequest) XXX_DiscardUnknown()
func (*CancelJobRequest) XXX_Marshal ¶
func (m *CancelJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CancelJobRequest) XXX_Merge ¶
func (dst *CancelJobRequest) XXX_Merge(src proto.Message)
func (*CancelJobRequest) XXX_Size ¶
func (m *CancelJobRequest) XXX_Size() int
func (*CancelJobRequest) XXX_Unmarshal ¶
func (m *CancelJobRequest) XXX_Unmarshal(b []byte) error
type CreateJobRequest ¶
type CreateJobRequest struct { // Required. The project name. // // Authorization: requires `Editor` role on the specified project. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The job to create. Job *Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the CreateJob method.
func (*CreateJobRequest) Descriptor ¶
func (*CreateJobRequest) Descriptor() ([]byte, []int)
func (*CreateJobRequest) GetJob ¶
func (m *CreateJobRequest) GetJob() *Job
func (*CreateJobRequest) GetParent ¶
func (m *CreateJobRequest) GetParent() string
func (*CreateJobRequest) ProtoMessage ¶
func (*CreateJobRequest) ProtoMessage()
func (*CreateJobRequest) Reset ¶
func (m *CreateJobRequest) Reset()
func (*CreateJobRequest) String ¶
func (m *CreateJobRequest) String() string
func (*CreateJobRequest) XXX_DiscardUnknown ¶
func (m *CreateJobRequest) XXX_DiscardUnknown()
func (*CreateJobRequest) XXX_Marshal ¶
func (m *CreateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateJobRequest) XXX_Merge ¶
func (dst *CreateJobRequest) XXX_Merge(src proto.Message)
func (*CreateJobRequest) XXX_Size ¶
func (m *CreateJobRequest) XXX_Size() int
func (*CreateJobRequest) XXX_Unmarshal ¶
func (m *CreateJobRequest) XXX_Unmarshal(b []byte) error
type CreateModelRequest ¶
type CreateModelRequest struct { // Required. The project name. // // Authorization: requires `Editor` role on the specified project. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The model to create. Model *Model `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the CreateModel method.
func (*CreateModelRequest) Descriptor ¶
func (*CreateModelRequest) Descriptor() ([]byte, []int)
func (*CreateModelRequest) GetModel ¶
func (m *CreateModelRequest) GetModel() *Model
func (*CreateModelRequest) GetParent ¶
func (m *CreateModelRequest) GetParent() string
func (*CreateModelRequest) ProtoMessage ¶
func (*CreateModelRequest) ProtoMessage()
func (*CreateModelRequest) Reset ¶
func (m *CreateModelRequest) Reset()
func (*CreateModelRequest) String ¶
func (m *CreateModelRequest) String() string
func (*CreateModelRequest) XXX_DiscardUnknown ¶
func (m *CreateModelRequest) XXX_DiscardUnknown()
func (*CreateModelRequest) XXX_Marshal ¶
func (m *CreateModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateModelRequest) XXX_Merge ¶
func (dst *CreateModelRequest) XXX_Merge(src proto.Message)
func (*CreateModelRequest) XXX_Size ¶
func (m *CreateModelRequest) XXX_Size() int
func (*CreateModelRequest) XXX_Unmarshal ¶
func (m *CreateModelRequest) XXX_Unmarshal(b []byte) error
type CreateVersionRequest ¶
type CreateVersionRequest struct { // Required. The name of the model. // // Authorization: requires `Editor` role on the parent project. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The version details. Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Uploads the provided trained model version to Cloud Machine Learning.
func (*CreateVersionRequest) Descriptor ¶
func (*CreateVersionRequest) Descriptor() ([]byte, []int)
func (*CreateVersionRequest) GetParent ¶
func (m *CreateVersionRequest) GetParent() string
func (*CreateVersionRequest) GetVersion ¶
func (m *CreateVersionRequest) GetVersion() *Version
func (*CreateVersionRequest) ProtoMessage ¶
func (*CreateVersionRequest) ProtoMessage()
func (*CreateVersionRequest) Reset ¶
func (m *CreateVersionRequest) Reset()
func (*CreateVersionRequest) String ¶
func (m *CreateVersionRequest) String() string
func (*CreateVersionRequest) XXX_DiscardUnknown ¶
func (m *CreateVersionRequest) XXX_DiscardUnknown()
func (*CreateVersionRequest) XXX_Marshal ¶
func (m *CreateVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateVersionRequest) XXX_Merge ¶
func (dst *CreateVersionRequest) XXX_Merge(src proto.Message)
func (*CreateVersionRequest) XXX_Size ¶
func (m *CreateVersionRequest) XXX_Size() int
func (*CreateVersionRequest) XXX_Unmarshal ¶
func (m *CreateVersionRequest) XXX_Unmarshal(b []byte) error
type DeleteModelRequest ¶
type DeleteModelRequest struct { // Required. The name of the model. // // Authorization: requires `Editor` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the DeleteModel method.
func (*DeleteModelRequest) Descriptor ¶
func (*DeleteModelRequest) Descriptor() ([]byte, []int)
func (*DeleteModelRequest) GetName ¶
func (m *DeleteModelRequest) GetName() string
func (*DeleteModelRequest) ProtoMessage ¶
func (*DeleteModelRequest) ProtoMessage()
func (*DeleteModelRequest) Reset ¶
func (m *DeleteModelRequest) Reset()
func (*DeleteModelRequest) String ¶
func (m *DeleteModelRequest) String() string
func (*DeleteModelRequest) XXX_DiscardUnknown ¶
func (m *DeleteModelRequest) XXX_DiscardUnknown()
func (*DeleteModelRequest) XXX_Marshal ¶
func (m *DeleteModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteModelRequest) XXX_Merge ¶
func (dst *DeleteModelRequest) XXX_Merge(src proto.Message)
func (*DeleteModelRequest) XXX_Size ¶
func (m *DeleteModelRequest) XXX_Size() int
func (*DeleteModelRequest) XXX_Unmarshal ¶
func (m *DeleteModelRequest) XXX_Unmarshal(b []byte) error
type DeleteVersionRequest ¶
type DeleteVersionRequest struct { // Required. The name of the version. You can get the names of all the // versions of a model by calling // [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list). // // Authorization: requires `Editor` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the DeleteVerionRequest method.
func (*DeleteVersionRequest) Descriptor ¶
func (*DeleteVersionRequest) Descriptor() ([]byte, []int)
func (*DeleteVersionRequest) GetName ¶
func (m *DeleteVersionRequest) GetName() string
func (*DeleteVersionRequest) ProtoMessage ¶
func (*DeleteVersionRequest) ProtoMessage()
func (*DeleteVersionRequest) Reset ¶
func (m *DeleteVersionRequest) Reset()
func (*DeleteVersionRequest) String ¶
func (m *DeleteVersionRequest) String() string
func (*DeleteVersionRequest) XXX_DiscardUnknown ¶
func (m *DeleteVersionRequest) XXX_DiscardUnknown()
func (*DeleteVersionRequest) XXX_Marshal ¶
func (m *DeleteVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteVersionRequest) XXX_Merge ¶
func (dst *DeleteVersionRequest) XXX_Merge(src proto.Message)
func (*DeleteVersionRequest) XXX_Size ¶
func (m *DeleteVersionRequest) XXX_Size() int
func (*DeleteVersionRequest) XXX_Unmarshal ¶
func (m *DeleteVersionRequest) XXX_Unmarshal(b []byte) error
type GetConfigRequest ¶
type GetConfigRequest struct { // Required. The project name. // // Authorization: requires `Viewer` role on the specified project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Requests service account information associated with a project.
func (*GetConfigRequest) Descriptor ¶
func (*GetConfigRequest) Descriptor() ([]byte, []int)
func (*GetConfigRequest) GetName ¶
func (m *GetConfigRequest) GetName() string
func (*GetConfigRequest) ProtoMessage ¶
func (*GetConfigRequest) ProtoMessage()
func (*GetConfigRequest) Reset ¶
func (m *GetConfigRequest) Reset()
func (*GetConfigRequest) String ¶
func (m *GetConfigRequest) String() string
func (*GetConfigRequest) XXX_DiscardUnknown ¶
func (m *GetConfigRequest) XXX_DiscardUnknown()
func (*GetConfigRequest) XXX_Marshal ¶
func (m *GetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetConfigRequest) XXX_Merge ¶
func (dst *GetConfigRequest) XXX_Merge(src proto.Message)
func (*GetConfigRequest) XXX_Size ¶
func (m *GetConfigRequest) XXX_Size() int
func (*GetConfigRequest) XXX_Unmarshal ¶
func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error
type GetConfigResponse ¶
type GetConfigResponse struct { // The service account Cloud ML uses to access resources in the project. ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` // The project number for `service_account`. ServiceAccountProject int64 `` /* 127-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Returns service account information associated with a project.
func (*GetConfigResponse) Descriptor ¶
func (*GetConfigResponse) Descriptor() ([]byte, []int)
func (*GetConfigResponse) GetServiceAccount ¶
func (m *GetConfigResponse) GetServiceAccount() string
func (*GetConfigResponse) GetServiceAccountProject ¶
func (m *GetConfigResponse) GetServiceAccountProject() int64
func (*GetConfigResponse) ProtoMessage ¶
func (*GetConfigResponse) ProtoMessage()
func (*GetConfigResponse) Reset ¶
func (m *GetConfigResponse) Reset()
func (*GetConfigResponse) String ¶
func (m *GetConfigResponse) String() string
func (*GetConfigResponse) XXX_DiscardUnknown ¶
func (m *GetConfigResponse) XXX_DiscardUnknown()
func (*GetConfigResponse) XXX_Marshal ¶
func (m *GetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetConfigResponse) XXX_Merge ¶
func (dst *GetConfigResponse) XXX_Merge(src proto.Message)
func (*GetConfigResponse) XXX_Size ¶
func (m *GetConfigResponse) XXX_Size() int
func (*GetConfigResponse) XXX_Unmarshal ¶
func (m *GetConfigResponse) XXX_Unmarshal(b []byte) error
type GetJobRequest ¶
type GetJobRequest struct { // Required. The name of the job to get the description of. // // Authorization: requires `Viewer` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the GetJob method.
func (*GetJobRequest) Descriptor ¶
func (*GetJobRequest) Descriptor() ([]byte, []int)
func (*GetJobRequest) GetName ¶
func (m *GetJobRequest) GetName() string
func (*GetJobRequest) ProtoMessage ¶
func (*GetJobRequest) ProtoMessage()
func (*GetJobRequest) Reset ¶
func (m *GetJobRequest) Reset()
func (*GetJobRequest) String ¶
func (m *GetJobRequest) String() string
func (*GetJobRequest) XXX_DiscardUnknown ¶
func (m *GetJobRequest) XXX_DiscardUnknown()
func (*GetJobRequest) XXX_Marshal ¶
func (m *GetJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetJobRequest) XXX_Merge ¶
func (dst *GetJobRequest) XXX_Merge(src proto.Message)
func (*GetJobRequest) XXX_Size ¶
func (m *GetJobRequest) XXX_Size() int
func (*GetJobRequest) XXX_Unmarshal ¶
func (m *GetJobRequest) XXX_Unmarshal(b []byte) error
type GetModelRequest ¶
type GetModelRequest struct { // Required. The name of the model. // // Authorization: requires `Viewer` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the GetModel method.
func (*GetModelRequest) Descriptor ¶
func (*GetModelRequest) Descriptor() ([]byte, []int)
func (*GetModelRequest) GetName ¶
func (m *GetModelRequest) GetName() string
func (*GetModelRequest) ProtoMessage ¶
func (*GetModelRequest) ProtoMessage()
func (*GetModelRequest) Reset ¶
func (m *GetModelRequest) Reset()
func (*GetModelRequest) String ¶
func (m *GetModelRequest) String() string
func (*GetModelRequest) XXX_DiscardUnknown ¶
func (m *GetModelRequest) XXX_DiscardUnknown()
func (*GetModelRequest) XXX_Marshal ¶
func (m *GetModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetModelRequest) XXX_Merge ¶
func (dst *GetModelRequest) XXX_Merge(src proto.Message)
func (*GetModelRequest) XXX_Size ¶
func (m *GetModelRequest) XXX_Size() int
func (*GetModelRequest) XXX_Unmarshal ¶
func (m *GetModelRequest) XXX_Unmarshal(b []byte) error
type GetVersionRequest ¶
type GetVersionRequest struct { // Required. The name of the version. // // Authorization: requires `Viewer` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the GetVersion method.
func (*GetVersionRequest) Descriptor ¶
func (*GetVersionRequest) Descriptor() ([]byte, []int)
func (*GetVersionRequest) GetName ¶
func (m *GetVersionRequest) GetName() string
func (*GetVersionRequest) ProtoMessage ¶
func (*GetVersionRequest) ProtoMessage()
func (*GetVersionRequest) Reset ¶
func (m *GetVersionRequest) Reset()
func (*GetVersionRequest) String ¶
func (m *GetVersionRequest) String() string
func (*GetVersionRequest) XXX_DiscardUnknown ¶
func (m *GetVersionRequest) XXX_DiscardUnknown()
func (*GetVersionRequest) XXX_Marshal ¶
func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetVersionRequest) XXX_Merge ¶
func (dst *GetVersionRequest) XXX_Merge(src proto.Message)
func (*GetVersionRequest) XXX_Size ¶
func (m *GetVersionRequest) XXX_Size() int
func (*GetVersionRequest) XXX_Unmarshal ¶
func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error
type HyperparameterOutput ¶
type HyperparameterOutput struct { // The trial id for these results. TrialId string `protobuf:"bytes,1,opt,name=trial_id,json=trialId,proto3" json:"trial_id,omitempty"` // The hyperparameters given to this trial. Hyperparameters map[string]string `` /* 171-byte string literal not displayed */ // The final objective metric seen for this trial. FinalMetric *HyperparameterOutput_HyperparameterMetric `protobuf:"bytes,3,opt,name=final_metric,json=finalMetric,proto3" json:"final_metric,omitempty"` // All recorded object metrics for this trial. AllMetrics []*HyperparameterOutput_HyperparameterMetric `protobuf:"bytes,4,rep,name=all_metrics,json=allMetrics,proto3" json:"all_metrics,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*HyperparameterOutput) Descriptor() ([]byte, []int)
func (*HyperparameterOutput) GetAllMetrics ¶
func (m *HyperparameterOutput) GetAllMetrics() []*HyperparameterOutput_HyperparameterMetric
func (*HyperparameterOutput) GetFinalMetric ¶
func (m *HyperparameterOutput) GetFinalMetric() *HyperparameterOutput_HyperparameterMetric
func (*HyperparameterOutput) GetHyperparameters ¶
func (m *HyperparameterOutput) GetHyperparameters() map[string]string
func (*HyperparameterOutput) GetTrialId ¶
func (m *HyperparameterOutput) GetTrialId() string
func (*HyperparameterOutput) ProtoMessage ¶
func (*HyperparameterOutput) ProtoMessage()
func (*HyperparameterOutput) Reset ¶
func (m *HyperparameterOutput) Reset()
func (*HyperparameterOutput) String ¶
func (m *HyperparameterOutput) String() string
func (*HyperparameterOutput) XXX_DiscardUnknown ¶
func (m *HyperparameterOutput) XXX_DiscardUnknown()
func (*HyperparameterOutput) XXX_Marshal ¶
func (m *HyperparameterOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HyperparameterOutput) XXX_Merge ¶
func (dst *HyperparameterOutput) XXX_Merge(src proto.Message)
func (*HyperparameterOutput) XXX_Size ¶
func (m *HyperparameterOutput) XXX_Size() int
func (*HyperparameterOutput) XXX_Unmarshal ¶
func (m *HyperparameterOutput) XXX_Unmarshal(b []byte) error
type HyperparameterOutput_HyperparameterMetric ¶
type HyperparameterOutput_HyperparameterMetric struct { // The global training step for this metric. TrainingStep int64 `protobuf:"varint,1,opt,name=training_step,json=trainingStep,proto3" json:"training_step,omitempty"` // The objective value at this training step. ObjectiveValue float64 `protobuf:"fixed64,2,opt,name=objective_value,json=objectiveValue,proto3" json:"objective_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An observed value of a metric.
func (*HyperparameterOutput_HyperparameterMetric) Descriptor ¶
func (*HyperparameterOutput_HyperparameterMetric) Descriptor() ([]byte, []int)
func (*HyperparameterOutput_HyperparameterMetric) GetObjectiveValue ¶
func (m *HyperparameterOutput_HyperparameterMetric) GetObjectiveValue() float64
func (*HyperparameterOutput_HyperparameterMetric) GetTrainingStep ¶
func (m *HyperparameterOutput_HyperparameterMetric) GetTrainingStep() int64
func (*HyperparameterOutput_HyperparameterMetric) ProtoMessage ¶
func (*HyperparameterOutput_HyperparameterMetric) ProtoMessage()
func (*HyperparameterOutput_HyperparameterMetric) Reset ¶
func (m *HyperparameterOutput_HyperparameterMetric) Reset()
func (*HyperparameterOutput_HyperparameterMetric) String ¶
func (m *HyperparameterOutput_HyperparameterMetric) String() string
func (*HyperparameterOutput_HyperparameterMetric) XXX_DiscardUnknown ¶
func (m *HyperparameterOutput_HyperparameterMetric) XXX_DiscardUnknown()
func (*HyperparameterOutput_HyperparameterMetric) XXX_Marshal ¶
func (m *HyperparameterOutput_HyperparameterMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HyperparameterOutput_HyperparameterMetric) XXX_Merge ¶
func (dst *HyperparameterOutput_HyperparameterMetric) XXX_Merge(src proto.Message)
func (*HyperparameterOutput_HyperparameterMetric) XXX_Size ¶
func (m *HyperparameterOutput_HyperparameterMetric) XXX_Size() int
func (*HyperparameterOutput_HyperparameterMetric) XXX_Unmarshal ¶
func (m *HyperparameterOutput_HyperparameterMetric) XXX_Unmarshal(b []byte) error
type HyperparameterSpec ¶
type HyperparameterSpec struct { // Required. The type of goal to use for tuning. Available types are // `MAXIMIZE` and `MINIMIZE`. // // Defaults to `MAXIMIZE`. Goal HyperparameterSpec_GoalType `protobuf:"varint,1,opt,name=goal,proto3,enum=google.cloud.ml.v1.HyperparameterSpec_GoalType" json:"goal,omitempty"` // Required. The set of parameters to tune. Params []*ParameterSpec `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"` // Optional. How many training trials should be attempted to optimize // the specified hyperparameters. // // Defaults to one. MaxTrials int32 `protobuf:"varint,3,opt,name=max_trials,json=maxTrials,proto3" json:"max_trials,omitempty"` // Optional. The number of training trials to run concurrently. // You can reduce the time it takes to perform hyperparameter tuning by adding // trials in parallel. However, each trail only benefits from the information // gained in completed trials. That means that a trial does not get access to // the results of trials running at the same time, which could reduce the // quality of the overall optimization. // // Each trial will use the same scale tier and machine types. // // Defaults to one. MaxParallelTrials int32 `protobuf:"varint,4,opt,name=max_parallel_trials,json=maxParallelTrials,proto3" json:"max_parallel_trials,omitempty"` // Optional. The Tensorflow summary tag name to use for optimizing trials. For // current versions of Tensorflow, this tag name should exactly match what is // shown in Tensorboard, including all scopes. For versions of Tensorflow // prior to 0.12, this should be only the tag passed to tf.Summary. // By default, "training/hptuning/metric" will be used. HyperparameterMetricTag string `` /* 132-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a set of hyperparameters to optimize.
func (*HyperparameterSpec) Descriptor ¶
func (*HyperparameterSpec) Descriptor() ([]byte, []int)
func (*HyperparameterSpec) GetGoal ¶
func (m *HyperparameterSpec) GetGoal() HyperparameterSpec_GoalType
func (*HyperparameterSpec) GetHyperparameterMetricTag ¶
func (m *HyperparameterSpec) GetHyperparameterMetricTag() string
func (*HyperparameterSpec) GetMaxParallelTrials ¶
func (m *HyperparameterSpec) GetMaxParallelTrials() int32
func (*HyperparameterSpec) GetMaxTrials ¶
func (m *HyperparameterSpec) GetMaxTrials() int32
func (*HyperparameterSpec) GetParams ¶
func (m *HyperparameterSpec) GetParams() []*ParameterSpec
func (*HyperparameterSpec) ProtoMessage ¶
func (*HyperparameterSpec) ProtoMessage()
func (*HyperparameterSpec) Reset ¶
func (m *HyperparameterSpec) Reset()
func (*HyperparameterSpec) String ¶
func (m *HyperparameterSpec) String() string
func (*HyperparameterSpec) XXX_DiscardUnknown ¶
func (m *HyperparameterSpec) XXX_DiscardUnknown()
func (*HyperparameterSpec) XXX_Marshal ¶
func (m *HyperparameterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HyperparameterSpec) XXX_Merge ¶
func (dst *HyperparameterSpec) XXX_Merge(src proto.Message)
func (*HyperparameterSpec) XXX_Size ¶
func (m *HyperparameterSpec) XXX_Size() int
func (*HyperparameterSpec) XXX_Unmarshal ¶
func (m *HyperparameterSpec) XXX_Unmarshal(b []byte) error
type HyperparameterSpec_GoalType ¶
type HyperparameterSpec_GoalType int32
The available types of optimization goals.
const ( // Goal Type will default to maximize. HyperparameterSpec_GOAL_TYPE_UNSPECIFIED HyperparameterSpec_GoalType = 0 // Maximize the goal metric. HyperparameterSpec_MAXIMIZE HyperparameterSpec_GoalType = 1 // Minimize the goal metric. HyperparameterSpec_MINIMIZE HyperparameterSpec_GoalType = 2 )
func (HyperparameterSpec_GoalType) EnumDescriptor ¶
func (HyperparameterSpec_GoalType) EnumDescriptor() ([]byte, []int)
func (HyperparameterSpec_GoalType) String ¶
func (x HyperparameterSpec_GoalType) String() string
type Job ¶
type Job struct { // Required. The user-specified id of the job. JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // Required. Parameters to create a job. // // Types that are valid to be assigned 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 valid to be assigned to Output: // *Job_TrainingOutput // *Job_PredictionOutput Output isJob_Output `protobuf_oneof:"output"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a training or prediction job.
func (*Job) Descriptor ¶
func (*Job) GetCreateTime ¶
func (*Job) GetEndTime ¶
func (*Job) GetErrorMessage ¶
func (*Job) GetPredictionInput ¶
func (m *Job) GetPredictionInput() *PredictionInput
func (*Job) GetPredictionOutput ¶
func (m *Job) GetPredictionOutput() *PredictionOutput
func (*Job) GetStartTime ¶
func (*Job) GetTrainingInput ¶
func (m *Job) GetTrainingInput() *TrainingInput
func (*Job) GetTrainingOutput ¶
func (m *Job) GetTrainingOutput() *TrainingOutput
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) XXX_DiscardUnknown ¶
func (m *Job) XXX_DiscardUnknown()
func (*Job) XXX_OneofFuncs ¶
func (*Job) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Job) XXX_Unmarshal ¶
type JobServiceClient ¶
type JobServiceClient interface { // Creates a training or a batch prediction job. CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*Job, error) // Lists the jobs in the project. ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error) // Describes a job. GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) // Cancels a running job. CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*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 ¶
func NewJobServiceClient(cc *grpc.ClientConn) JobServiceClient
type JobServiceServer ¶
type JobServiceServer interface { // Creates a training or a batch prediction job. CreateJob(context.Context, *CreateJobRequest) (*Job, error) // Lists the jobs in the project. ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error) // Describes a job. GetJob(context.Context, *GetJobRequest) (*Job, error) // Cancels a running job. CancelJob(context.Context, *CancelJobRequest) (*empty.Empty, error) }
JobServiceServer is the server API for JobService service.
type Job_PredictionInput ¶
type Job_PredictionInput struct {
PredictionInput *PredictionInput `protobuf:"bytes,3,opt,name=prediction_input,json=predictionInput,proto3,oneof"`
}
type Job_PredictionOutput ¶
type Job_PredictionOutput struct {
PredictionOutput *PredictionOutput `protobuf:"bytes,10,opt,name=prediction_output,json=predictionOutput,proto3,oneof"`
}
type Job_State ¶
type Job_State int32
Describes the job state.
const ( // The job state is unspecified. Job_STATE_UNSPECIFIED Job_State = 0 // The job has been just created and processing has not yet begun. Job_QUEUED Job_State = 1 // The service is preparing to run the job. Job_PREPARING Job_State = 2 // The job is in progress. Job_RUNNING Job_State = 3 // The job completed successfully. Job_SUCCEEDED Job_State = 4 // The job failed. // `error_message` should contain the details of the failure. Job_FAILED Job_State = 5 // The job is being cancelled. // `error_message` should describe the reason for the cancellation. Job_CANCELLING Job_State = 6 // The job has been cancelled. // `error_message` should describe the reason for the cancellation. Job_CANCELLED Job_State = 7 )
func (Job_State) EnumDescriptor ¶
type Job_TrainingInput ¶
type Job_TrainingInput struct {
TrainingInput *TrainingInput `protobuf:"bytes,2,opt,name=training_input,json=trainingInput,proto3,oneof"`
}
type Job_TrainingOutput ¶
type Job_TrainingOutput struct {
TrainingOutput *TrainingOutput `protobuf:"bytes,9,opt,name=training_output,json=trainingOutput,proto3,oneof"`
}
type ListJobsRequest ¶
type ListJobsRequest struct { // Required. The name of the project for which to list jobs. // // Authorization: requires `Viewer` role on the specified project. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. Specifies the subset of jobs to retrieve. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Optional. A page token to request the next page of results. // // You get the token from the `next_page_token` field of the response from // the previous call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. The number of jobs to retrieve per "page" of results. If there // are more remaining results than this number, the response message will // contain a valid value in the `next_page_token` field. // // The default value is 20, and the maximum page size is 100. PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the ListJobs method.
func (*ListJobsRequest) Descriptor ¶
func (*ListJobsRequest) Descriptor() ([]byte, []int)
func (*ListJobsRequest) GetFilter ¶
func (m *ListJobsRequest) GetFilter() string
func (*ListJobsRequest) GetPageSize ¶
func (m *ListJobsRequest) GetPageSize() int32
func (*ListJobsRequest) GetPageToken ¶
func (m *ListJobsRequest) GetPageToken() string
func (*ListJobsRequest) GetParent ¶
func (m *ListJobsRequest) GetParent() string
func (*ListJobsRequest) ProtoMessage ¶
func (*ListJobsRequest) ProtoMessage()
func (*ListJobsRequest) Reset ¶
func (m *ListJobsRequest) Reset()
func (*ListJobsRequest) String ¶
func (m *ListJobsRequest) String() string
func (*ListJobsRequest) XXX_DiscardUnknown ¶
func (m *ListJobsRequest) XXX_DiscardUnknown()
func (*ListJobsRequest) XXX_Marshal ¶
func (m *ListJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListJobsRequest) XXX_Merge ¶
func (dst *ListJobsRequest) XXX_Merge(src proto.Message)
func (*ListJobsRequest) XXX_Size ¶
func (m *ListJobsRequest) XXX_Size() int
func (*ListJobsRequest) XXX_Unmarshal ¶
func (m *ListJobsRequest) XXX_Unmarshal(b []byte) error
type ListJobsResponse ¶
type ListJobsResponse struct { // The list of jobs. Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` // Optional. Pass this token as the `page_token` field of the request for a // subsequent call. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for the ListJobs method.
func (*ListJobsResponse) Descriptor ¶
func (*ListJobsResponse) Descriptor() ([]byte, []int)
func (*ListJobsResponse) GetJobs ¶
func (m *ListJobsResponse) GetJobs() []*Job
func (*ListJobsResponse) GetNextPageToken ¶
func (m *ListJobsResponse) GetNextPageToken() string
func (*ListJobsResponse) ProtoMessage ¶
func (*ListJobsResponse) ProtoMessage()
func (*ListJobsResponse) Reset ¶
func (m *ListJobsResponse) Reset()
func (*ListJobsResponse) String ¶
func (m *ListJobsResponse) String() string
func (*ListJobsResponse) XXX_DiscardUnknown ¶
func (m *ListJobsResponse) XXX_DiscardUnknown()
func (*ListJobsResponse) XXX_Marshal ¶
func (m *ListJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListJobsResponse) XXX_Merge ¶
func (dst *ListJobsResponse) XXX_Merge(src proto.Message)
func (*ListJobsResponse) XXX_Size ¶
func (m *ListJobsResponse) XXX_Size() int
func (*ListJobsResponse) XXX_Unmarshal ¶
func (m *ListJobsResponse) XXX_Unmarshal(b []byte) error
type ListModelsRequest ¶
type ListModelsRequest struct { // Required. The name of the project whose models are to be listed. // // Authorization: requires `Viewer` role on the specified project. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. A page token to request the next page of results. // // You get the token from the `next_page_token` field of the response from // the previous call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. The number of models to retrieve per "page" of results. If there // are more remaining results than this number, the response message will // contain a valid value in the `next_page_token` field. // // The default value is 20, and the maximum page size is 100. PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the ListModels method.
func (*ListModelsRequest) Descriptor ¶
func (*ListModelsRequest) Descriptor() ([]byte, []int)
func (*ListModelsRequest) GetPageSize ¶
func (m *ListModelsRequest) GetPageSize() int32
func (*ListModelsRequest) GetPageToken ¶
func (m *ListModelsRequest) GetPageToken() string
func (*ListModelsRequest) GetParent ¶
func (m *ListModelsRequest) GetParent() string
func (*ListModelsRequest) ProtoMessage ¶
func (*ListModelsRequest) ProtoMessage()
func (*ListModelsRequest) Reset ¶
func (m *ListModelsRequest) Reset()
func (*ListModelsRequest) String ¶
func (m *ListModelsRequest) String() string
func (*ListModelsRequest) XXX_DiscardUnknown ¶
func (m *ListModelsRequest) XXX_DiscardUnknown()
func (*ListModelsRequest) XXX_Marshal ¶
func (m *ListModelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListModelsRequest) XXX_Merge ¶
func (dst *ListModelsRequest) XXX_Merge(src proto.Message)
func (*ListModelsRequest) XXX_Size ¶
func (m *ListModelsRequest) XXX_Size() int
func (*ListModelsRequest) XXX_Unmarshal ¶
func (m *ListModelsRequest) XXX_Unmarshal(b []byte) error
type ListModelsResponse ¶
type ListModelsResponse struct { // The list of models. Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // Optional. Pass this token as the `page_token` field of the request for a // subsequent call. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for the ListModels method.
func (*ListModelsResponse) Descriptor ¶
func (*ListModelsResponse) Descriptor() ([]byte, []int)
func (*ListModelsResponse) GetModels ¶
func (m *ListModelsResponse) GetModels() []*Model
func (*ListModelsResponse) GetNextPageToken ¶
func (m *ListModelsResponse) GetNextPageToken() string
func (*ListModelsResponse) ProtoMessage ¶
func (*ListModelsResponse) ProtoMessage()
func (*ListModelsResponse) Reset ¶
func (m *ListModelsResponse) Reset()
func (*ListModelsResponse) String ¶
func (m *ListModelsResponse) String() string
func (*ListModelsResponse) XXX_DiscardUnknown ¶
func (m *ListModelsResponse) XXX_DiscardUnknown()
func (*ListModelsResponse) XXX_Marshal ¶
func (m *ListModelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListModelsResponse) XXX_Merge ¶
func (dst *ListModelsResponse) XXX_Merge(src proto.Message)
func (*ListModelsResponse) XXX_Size ¶
func (m *ListModelsResponse) XXX_Size() int
func (*ListModelsResponse) XXX_Unmarshal ¶
func (m *ListModelsResponse) XXX_Unmarshal(b []byte) error
type ListVersionsRequest ¶
type ListVersionsRequest struct { // Required. The name of the model for which to list the version. // // Authorization: requires `Viewer` role on the parent project. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. A page token to request the next page of results. // // You get the token from the `next_page_token` field of the response from // the previous call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. The number of versions to retrieve per "page" of results. If // there are more remaining results than this number, the response message // will contain a valid value in the `next_page_token` field. // // The default value is 20, and the maximum page size is 100. PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the ListVersions method.
func (*ListVersionsRequest) Descriptor ¶
func (*ListVersionsRequest) Descriptor() ([]byte, []int)
func (*ListVersionsRequest) GetPageSize ¶
func (m *ListVersionsRequest) GetPageSize() int32
func (*ListVersionsRequest) GetPageToken ¶
func (m *ListVersionsRequest) GetPageToken() string
func (*ListVersionsRequest) GetParent ¶
func (m *ListVersionsRequest) GetParent() string
func (*ListVersionsRequest) ProtoMessage ¶
func (*ListVersionsRequest) ProtoMessage()
func (*ListVersionsRequest) Reset ¶
func (m *ListVersionsRequest) Reset()
func (*ListVersionsRequest) String ¶
func (m *ListVersionsRequest) String() string
func (*ListVersionsRequest) XXX_DiscardUnknown ¶
func (m *ListVersionsRequest) XXX_DiscardUnknown()
func (*ListVersionsRequest) XXX_Marshal ¶
func (m *ListVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListVersionsRequest) XXX_Merge ¶
func (dst *ListVersionsRequest) XXX_Merge(src proto.Message)
func (*ListVersionsRequest) XXX_Size ¶
func (m *ListVersionsRequest) XXX_Size() int
func (*ListVersionsRequest) XXX_Unmarshal ¶
func (m *ListVersionsRequest) XXX_Unmarshal(b []byte) error
type ListVersionsResponse ¶
type ListVersionsResponse struct { // The list of versions. Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` // Optional. Pass this token as the `page_token` field of the request for a // subsequent call. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for the ListVersions method.
func (*ListVersionsResponse) Descriptor ¶
func (*ListVersionsResponse) Descriptor() ([]byte, []int)
func (*ListVersionsResponse) GetNextPageToken ¶
func (m *ListVersionsResponse) GetNextPageToken() string
func (*ListVersionsResponse) GetVersions ¶
func (m *ListVersionsResponse) GetVersions() []*Version
func (*ListVersionsResponse) ProtoMessage ¶
func (*ListVersionsResponse) ProtoMessage()
func (*ListVersionsResponse) Reset ¶
func (m *ListVersionsResponse) Reset()
func (*ListVersionsResponse) String ¶
func (m *ListVersionsResponse) String() string
func (*ListVersionsResponse) XXX_DiscardUnknown ¶
func (m *ListVersionsResponse) XXX_DiscardUnknown()
func (*ListVersionsResponse) XXX_Marshal ¶
func (m *ListVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListVersionsResponse) XXX_Merge ¶
func (dst *ListVersionsResponse) XXX_Merge(src proto.Message)
func (*ListVersionsResponse) XXX_Size ¶
func (m *ListVersionsResponse) XXX_Size() int
func (*ListVersionsResponse) XXX_Unmarshal ¶
func (m *ListVersionsResponse) XXX_Unmarshal(b []byte) error
type ManualScaling ¶
type ManualScaling struct { // The number of nodes to allocate for this model. These nodes are always up, // starting from the time the model is deployed, so the cost of operating // this model will be proportional to nodes * number of hours since // deployment. Nodes int32 `protobuf:"varint,1,opt,name=nodes,proto3" json:"nodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Options for manually scaling a model.
func (*ManualScaling) Descriptor ¶
func (*ManualScaling) Descriptor() ([]byte, []int)
func (*ManualScaling) GetNodes ¶
func (m *ManualScaling) GetNodes() int32
func (*ManualScaling) ProtoMessage ¶
func (*ManualScaling) ProtoMessage()
func (*ManualScaling) Reset ¶
func (m *ManualScaling) Reset()
func (*ManualScaling) String ¶
func (m *ManualScaling) String() string
func (*ManualScaling) XXX_DiscardUnknown ¶
func (m *ManualScaling) XXX_DiscardUnknown()
func (*ManualScaling) XXX_Marshal ¶
func (m *ManualScaling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManualScaling) XXX_Merge ¶
func (dst *ManualScaling) XXX_Merge(src proto.Message)
func (*ManualScaling) XXX_Size ¶
func (m *ManualScaling) XXX_Size() int
func (*ManualScaling) XXX_Unmarshal ¶
func (m *ManualScaling) XXX_Unmarshal(b []byte) error
type Model ¶
type Model struct { // Required. The name specified for the model when it was created. // // The model name must be unique within the project it is created in. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. The description specified for the model when it was created. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. The default version of the model. This version will be used to // handle prediction requests that do not specify a version. // // You can change the default version by calling // [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault). DefaultVersion *Version `protobuf:"bytes,3,opt,name=default_version,json=defaultVersion,proto3" json:"default_version,omitempty"` // Optional. The list of regions where the model is going to be deployed. // Currently only one region per model is supported. // Defaults to 'us-central1' if nothing is set. Regions []string `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` // Optional. If true, enables StackDriver Logging for online prediction. // Default is false. OnlinePredictionLogging bool `` /* 133-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Model) GetDefaultVersion ¶
func (*Model) GetDescription ¶
func (*Model) GetOnlinePredictionLogging ¶
func (*Model) GetRegions ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) XXX_DiscardUnknown ¶
func (m *Model) XXX_DiscardUnknown()
func (*Model) XXX_Marshal ¶
func (*Model) XXX_Unmarshal ¶
type ModelServiceClient ¶
type ModelServiceClient interface { // Creates a model which will later contain one or more versions. // // You must add at least one version before you can request predictions from // the model. Add versions by calling // [projects.models.versions.create](/ml/reference/rest/v1/projects.models.versions/create). CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*Model, error) // Lists the models in a project. // // Each project can contain multiple models, and each model can have multiple // versions. ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) // Gets information about a model, including its name, the description (if // set), and the default version (if at least one version of the model has // been deployed). GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) // Deletes a model. // // You can only delete a model if there are no versions in it. You can delete // versions by calling // [projects.models.versions.delete](/ml/reference/rest/v1/projects.models.versions/delete). DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Creates a new version of a model from a trained TensorFlow model. // // If the version created in the cloud by this call is the first deployed // version of the specified model, it will be made the default version of the // model. When you add a version to a model that already has one or more // versions, the default version does not automatically change. If you want a // new version to be the default, you must call // [projects.models.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault). CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Gets basic information about all the versions of a model. // // If you expect that a model has a lot of versions, or if you need to handle // only a limited number of results at a time, you can request that the list // be retrieved in batches (called pages): ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error) // Gets information about a model version. // // Models can have multiple versions. You can call // [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list) // to get the same information that this method returns for all of the // versions of a model. GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error) // Deletes a model version. // // Each model can have multiple versions deployed and in use at any given // time. Use this method to remove a single version. // // Note: You cannot delete the version that is set as the default version // of the model unless it is the only remaining version. DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Designates a version to be the default for the model. // // The default version is used for prediction requests made against the model // that don't specify a version. // // The first version to be created for a model is automatically set as the // default. You must make any subsequent changes to the default version // setting manually using this method. SetDefaultVersion(ctx context.Context, in *SetDefaultVersionRequest, opts ...grpc.CallOption) (*Version, error) }
ModelServiceClient is the client API for ModelService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewModelServiceClient ¶
func NewModelServiceClient(cc *grpc.ClientConn) ModelServiceClient
type ModelServiceServer ¶
type ModelServiceServer interface { // Creates a model which will later contain one or more versions. // // You must add at least one version before you can request predictions from // the model. Add versions by calling // [projects.models.versions.create](/ml/reference/rest/v1/projects.models.versions/create). CreateModel(context.Context, *CreateModelRequest) (*Model, error) // Lists the models in a project. // // Each project can contain multiple models, and each model can have multiple // versions. ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) // Gets information about a model, including its name, the description (if // set), and the default version (if at least one version of the model has // been deployed). GetModel(context.Context, *GetModelRequest) (*Model, error) // Deletes a model. // // You can only delete a model if there are no versions in it. You can delete // versions by calling // [projects.models.versions.delete](/ml/reference/rest/v1/projects.models.versions/delete). DeleteModel(context.Context, *DeleteModelRequest) (*longrunning.Operation, error) // Creates a new version of a model from a trained TensorFlow model. // // If the version created in the cloud by this call is the first deployed // version of the specified model, it will be made the default version of the // model. When you add a version to a model that already has one or more // versions, the default version does not automatically change. If you want a // new version to be the default, you must call // [projects.models.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault). CreateVersion(context.Context, *CreateVersionRequest) (*longrunning.Operation, error) // Gets basic information about all the versions of a model. // // If you expect that a model has a lot of versions, or if you need to handle // only a limited number of results at a time, you can request that the list // be retrieved in batches (called pages): ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error) // Gets information about a model version. // // Models can have multiple versions. You can call // [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list) // to get the same information that this method returns for all of the // versions of a model. GetVersion(context.Context, *GetVersionRequest) (*Version, error) // Deletes a model version. // // Each model can have multiple versions deployed and in use at any given // time. Use this method to remove a single version. // // Note: You cannot delete the version that is set as the default version // of the model unless it is the only remaining version. DeleteVersion(context.Context, *DeleteVersionRequest) (*longrunning.Operation, error) // Designates a version to be the default for the model. // // The default version is used for prediction requests made against the model // that don't specify a version. // // The first version to be created for a model is automatically set as the // default. You must make any subsequent changes to the default version // setting manually using this method. SetDefaultVersion(context.Context, *SetDefaultVersionRequest) (*Version, error) }
ModelServiceServer is the server API for ModelService service.
type OnlinePredictionServiceClient ¶
type OnlinePredictionServiceClient interface { // Performs prediction on the data in the request. // // **** REMOVE FROM GENERATED DOCUMENTATION Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) }
OnlinePredictionServiceClient is the client API for OnlinePredictionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOnlinePredictionServiceClient ¶
func NewOnlinePredictionServiceClient(cc *grpc.ClientConn) OnlinePredictionServiceClient
type OnlinePredictionServiceServer ¶
type OnlinePredictionServiceServer interface { // Performs prediction on the data in the request. // // **** REMOVE FROM GENERATED DOCUMENTATION Predict(context.Context, *PredictRequest) (*httpbody.HttpBody, error) }
OnlinePredictionServiceServer is the server API for OnlinePredictionService service.
type OperationMetadata ¶
type OperationMetadata struct { // The time the operation was submitted. CreateTime *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 `` /* 133-byte string literal not displayed */ // The operation type. OperationType OperationMetadata_OperationType `` /* 157-byte string literal not displayed */ // Contains the name of the model associated with the operation. ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` // Contains the version associated with the operation. Version *Version `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor ¶
func (*OperationMetadata) Descriptor() ([]byte, []int)
func (*OperationMetadata) GetCreateTime ¶
func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp
func (*OperationMetadata) GetEndTime ¶
func (m *OperationMetadata) GetEndTime() *timestamp.Timestamp
func (*OperationMetadata) GetIsCancellationRequested ¶
func (m *OperationMetadata) GetIsCancellationRequested() bool
func (*OperationMetadata) GetModelName ¶
func (m *OperationMetadata) GetModelName() string
func (*OperationMetadata) GetOperationType ¶
func (m *OperationMetadata) GetOperationType() OperationMetadata_OperationType
func (*OperationMetadata) GetStartTime ¶
func (m *OperationMetadata) GetStartTime() *timestamp.Timestamp
func (*OperationMetadata) GetVersion ¶
func (m *OperationMetadata) GetVersion() *Version
func (*OperationMetadata) ProtoMessage ¶
func (*OperationMetadata) ProtoMessage()
func (*OperationMetadata) Reset ¶
func (m *OperationMetadata) Reset()
func (*OperationMetadata) String ¶
func (m *OperationMetadata) String() string
func (*OperationMetadata) XXX_DiscardUnknown ¶
func (m *OperationMetadata) XXX_DiscardUnknown()
func (*OperationMetadata) XXX_Marshal ¶
func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OperationMetadata) XXX_Merge ¶
func (dst *OperationMetadata) XXX_Merge(src proto.Message)
func (*OperationMetadata) XXX_Size ¶
func (m *OperationMetadata) XXX_Size() int
func (*OperationMetadata) XXX_Unmarshal ¶
func (m *OperationMetadata) XXX_Unmarshal(b []byte) error
type OperationMetadata_OperationType ¶
type OperationMetadata_OperationType int32
The operation type.
const ( // Unspecified operation type. OperationMetadata_OPERATION_TYPE_UNSPECIFIED OperationMetadata_OperationType = 0 // An operation to create a new version. OperationMetadata_CREATE_VERSION OperationMetadata_OperationType = 1 // An operation to delete an existing version. OperationMetadata_DELETE_VERSION OperationMetadata_OperationType = 2 // An operation to delete an existing model. OperationMetadata_DELETE_MODEL OperationMetadata_OperationType = 3 )
func (OperationMetadata_OperationType) EnumDescriptor ¶
func (OperationMetadata_OperationType) EnumDescriptor() ([]byte, []int)
func (OperationMetadata_OperationType) String ¶
func (x OperationMetadata_OperationType) String() string
type ParameterSpec ¶
type ParameterSpec struct { // Required. The parameter name must be unique amongst all ParameterConfigs in // a HyperparameterSpec message. E.g., "learning_rate". ParameterName string `protobuf:"bytes,1,opt,name=parameter_name,json=parameterName,proto3" json:"parameter_name,omitempty"` // Required. The type of the parameter. Type ParameterSpec_ParameterType `protobuf:"varint,4,opt,name=type,proto3,enum=google.cloud.ml.v1.ParameterSpec_ParameterType" json:"type,omitempty"` // Required if type is `DOUBLE` or `INTEGER`. This field // should be unset if type is `CATEGORICAL`. This value should be integers if // type is INTEGER. MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` // Required if typeis `DOUBLE` or `INTEGER`. This field // should be unset if type is `CATEGORICAL`. This value should be integers if // type is `INTEGER`. MaxValue float64 `protobuf:"fixed64,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` // Required if type is `CATEGORICAL`. The list of possible categories. CategoricalValues []string `protobuf:"bytes,5,rep,name=categorical_values,json=categoricalValues,proto3" json:"categorical_values,omitempty"` // Required if type is `DISCRETE`. // A list of feasible points. // The list should be in strictly increasing order. For instance, this // parameter might have possible settings of 1.5, 2.5, and 4.0. This list // should not contain more than 1,000 values. DiscreteValues []float64 `protobuf:"fixed64,6,rep,packed,name=discrete_values,json=discreteValues,proto3" json:"discrete_values,omitempty"` // Optional. How the parameter should be scaled to the hypercube. // Leave unset for categorical parameters. // Some kind of scaling is strongly recommended for real or integral // parameters (e.g., `UNIT_LINEAR_SCALE`). ScaleType ParameterSpec_ScaleType `` /* 137-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a single hyperparameter to optimize.
func (*ParameterSpec) Descriptor ¶
func (*ParameterSpec) Descriptor() ([]byte, []int)
func (*ParameterSpec) GetCategoricalValues ¶
func (m *ParameterSpec) GetCategoricalValues() []string
func (*ParameterSpec) GetDiscreteValues ¶
func (m *ParameterSpec) GetDiscreteValues() []float64
func (*ParameterSpec) GetMaxValue ¶
func (m *ParameterSpec) GetMaxValue() float64
func (*ParameterSpec) GetMinValue ¶
func (m *ParameterSpec) GetMinValue() float64
func (*ParameterSpec) GetParameterName ¶
func (m *ParameterSpec) GetParameterName() string
func (*ParameterSpec) GetScaleType ¶
func (m *ParameterSpec) GetScaleType() ParameterSpec_ScaleType
func (*ParameterSpec) GetType ¶
func (m *ParameterSpec) GetType() ParameterSpec_ParameterType
func (*ParameterSpec) ProtoMessage ¶
func (*ParameterSpec) ProtoMessage()
func (*ParameterSpec) Reset ¶
func (m *ParameterSpec) Reset()
func (*ParameterSpec) String ¶
func (m *ParameterSpec) String() string
func (*ParameterSpec) XXX_DiscardUnknown ¶
func (m *ParameterSpec) XXX_DiscardUnknown()
func (*ParameterSpec) XXX_Marshal ¶
func (m *ParameterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParameterSpec) XXX_Merge ¶
func (dst *ParameterSpec) XXX_Merge(src proto.Message)
func (*ParameterSpec) XXX_Size ¶
func (m *ParameterSpec) XXX_Size() int
func (*ParameterSpec) XXX_Unmarshal ¶
func (m *ParameterSpec) XXX_Unmarshal(b []byte) error
type ParameterSpec_ParameterType ¶
type ParameterSpec_ParameterType int32
The type of the parameter.
const ( // You must specify a valid type. Using this unspecified type will result in // an error. ParameterSpec_PARAMETER_TYPE_UNSPECIFIED ParameterSpec_ParameterType = 0 // Type for real-valued parameters. ParameterSpec_DOUBLE ParameterSpec_ParameterType = 1 // Type for integral parameters. ParameterSpec_INTEGER ParameterSpec_ParameterType = 2 // The parameter is categorical, with a value chosen from the categories // field. ParameterSpec_CATEGORICAL ParameterSpec_ParameterType = 3 // The parameter is real valued, with a fixed set of feasible points. If // `type==DISCRETE`, feasible_points must be provided, and // {`min_value`, `max_value`} will be ignored. ParameterSpec_DISCRETE ParameterSpec_ParameterType = 4 )
func (ParameterSpec_ParameterType) EnumDescriptor ¶
func (ParameterSpec_ParameterType) EnumDescriptor() ([]byte, []int)
func (ParameterSpec_ParameterType) String ¶
func (x ParameterSpec_ParameterType) String() string
type ParameterSpec_ScaleType ¶
type ParameterSpec_ScaleType int32
The type of scaling that should be applied to this parameter.
const ( // By default, no scaling is applied. ParameterSpec_NONE ParameterSpec_ScaleType = 0 // Scales the feasible space to (0, 1) linearly. ParameterSpec_UNIT_LINEAR_SCALE ParameterSpec_ScaleType = 1 // Scales the feasible space logarithmically to (0, 1). The entire feasible // space must be strictly positive. ParameterSpec_UNIT_LOG_SCALE ParameterSpec_ScaleType = 2 // Scales the feasible space "reverse" logarithmically to (0, 1). The result // is that values close to the top of the feasible space are spread out more // than points near the bottom. The entire feasible space must be strictly // positive. ParameterSpec_UNIT_REVERSE_LOG_SCALE ParameterSpec_ScaleType = 3 )
func (ParameterSpec_ScaleType) EnumDescriptor ¶
func (ParameterSpec_ScaleType) EnumDescriptor() ([]byte, []int)
func (ParameterSpec_ScaleType) String ¶
func (x ParameterSpec_ScaleType) String() string
type PredictRequest ¶
type PredictRequest struct { // Required. The resource name of a model or a version. // // Authorization: requires `Viewer` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // // Required. The prediction request body. HttpBody *httpbody.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody,proto3" json:"http_body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*PredictRequest) Descriptor() ([]byte, []int)
func (*PredictRequest) GetHttpBody ¶
func (m *PredictRequest) GetHttpBody() *httpbody.HttpBody
func (*PredictRequest) GetName ¶
func (m *PredictRequest) GetName() string
func (*PredictRequest) ProtoMessage ¶
func (*PredictRequest) ProtoMessage()
func (*PredictRequest) Reset ¶
func (m *PredictRequest) Reset()
func (*PredictRequest) String ¶
func (m *PredictRequest) String() string
func (*PredictRequest) XXX_DiscardUnknown ¶
func (m *PredictRequest) XXX_DiscardUnknown()
func (*PredictRequest) XXX_Marshal ¶
func (m *PredictRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PredictRequest) XXX_Merge ¶
func (dst *PredictRequest) XXX_Merge(src proto.Message)
func (*PredictRequest) XXX_Size ¶
func (m *PredictRequest) XXX_Size() int
func (*PredictRequest) XXX_Unmarshal ¶
func (m *PredictRequest) XXX_Unmarshal(b []byte) error
type PredictionInput ¶
type PredictionInput struct { // Required. The model or the version to use for prediction. // // Types that are valid to be assigned to ModelVersion: // *PredictionInput_ModelName // *PredictionInput_VersionName // *PredictionInput_Uri ModelVersion isPredictionInput_ModelVersion `protobuf_oneof:"model_version"` // Required. The format of the input data files. DataFormat PredictionInput_DataFormat `` /* 143-byte string literal not displayed */ // Required. The Google Cloud Storage location of the input data files. // May contain wildcards. InputPaths []string `protobuf:"bytes,4,rep,name=input_paths,json=inputPaths,proto3" json:"input_paths,omitempty"` // Required. The output Google Cloud Storage location. OutputPath string `protobuf:"bytes,5,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"` // Optional. The maximum number of workers to be used for parallel processing. // Defaults to 10 if not specified. MaxWorkerCount int64 `protobuf:"varint,6,opt,name=max_worker_count,json=maxWorkerCount,proto3" json:"max_worker_count,omitempty"` // Required. The Google Compute Engine region to run the prediction job in. Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` // Optional. The Google Cloud ML runtime version to use for this batch // prediction. If not set, Google Cloud ML will pick the runtime version used // during the CreateVersion request for this model version, or choose the // latest stable version when model version information is not available // such as when the model is specified by uri. RuntimeVersion string `protobuf:"bytes,8,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents input parameters for a prediction job.
func (*PredictionInput) Descriptor ¶
func (*PredictionInput) Descriptor() ([]byte, []int)
func (*PredictionInput) GetDataFormat ¶
func (m *PredictionInput) GetDataFormat() PredictionInput_DataFormat
func (*PredictionInput) GetInputPaths ¶
func (m *PredictionInput) GetInputPaths() []string
func (*PredictionInput) GetMaxWorkerCount ¶
func (m *PredictionInput) GetMaxWorkerCount() int64
func (*PredictionInput) GetModelName ¶
func (m *PredictionInput) GetModelName() string
func (*PredictionInput) GetModelVersion ¶
func (m *PredictionInput) GetModelVersion() isPredictionInput_ModelVersion
func (*PredictionInput) GetOutputPath ¶
func (m *PredictionInput) GetOutputPath() string
func (*PredictionInput) GetRegion ¶
func (m *PredictionInput) GetRegion() string
func (*PredictionInput) GetRuntimeVersion ¶
func (m *PredictionInput) GetRuntimeVersion() string
func (*PredictionInput) GetUri ¶
func (m *PredictionInput) GetUri() string
func (*PredictionInput) GetVersionName ¶
func (m *PredictionInput) GetVersionName() string
func (*PredictionInput) ProtoMessage ¶
func (*PredictionInput) ProtoMessage()
func (*PredictionInput) Reset ¶
func (m *PredictionInput) Reset()
func (*PredictionInput) String ¶
func (m *PredictionInput) String() string
func (*PredictionInput) XXX_DiscardUnknown ¶
func (m *PredictionInput) XXX_DiscardUnknown()
func (*PredictionInput) XXX_Marshal ¶
func (m *PredictionInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PredictionInput) XXX_Merge ¶
func (dst *PredictionInput) XXX_Merge(src proto.Message)
func (*PredictionInput) XXX_OneofFuncs ¶
func (*PredictionInput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*PredictionInput) XXX_Size ¶
func (m *PredictionInput) XXX_Size() int
func (*PredictionInput) XXX_Unmarshal ¶
func (m *PredictionInput) XXX_Unmarshal(b []byte) error
type PredictionInput_DataFormat ¶
type PredictionInput_DataFormat int32
The format used to separate data instances in the source files.
const ( // Unspecified format. PredictionInput_DATA_FORMAT_UNSPECIFIED PredictionInput_DataFormat = 0 // The source file is a text file with instances separated by the // new-line character. PredictionInput_TEXT PredictionInput_DataFormat = 1 // The source file is a TFRecord file. PredictionInput_TF_RECORD PredictionInput_DataFormat = 2 // The source file is a GZIP-compressed TFRecord file. PredictionInput_TF_RECORD_GZIP PredictionInput_DataFormat = 3 )
func (PredictionInput_DataFormat) EnumDescriptor ¶
func (PredictionInput_DataFormat) EnumDescriptor() ([]byte, []int)
func (PredictionInput_DataFormat) String ¶
func (x PredictionInput_DataFormat) String() string
type PredictionInput_ModelName ¶
type PredictionInput_ModelName struct {
ModelName string `protobuf:"bytes,1,opt,name=model_name,json=modelName,proto3,oneof"`
}
type PredictionInput_Uri ¶
type PredictionInput_Uri struct {
Uri string `protobuf:"bytes,9,opt,name=uri,proto3,oneof"`
}
type PredictionInput_VersionName ¶
type PredictionInput_VersionName struct {
VersionName string `protobuf:"bytes,2,opt,name=version_name,json=versionName,proto3,oneof"`
}
type PredictionOutput ¶
type PredictionOutput struct { // The output Google Cloud Storage location provided at the job creation time. OutputPath string `protobuf:"bytes,1,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"` // The number of generated predictions. PredictionCount int64 `protobuf:"varint,2,opt,name=prediction_count,json=predictionCount,proto3" json:"prediction_count,omitempty"` // The number of data instances which resulted in errors. ErrorCount int64 `protobuf:"varint,3,opt,name=error_count,json=errorCount,proto3" json:"error_count,omitempty"` // Node hours used by the batch prediction job. NodeHours float64 `protobuf:"fixed64,4,opt,name=node_hours,json=nodeHours,proto3" json:"node_hours,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents results of a prediction job.
func (*PredictionOutput) Descriptor ¶
func (*PredictionOutput) Descriptor() ([]byte, []int)
func (*PredictionOutput) GetErrorCount ¶
func (m *PredictionOutput) GetErrorCount() int64
func (*PredictionOutput) GetNodeHours ¶
func (m *PredictionOutput) GetNodeHours() float64
func (*PredictionOutput) GetOutputPath ¶
func (m *PredictionOutput) GetOutputPath() string
func (*PredictionOutput) GetPredictionCount ¶
func (m *PredictionOutput) GetPredictionCount() int64
func (*PredictionOutput) ProtoMessage ¶
func (*PredictionOutput) ProtoMessage()
func (*PredictionOutput) Reset ¶
func (m *PredictionOutput) Reset()
func (*PredictionOutput) String ¶
func (m *PredictionOutput) String() string
func (*PredictionOutput) XXX_DiscardUnknown ¶
func (m *PredictionOutput) XXX_DiscardUnknown()
func (*PredictionOutput) XXX_Marshal ¶
func (m *PredictionOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PredictionOutput) XXX_Merge ¶
func (dst *PredictionOutput) XXX_Merge(src proto.Message)
func (*PredictionOutput) XXX_Size ¶
func (m *PredictionOutput) XXX_Size() int
func (*PredictionOutput) XXX_Unmarshal ¶
func (m *PredictionOutput) XXX_Unmarshal(b []byte) error
type ProjectManagementServiceClient ¶
type ProjectManagementServiceClient interface { // Get the service account information associated with your project. You need // this information in order to grant the service account persmissions for // the Google Cloud Storage location where you put your model training code // for training the model with Google Cloud Machine Learning. GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) }
ProjectManagementServiceClient is the client API for ProjectManagementService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProjectManagementServiceClient ¶
func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient
type ProjectManagementServiceServer ¶
type ProjectManagementServiceServer interface { // Get the service account information associated with your project. You need // this information in order to grant the service account persmissions for // the Google Cloud Storage location where you put your model training code // for training the model with Google Cloud Machine Learning. GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) }
ProjectManagementServiceServer is the server API for ProjectManagementService service.
type SetDefaultVersionRequest ¶
type SetDefaultVersionRequest struct { // Required. The name of the version to make the default for the model. You // can get the names of all the versions of a model by calling // [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list). // // Authorization: requires `Editor` role on the parent project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for the SetDefaultVersion request.
func (*SetDefaultVersionRequest) Descriptor ¶
func (*SetDefaultVersionRequest) Descriptor() ([]byte, []int)
func (*SetDefaultVersionRequest) GetName ¶
func (m *SetDefaultVersionRequest) GetName() string
func (*SetDefaultVersionRequest) ProtoMessage ¶
func (*SetDefaultVersionRequest) ProtoMessage()
func (*SetDefaultVersionRequest) Reset ¶
func (m *SetDefaultVersionRequest) Reset()
func (*SetDefaultVersionRequest) String ¶
func (m *SetDefaultVersionRequest) String() string
func (*SetDefaultVersionRequest) XXX_DiscardUnknown ¶
func (m *SetDefaultVersionRequest) XXX_DiscardUnknown()
func (*SetDefaultVersionRequest) XXX_Marshal ¶
func (m *SetDefaultVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetDefaultVersionRequest) XXX_Merge ¶
func (dst *SetDefaultVersionRequest) XXX_Merge(src proto.Message)
func (*SetDefaultVersionRequest) XXX_Size ¶
func (m *SetDefaultVersionRequest) XXX_Size() int
func (*SetDefaultVersionRequest) XXX_Unmarshal ¶
func (m *SetDefaultVersionRequest) XXX_Unmarshal(b []byte) error
type TrainingInput ¶
type TrainingInput struct { // Required. Specifies the machine types, the number of replicas for workers // and parameter servers. ScaleTier TrainingInput_ScaleTier `` /* 137-byte string literal not displayed */ // Optional. Specifies the type of virtual machine to use for your training // job's master worker. // // The following types are supported: // // <dl> // <dt>standard</dt> // <dd> // A basic machine configuration suitable for training simple models with // small to moderate datasets. // </dd> // <dt>large_model</dt> // <dd> // A machine with a lot of memory, specially suited for parameter servers // when your model is large (having many hidden layers or layers with very // large numbers of nodes). // </dd> // <dt>complex_model_s</dt> // <dd> // A machine suitable for the master and workers of the cluster when your // model requires more computation than the standard machine can handle // satisfactorily. // </dd> // <dt>complex_model_m</dt> // <dd> // A machine with roughly twice the number of cores and roughly double the // memory of <code suppresswarning="true">complex_model_s</code>. // </dd> // <dt>complex_model_l</dt> // <dd> // A machine with roughly twice the number of cores and roughly double the // memory of <code suppresswarning="true">complex_model_m</code>. // </dd> // <dt>standard_gpu</dt> // <dd> // A machine equivalent to <code suppresswarning="true">standard</code> that // also includes a // <a href="ml/docs/how-tos/using-gpus"> // GPU that you can use in your trainer</a>. // </dd> // <dt>complex_model_m_gpu</dt> // <dd> // A machine equivalent to // <code suppresswarning="true">coplex_model_m</code> that also includes // four GPUs. // </dd> // </dl> // // You must set this value when `scaleTier` is set to `CUSTOM`. MasterType string `protobuf:"bytes,2,opt,name=master_type,json=masterType,proto3" json:"master_type,omitempty"` // Optional. Specifies the type of virtual machine to use for your training // job's worker nodes. // // The supported values are the same as those described in the entry for // `masterType`. // // This value must be present when `scaleTier` is set to `CUSTOM` and // `workerCount` is greater than zero. WorkerType string `protobuf:"bytes,3,opt,name=worker_type,json=workerType,proto3" json:"worker_type,omitempty"` // Optional. Specifies the type of virtual machine to use for your training // job's parameter server. // // The supported values are the same as those described in the entry for // `master_type`. // // This value must be present when `scaleTier` is set to `CUSTOM` and // `parameter_server_count` is greater than zero. ParameterServerType string `protobuf:"bytes,4,opt,name=parameter_server_type,json=parameterServerType,proto3" json:"parameter_server_type,omitempty"` // Optional. The number of worker replicas to use for the training job. Each // replica in the cluster will be of the type specified in `worker_type`. // // This value can only be used when `scale_tier` is set to `CUSTOM`. If you // set this value, you must also set `worker_type`. WorkerCount int64 `protobuf:"varint,5,opt,name=worker_count,json=workerCount,proto3" json:"worker_count,omitempty"` // Optional. The number of parameter server replicas to use for the training // job. Each replica in the cluster will be of the type specified in // `parameter_server_type`. // // This value can only be used when `scale_tier` is set to `CUSTOM`.If you // set this value, you must also set `parameter_server_type`. ParameterServerCount int64 `protobuf:"varint,6,opt,name=parameter_server_count,json=parameterServerCount,proto3" json:"parameter_server_count,omitempty"` // Required. The Google Cloud Storage location of the packages with // the training program and any additional dependencies. PackageUris []string `protobuf:"bytes,7,rep,name=package_uris,json=packageUris,proto3" json:"package_uris,omitempty"` // Required. The Python module name to run after installing the packages. PythonModule string `protobuf:"bytes,8,opt,name=python_module,json=pythonModule,proto3" json:"python_module,omitempty"` // Optional. Command line arguments to pass to the program. Args []string `protobuf:"bytes,10,rep,name=args,proto3" json:"args,omitempty"` // Optional. The set of Hyperparameters to tune. Hyperparameters *HyperparameterSpec `protobuf:"bytes,12,opt,name=hyperparameters,proto3" json:"hyperparameters,omitempty"` // Required. The Google Compute Engine region to run the training job in. Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"` // Optional. A Google Cloud Storage path in which to store training outputs // and other data needed for training. This path is passed to your TensorFlow // program as the 'job_dir' command-line argument. The benefit of specifying // this field is that Cloud ML validates the path for use in training. JobDir string `protobuf:"bytes,16,opt,name=job_dir,json=jobDir,proto3" json:"job_dir,omitempty"` // Optional. The Google Cloud ML runtime version to use for training. If not // set, Google Cloud ML will choose the latest stable version. RuntimeVersion string `protobuf:"bytes,15,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents input parameters for a training job.
func (*TrainingInput) Descriptor ¶
func (*TrainingInput) Descriptor() ([]byte, []int)
func (*TrainingInput) GetArgs ¶
func (m *TrainingInput) GetArgs() []string
func (*TrainingInput) GetHyperparameters ¶
func (m *TrainingInput) GetHyperparameters() *HyperparameterSpec
func (*TrainingInput) GetJobDir ¶
func (m *TrainingInput) GetJobDir() string
func (*TrainingInput) GetMasterType ¶
func (m *TrainingInput) GetMasterType() string
func (*TrainingInput) GetPackageUris ¶
func (m *TrainingInput) GetPackageUris() []string
func (*TrainingInput) GetParameterServerCount ¶
func (m *TrainingInput) GetParameterServerCount() int64
func (*TrainingInput) GetParameterServerType ¶
func (m *TrainingInput) GetParameterServerType() string
func (*TrainingInput) GetPythonModule ¶
func (m *TrainingInput) GetPythonModule() string
func (*TrainingInput) GetRegion ¶
func (m *TrainingInput) GetRegion() string
func (*TrainingInput) GetRuntimeVersion ¶
func (m *TrainingInput) GetRuntimeVersion() string
func (*TrainingInput) GetScaleTier ¶
func (m *TrainingInput) GetScaleTier() TrainingInput_ScaleTier
func (*TrainingInput) GetWorkerCount ¶
func (m *TrainingInput) GetWorkerCount() int64
func (*TrainingInput) GetWorkerType ¶
func (m *TrainingInput) GetWorkerType() string
func (*TrainingInput) ProtoMessage ¶
func (*TrainingInput) ProtoMessage()
func (*TrainingInput) Reset ¶
func (m *TrainingInput) Reset()
func (*TrainingInput) String ¶
func (m *TrainingInput) String() string
func (*TrainingInput) XXX_DiscardUnknown ¶
func (m *TrainingInput) XXX_DiscardUnknown()
func (*TrainingInput) XXX_Marshal ¶
func (m *TrainingInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TrainingInput) XXX_Merge ¶
func (dst *TrainingInput) XXX_Merge(src proto.Message)
func (*TrainingInput) XXX_Size ¶
func (m *TrainingInput) XXX_Size() int
func (*TrainingInput) XXX_Unmarshal ¶
func (m *TrainingInput) XXX_Unmarshal(b []byte) error
type TrainingInput_ScaleTier ¶
type TrainingInput_ScaleTier int32
A scale tier is an abstract representation of the resources Cloud ML will allocate to a training job. When selecting a scale tier for your training job, you should consider the size of your training dataset and the complexity of your model. As the tiers increase, virtual machines are added to handle your job, and the individual machines in the cluster generally have more memory and greater processing power than they do at lower tiers. The number of training units charged per hour of processing increases as tiers get more advanced. Refer to the [pricing guide](/ml/pricing) for more details. Note that in addition to incurring costs, your use of training resources is constrained by the [quota policy](/ml/quota).
const ( // A single worker instance. This tier is suitable for learning how to use // Cloud ML, and for experimenting with new models using small datasets. TrainingInput_BASIC TrainingInput_ScaleTier = 0 // Many workers and a few parameter servers. TrainingInput_STANDARD_1 TrainingInput_ScaleTier = 1 // A large number of workers with many parameter servers. TrainingInput_PREMIUM_1 TrainingInput_ScaleTier = 3 // A single worker instance [with a GPU](ml/docs/how-tos/using-gpus). TrainingInput_BASIC_GPU TrainingInput_ScaleTier = 6 // The CUSTOM tier is not a set tier, but rather enables you to use your // own cluster specification. When you use this tier, set values to // configure your processing cluster according to these guidelines: // // * You _must_ set `TrainingInput.masterType` to specify the type // of machine to use for your master node. This is the only required // setting. // // * You _may_ set `TrainingInput.workerCount` to specify the number of // workers to use. If you specify one or more workers, you _must_ also // set `TrainingInput.workerType` to specify the type of machine to use // for your worker nodes. // // * You _may_ set `TrainingInput.parameterServerCount` to specify the // number of parameter servers to use. If you specify one or more // parameter servers, you _must_ also set // `TrainingInput.parameterServerType` to specify the type of machine to // use for your parameter servers. // // Note that all of your workers must use the same machine type, which can // be different from your parameter server type and master type. Your // parameter servers must likewise use the same machine type, which can be // different from your worker type and master type. TrainingInput_CUSTOM TrainingInput_ScaleTier = 5 )
func (TrainingInput_ScaleTier) EnumDescriptor ¶
func (TrainingInput_ScaleTier) EnumDescriptor() ([]byte, []int)
func (TrainingInput_ScaleTier) String ¶
func (x TrainingInput_ScaleTier) String() string
type TrainingOutput ¶
type TrainingOutput struct { // The number of hyperparameter tuning trials that completed successfully. // Only set for hyperparameter tuning jobs. CompletedTrialCount int64 `protobuf:"varint,1,opt,name=completed_trial_count,json=completedTrialCount,proto3" json:"completed_trial_count,omitempty"` // Results for individual Hyperparameter trials. // Only set for hyperparameter tuning jobs. Trials []*HyperparameterOutput `protobuf:"bytes,2,rep,name=trials,proto3" json:"trials,omitempty"` // The amount of ML units consumed by the job. ConsumedMlUnits float64 `protobuf:"fixed64,3,opt,name=consumed_ml_units,json=consumedMlUnits,proto3" json:"consumed_ml_units,omitempty"` // Whether this job is a hyperparameter tuning job. IsHyperparameterTuningJob bool `` /* 141-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents results of a training job. Output only.
func (*TrainingOutput) Descriptor ¶
func (*TrainingOutput) Descriptor() ([]byte, []int)
func (*TrainingOutput) GetCompletedTrialCount ¶
func (m *TrainingOutput) GetCompletedTrialCount() int64
func (*TrainingOutput) GetConsumedMlUnits ¶
func (m *TrainingOutput) GetConsumedMlUnits() float64
func (*TrainingOutput) GetIsHyperparameterTuningJob ¶
func (m *TrainingOutput) GetIsHyperparameterTuningJob() bool
func (*TrainingOutput) GetTrials ¶
func (m *TrainingOutput) GetTrials() []*HyperparameterOutput
func (*TrainingOutput) ProtoMessage ¶
func (*TrainingOutput) ProtoMessage()
func (*TrainingOutput) Reset ¶
func (m *TrainingOutput) Reset()
func (*TrainingOutput) String ¶
func (m *TrainingOutput) String() string
func (*TrainingOutput) XXX_DiscardUnknown ¶
func (m *TrainingOutput) XXX_DiscardUnknown()
func (*TrainingOutput) XXX_Marshal ¶
func (m *TrainingOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TrainingOutput) XXX_Merge ¶
func (dst *TrainingOutput) XXX_Merge(src proto.Message)
func (*TrainingOutput) XXX_Size ¶
func (m *TrainingOutput) XXX_Size() int
func (*TrainingOutput) XXX_Unmarshal ¶
func (m *TrainingOutput) XXX_Unmarshal(b []byte) error
type Version ¶
type Version struct { // Required.The name specified for the version when it was created. // // The version name must be unique within the model it is created in. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. The description specified for the version when it was created. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. If true, this version will be used to handle prediction // requests that do not specify a version. // // You can change the default version by calling // [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault). IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // Required. The Google Cloud Storage location of the trained model used to // create the version. See the // [overview of model deployment](/ml/docs/concepts/deployment-overview) for // more informaiton. // // When passing Version to // [projects.models.versions.create](/ml/reference/rest/v1/projects.models.versions/create) // the model service uses the specified location as the source of the model. // Once deployed, the model version is hosted by the prediction service, so // this location is useful only as a historical record. DeploymentUri string `protobuf:"bytes,4,opt,name=deployment_uri,json=deploymentUri,proto3" json:"deployment_uri,omitempty"` // Output only. The time the version was created. CreateTime *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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Version) GetCreateTime ¶
func (*Version) GetDeploymentUri ¶
func (*Version) GetDescription ¶
func (*Version) GetIsDefault ¶
func (*Version) GetLastUseTime ¶
func (*Version) GetManualScaling ¶
func (m *Version) GetManualScaling() *ManualScaling
func (*Version) GetRuntimeVersion ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()