Moved to google.golang.org/genproto/googleapis/api/annotations
Fixes #52
This commit is contained in:
		
							
								
								
									
										1823
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/job_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1823
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/job_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1050
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/model_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1050
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/model_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										162
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/operation_metadata.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										162
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/operation_metadata.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,162 @@
 | 
			
		||||
// Code generated by protoc-gen-go.
 | 
			
		||||
// source: google/cloud/ml/v1/operation_metadata.proto
 | 
			
		||||
// DO NOT EDIT!
 | 
			
		||||
 | 
			
		||||
package ml
 | 
			
		||||
 | 
			
		||||
import proto "github.com/golang/protobuf/proto"
 | 
			
		||||
import fmt "fmt"
 | 
			
		||||
import math "math"
 | 
			
		||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
 | 
			
		||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ = proto.Marshal
 | 
			
		||||
var _ = fmt.Errorf
 | 
			
		||||
var _ = math.Inf
 | 
			
		||||
 | 
			
		||||
// The operation type.
 | 
			
		||||
type OperationMetadata_OperationType int32
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
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,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x OperationMetadata_OperationType) String() string {
 | 
			
		||||
	return proto.EnumName(OperationMetadata_OperationType_name, int32(x))
 | 
			
		||||
}
 | 
			
		||||
func (OperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) {
 | 
			
		||||
	return fileDescriptor2, []int{0, 0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Represents the metadata of the long-running operation.
 | 
			
		||||
type OperationMetadata struct {
 | 
			
		||||
	// The time the operation was submitted.
 | 
			
		||||
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
 | 
			
		||||
	// The time operation processing started.
 | 
			
		||||
	StartTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
 | 
			
		||||
	// The time operation processing completed.
 | 
			
		||||
	EndTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
 | 
			
		||||
	// Indicates whether a request to cancel this operation has been made.
 | 
			
		||||
	IsCancellationRequested bool `protobuf:"varint,4,opt,name=is_cancellation_requested,json=isCancellationRequested" json:"is_cancellation_requested,omitempty"`
 | 
			
		||||
	// The operation type.
 | 
			
		||||
	OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,enum=google.cloud.ml.v1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
 | 
			
		||||
	// Contains the name of the model associated with the operation.
 | 
			
		||||
	ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName" json:"model_name,omitempty"`
 | 
			
		||||
	// Contains the version associated with the operation.
 | 
			
		||||
	Version *Version `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) Reset()                    { *m = OperationMetadata{} }
 | 
			
		||||
func (m *OperationMetadata) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*OperationMetadata) ProtoMessage()               {}
 | 
			
		||||
func (*OperationMetadata) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetCreateTime() *google_protobuf2.Timestamp {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.CreateTime
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetStartTime() *google_protobuf2.Timestamp {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.StartTime
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetEndTime() *google_protobuf2.Timestamp {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.EndTime
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetIsCancellationRequested() bool {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.IsCancellationRequested
 | 
			
		||||
	}
 | 
			
		||||
	return false
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetOperationType() OperationMetadata_OperationType {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.OperationType
 | 
			
		||||
	}
 | 
			
		||||
	return OperationMetadata_OPERATION_TYPE_UNSPECIFIED
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetModelName() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.ModelName
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetVersion() *Version {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.Version
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	proto.RegisterType((*OperationMetadata)(nil), "google.cloud.ml.v1.OperationMetadata")
 | 
			
		||||
	proto.RegisterEnum("google.cloud.ml.v1.OperationMetadata_OperationType", OperationMetadata_OperationType_name, OperationMetadata_OperationType_value)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { proto.RegisterFile("google/cloud/ml/v1/operation_metadata.proto", fileDescriptor2) }
 | 
			
		||||
 | 
			
		||||
var fileDescriptor2 = []byte{
 | 
			
		||||
	// 454 bytes of a gzipped FileDescriptorProto
 | 
			
		||||
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5f, 0x6b, 0xdb, 0x30,
 | 
			
		||||
	0x14, 0xc5, 0xe7, 0xb6, 0x6b, 0x1a, 0x75, 0x0d, 0x99, 0x1e, 0xb6, 0xcc, 0xfb, 0x17, 0xfa, 0x30,
 | 
			
		||||
	0x02, 0x03, 0x99, 0xb4, 0xdb, 0xc3, 0xd6, 0xa7, 0x36, 0xd1, 0x20, 0xd0, 0xc6, 0xc6, 0xf5, 0x0a,
 | 
			
		||||
	0xeb, 0x8b, 0x51, 0xed, 0x3b, 0x23, 0x90, 0x25, 0xcf, 0x52, 0x0c, 0xfd, 0x2c, 0xfb, 0xb2, 0x23,
 | 
			
		||||
	0x92, 0x4d, 0x33, 0x52, 0xe8, 0xa3, 0xce, 0xfd, 0x9d, 0xab, 0xab, 0x7b, 0x84, 0x3e, 0x17, 0x4a,
 | 
			
		||||
	0x15, 0x02, 0x82, 0x4c, 0xa8, 0x55, 0x1e, 0x94, 0x22, 0x68, 0xa6, 0x81, 0xaa, 0xa0, 0x66, 0x86,
 | 
			
		||||
	0x2b, 0x99, 0x96, 0x60, 0x58, 0xce, 0x0c, 0x23, 0x55, 0xad, 0x8c, 0xc2, 0xd8, 0xc1, 0xc4, 0xc2,
 | 
			
		||||
	0xa4, 0x14, 0xa4, 0x99, 0xfa, 0xef, 0xda, 0x06, 0xac, 0xe2, 0x01, 0x93, 0x52, 0x19, 0xeb, 0xd4,
 | 
			
		||||
	0xce, 0xe1, 0x7f, 0x7a, 0xa4, 0x7d, 0xa9, 0x72, 0x10, 0xa9, 0x86, 0xba, 0xe1, 0x19, 0xb4, 0xdc,
 | 
			
		||||
	0xc7, 0x96, 0xb3, 0xa7, 0xbb, 0xd5, 0xef, 0xc0, 0xf0, 0x12, 0xb4, 0x61, 0x65, 0xe5, 0x80, 0xe3,
 | 
			
		||||
	0xbf, 0x7b, 0xe8, 0x65, 0xd8, 0xcd, 0x75, 0xd5, 0x8e, 0x85, 0xcf, 0xd0, 0x61, 0x56, 0x03, 0x33,
 | 
			
		||||
	0x90, 0xae, 0xf9, 0x91, 0x37, 0xf6, 0x26, 0x87, 0x27, 0x3e, 0x69, 0xc7, 0xec, 0x9a, 0x91, 0xa4,
 | 
			
		||||
	0x6b, 0x16, 0x23, 0x87, 0xaf, 0x05, 0xfc, 0x0d, 0x21, 0x6d, 0x58, 0x6d, 0x9c, 0x77, 0xe7, 0x49,
 | 
			
		||||
	0x6f, 0xdf, 0xd2, 0xd6, 0xfa, 0x15, 0x1d, 0x80, 0xcc, 0x9d, 0x71, 0xf7, 0x49, 0x63, 0x0f, 0x64,
 | 
			
		||||
	0x6e, 0x6d, 0xdf, 0xd1, 0x1b, 0xae, 0xd3, 0x8c, 0xc9, 0x0c, 0x84, 0x70, 0x1b, 0xae, 0xe1, 0xcf,
 | 
			
		||||
	0x0a, 0xb4, 0x81, 0x7c, 0xb4, 0x37, 0xf6, 0x26, 0x07, 0xf1, 0x6b, 0xae, 0x67, 0x1b, 0xf5, 0xb8,
 | 
			
		||||
	0x2b, 0xe3, 0x5b, 0x34, 0x78, 0xc8, 0xc5, 0xdc, 0x57, 0x30, 0x7a, 0x3e, 0xf6, 0x26, 0x83, 0x93,
 | 
			
		||||
	0x53, 0xb2, 0x1d, 0x0a, 0xd9, 0xda, 0xd4, 0x83, 0x92, 0xdc, 0x57, 0x10, 0x1f, 0xa9, 0xcd, 0x23,
 | 
			
		||||
	0x7e, 0x8f, 0x90, 0x0b, 0x45, 0xb2, 0x12, 0x46, 0xfb, 0x63, 0x6f, 0xd2, 0x8f, 0xfb, 0x56, 0x59,
 | 
			
		||||
	0x32, 0xfb, 0xda, 0x5e, 0x03, 0xb5, 0xe6, 0x4a, 0x8e, 0x7a, 0xf6, 0xb1, 0x6f, 0x1f, 0xbb, 0xf3,
 | 
			
		||||
	0xc6, 0x21, 0x71, 0xc7, 0x1e, 0x73, 0x74, 0xf4, 0xdf, 0xad, 0xf8, 0x03, 0xf2, 0xc3, 0x88, 0xc6,
 | 
			
		||||
	0xe7, 0xc9, 0x22, 0x5c, 0xa6, 0xc9, 0xaf, 0x88, 0xa6, 0x3f, 0x97, 0xd7, 0x11, 0x9d, 0x2d, 0x7e,
 | 
			
		||||
	0x2c, 0xe8, 0x7c, 0xf8, 0x0c, 0x63, 0x34, 0x98, 0xc5, 0xf4, 0x3c, 0xa1, 0xe9, 0x0d, 0x8d, 0xaf,
 | 
			
		||||
	0x17, 0xe1, 0x72, 0xe8, 0xad, 0xb5, 0x39, 0xbd, 0xa4, 0x1b, 0xda, 0x0e, 0x1e, 0xa2, 0x17, 0xad,
 | 
			
		||||
	0x76, 0x15, 0xce, 0xe9, 0xe5, 0x70, 0xf7, 0x42, 0x20, 0x3f, 0x53, 0xe5, 0xd6, 0x54, 0xac, 0xe2,
 | 
			
		||||
	0xa4, 0x99, 0x5e, 0xbc, 0xda, 0x5a, 0x47, 0xb4, 0x0e, 0x29, 0xf2, 0x6e, 0xbf, 0xb4, 0x8e, 0x42,
 | 
			
		||||
	0x09, 0x26, 0x0b, 0xa2, 0xea, 0x22, 0x28, 0x40, 0xda, 0x08, 0x03, 0x57, 0x62, 0x15, 0xd7, 0x9b,
 | 
			
		||||
	0xbf, 0xf7, 0xac, 0x14, 0x77, 0xfb, 0x16, 0x38, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x03, 0xf9,
 | 
			
		||||
	0xcc, 0xf1, 0x3c, 0x03, 0x00, 0x00,
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										344
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/prediction_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										344
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/prediction_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,344 @@
 | 
			
		||||
// Code generated by protoc-gen-go.
 | 
			
		||||
// source: google/cloud/ml/v1/prediction_service.proto
 | 
			
		||||
// DO NOT EDIT!
 | 
			
		||||
 | 
			
		||||
package ml
 | 
			
		||||
 | 
			
		||||
import proto "github.com/golang/protobuf/proto"
 | 
			
		||||
import fmt "fmt"
 | 
			
		||||
import math "math"
 | 
			
		||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
 | 
			
		||||
import google_api3 "google.golang.org/genproto/googleapis/api/httpbody"
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	context "golang.org/x/net/context"
 | 
			
		||||
	grpc "google.golang.org/grpc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ = proto.Marshal
 | 
			
		||||
var _ = fmt.Errorf
 | 
			
		||||
var _ = math.Inf
 | 
			
		||||
 | 
			
		||||
// 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.
 | 
			
		||||
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" json:"name,omitempty"`
 | 
			
		||||
	//
 | 
			
		||||
	// Required. The prediction request body.
 | 
			
		||||
	HttpBody *google_api3.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody" json:"http_body,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *PredictRequest) Reset()                    { *m = PredictRequest{} }
 | 
			
		||||
func (m *PredictRequest) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*PredictRequest) ProtoMessage()               {}
 | 
			
		||||
func (*PredictRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
 | 
			
		||||
 | 
			
		||||
func (m *PredictRequest) GetName() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.Name
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *PredictRequest) GetHttpBody() *google_api3.HttpBody {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.HttpBody
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	proto.RegisterType((*PredictRequest)(nil), "google.cloud.ml.v1.PredictRequest")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ context.Context
 | 
			
		||||
var _ grpc.ClientConn
 | 
			
		||||
 | 
			
		||||
// This is a compile-time assertion to ensure that this generated file
 | 
			
		||||
// is compatible with the grpc package it is being compiled against.
 | 
			
		||||
const _ = grpc.SupportPackageIsVersion4
 | 
			
		||||
 | 
			
		||||
// Client API for OnlinePredictionService service
 | 
			
		||||
 | 
			
		||||
type OnlinePredictionServiceClient interface {
 | 
			
		||||
	// Performs prediction on the data in the request.
 | 
			
		||||
	//
 | 
			
		||||
	// **** REMOVE FROM GENERATED DOCUMENTATION
 | 
			
		||||
	Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*google_api3.HttpBody, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type onlinePredictionServiceClient struct {
 | 
			
		||||
	cc *grpc.ClientConn
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewOnlinePredictionServiceClient(cc *grpc.ClientConn) OnlinePredictionServiceClient {
 | 
			
		||||
	return &onlinePredictionServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *onlinePredictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*google_api3.HttpBody, error) {
 | 
			
		||||
	out := new(google_api3.HttpBody)
 | 
			
		||||
	err := grpc.Invoke(ctx, "/google.cloud.ml.v1.OnlinePredictionService/Predict", in, out, c.cc, opts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Server API for OnlinePredictionService service
 | 
			
		||||
 | 
			
		||||
type OnlinePredictionServiceServer interface {
 | 
			
		||||
	// Performs prediction on the data in the request.
 | 
			
		||||
	//
 | 
			
		||||
	// **** REMOVE FROM GENERATED DOCUMENTATION
 | 
			
		||||
	Predict(context.Context, *PredictRequest) (*google_api3.HttpBody, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer) {
 | 
			
		||||
	s.RegisterService(&_OnlinePredictionService_serviceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _OnlinePredictionService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(PredictRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(OnlinePredictionServiceServer).Predict(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: "/google.cloud.ml.v1.OnlinePredictionService/Predict",
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(OnlinePredictionServiceServer).Predict(ctx, req.(*PredictRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _OnlinePredictionService_serviceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "google.cloud.ml.v1.OnlinePredictionService",
 | 
			
		||||
	HandlerType: (*OnlinePredictionServiceServer)(nil),
 | 
			
		||||
	Methods: []grpc.MethodDesc{
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "Predict",
 | 
			
		||||
			Handler:    _OnlinePredictionService_Predict_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "google/cloud/ml/v1/prediction_service.proto",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { proto.RegisterFile("google/cloud/ml/v1/prediction_service.proto", fileDescriptor3) }
 | 
			
		||||
 | 
			
		||||
var fileDescriptor3 = []byte{
 | 
			
		||||
	// 308 bytes of a gzipped FileDescriptorProto
 | 
			
		||||
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0x4f, 0x4b, 0xfb, 0x30,
 | 
			
		||||
	0x18, 0xa6, 0xe3, 0xc7, 0x4f, 0x17, 0xc1, 0x43, 0x10, 0x9d, 0x45, 0x64, 0xd4, 0xcb, 0x9c, 0x90,
 | 
			
		||||
	0xd0, 0xe9, 0x69, 0xe2, 0x65, 0x27, 0x6f, 0x96, 0x79, 0x10, 0xbc, 0x8c, 0xac, 0x0d, 0x59, 0x24,
 | 
			
		||||
	0xcd, 0x1b, 0xdb, 0xac, 0x30, 0xc4, 0x8b, 0x37, 0xcf, 0x7e, 0x34, 0xbf, 0x82, 0x1f, 0x44, 0xd2,
 | 
			
		||||
	0x04, 0x99, 0xd4, 0xdb, 0x4b, 0xde, 0xe7, 0x79, 0x9f, 0x3f, 0x41, 0x17, 0x02, 0x40, 0x28, 0x4e,
 | 
			
		||||
	0x73, 0x05, 0xeb, 0x82, 0x96, 0x8a, 0x36, 0x29, 0x35, 0x15, 0x2f, 0x64, 0x6e, 0x25, 0xe8, 0x45,
 | 
			
		||||
	0xcd, 0xab, 0x46, 0xe6, 0x9c, 0x98, 0x0a, 0x2c, 0x60, 0xec, 0xc1, 0xa4, 0x05, 0x93, 0x52, 0x91,
 | 
			
		||||
	0x26, 0x8d, 0x4f, 0xc2, 0x01, 0x66, 0x24, 0x65, 0x5a, 0x83, 0x65, 0x8e, 0x58, 0x7b, 0x46, 0x7c,
 | 
			
		||||
	0xbc, 0xb5, 0x5d, 0x59, 0x6b, 0x96, 0x50, 0x6c, 0xfc, 0x2a, 0x79, 0x40, 0xfb, 0x99, 0x17, 0x9a,
 | 
			
		||||
	0xf3, 0xe7, 0x35, 0xaf, 0x2d, 0xc6, 0xe8, 0x9f, 0x66, 0x25, 0x1f, 0x44, 0xc3, 0x68, 0xd4, 0x9f,
 | 
			
		||||
	0xb7, 0x33, 0x4e, 0x51, 0xdf, 0xf1, 0x16, 0x8e, 0x38, 0xe8, 0x0d, 0xa3, 0xd1, 0xde, 0xe4, 0x80,
 | 
			
		||||
	0x04, 0x1b, 0xcc, 0x48, 0x72, 0x6b, 0xad, 0x99, 0x41, 0xb1, 0x99, 0xef, 0xae, 0xc2, 0x34, 0x79,
 | 
			
		||||
	0x8f, 0xd0, 0xd1, 0x9d, 0x56, 0x52, 0xf3, 0xec, 0x27, 0xc8, 0xbd, 0xcf, 0x81, 0x35, 0xda, 0x09,
 | 
			
		||||
	0x8f, 0x38, 0x21, 0xdd, 0x34, 0xe4, 0xb7, 0xa3, 0xf8, 0x4f, 0xa9, 0xe4, 0xfc, 0xed, 0xf3, 0xeb,
 | 
			
		||||
	0xa3, 0x77, 0x96, 0x9c, 0xba, 0xb2, 0x5e, 0x9c, 0xcd, 0x1b, 0x53, 0xc1, 0x13, 0xcf, 0x6d, 0x4d,
 | 
			
		||||
	0xc7, 0xe3, 0xd7, 0x69, 0xe8, 0x6f, 0x1a, 0x8d, 0x67, 0x0a, 0xc5, 0x39, 0x94, 0x1d, 0x25, 0x77,
 | 
			
		||||
	0xae, 0x49, 0x67, 0x87, 0x1d, 0x83, 0x99, 0xab, 0x26, 0x8b, 0x1e, 0xaf, 0x02, 0x43, 0x80, 0x62,
 | 
			
		||||
	0x5a, 0x10, 0xa8, 0x04, 0x15, 0x5c, 0xb7, 0xc5, 0x51, 0xbf, 0x62, 0x46, 0xd6, 0xdb, 0xbf, 0x76,
 | 
			
		||||
	0x5d, 0xaa, 0xe5, 0xff, 0x16, 0x70, 0xf9, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x81, 0x8e, 0x25, 0xca,
 | 
			
		||||
	0xd5, 0x01, 0x00, 0x00,
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										178
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/project_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										178
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/project_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,178 @@
 | 
			
		||||
// Code generated by protoc-gen-go.
 | 
			
		||||
// source: google/cloud/ml/v1/project_service.proto
 | 
			
		||||
// DO NOT EDIT!
 | 
			
		||||
 | 
			
		||||
package ml
 | 
			
		||||
 | 
			
		||||
import proto "github.com/golang/protobuf/proto"
 | 
			
		||||
import fmt "fmt"
 | 
			
		||||
import math "math"
 | 
			
		||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	context "golang.org/x/net/context"
 | 
			
		||||
	grpc "google.golang.org/grpc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ = proto.Marshal
 | 
			
		||||
var _ = fmt.Errorf
 | 
			
		||||
var _ = math.Inf
 | 
			
		||||
 | 
			
		||||
// Requests service account information associated with a project.
 | 
			
		||||
type GetConfigRequest struct {
 | 
			
		||||
	// Required. The project name.
 | 
			
		||||
	//
 | 
			
		||||
	// Authorization: requires `Viewer` role on the specified project.
 | 
			
		||||
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigRequest) Reset()                    { *m = GetConfigRequest{} }
 | 
			
		||||
func (m *GetConfigRequest) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*GetConfigRequest) ProtoMessage()               {}
 | 
			
		||||
func (*GetConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigRequest) GetName() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.Name
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Returns service account information associated with a project.
 | 
			
		||||
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" json:"service_account,omitempty"`
 | 
			
		||||
	// The project number for `service_account`.
 | 
			
		||||
	ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject" json:"service_account_project,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigResponse) Reset()                    { *m = GetConfigResponse{} }
 | 
			
		||||
func (m *GetConfigResponse) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*GetConfigResponse) ProtoMessage()               {}
 | 
			
		||||
func (*GetConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigResponse) GetServiceAccount() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.ServiceAccount
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigResponse) GetServiceAccountProject() int64 {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.ServiceAccountProject
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	proto.RegisterType((*GetConfigRequest)(nil), "google.cloud.ml.v1.GetConfigRequest")
 | 
			
		||||
	proto.RegisterType((*GetConfigResponse)(nil), "google.cloud.ml.v1.GetConfigResponse")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ context.Context
 | 
			
		||||
var _ grpc.ClientConn
 | 
			
		||||
 | 
			
		||||
// This is a compile-time assertion to ensure that this generated file
 | 
			
		||||
// is compatible with the grpc package it is being compiled against.
 | 
			
		||||
const _ = grpc.SupportPackageIsVersion4
 | 
			
		||||
 | 
			
		||||
// Client API for ProjectManagementService service
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type projectManagementServiceClient struct {
 | 
			
		||||
	cc *grpc.ClientConn
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient {
 | 
			
		||||
	return &projectManagementServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *projectManagementServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
 | 
			
		||||
	out := new(GetConfigResponse)
 | 
			
		||||
	err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ProjectManagementService/GetConfig", in, out, c.cc, opts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Server API for ProjectManagementService service
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
 | 
			
		||||
	s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _ProjectManagementService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(GetConfigRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: "/google.cloud.ml.v1.ProjectManagementService/GetConfig",
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "google.cloud.ml.v1.ProjectManagementService",
 | 
			
		||||
	HandlerType: (*ProjectManagementServiceServer)(nil),
 | 
			
		||||
	Methods: []grpc.MethodDesc{
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "GetConfig",
 | 
			
		||||
			Handler:    _ProjectManagementService_GetConfig_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "google/cloud/ml/v1/project_service.proto",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { proto.RegisterFile("google/cloud/ml/v1/project_service.proto", fileDescriptor4) }
 | 
			
		||||
 | 
			
		||||
var fileDescriptor4 = []byte{
 | 
			
		||||
	// 319 bytes of a gzipped FileDescriptorProto
 | 
			
		||||
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbf, 0x4a, 0x43, 0x31,
 | 
			
		||||
	0x14, 0xc6, 0xb9, 0x55, 0x84, 0x66, 0xf0, 0x4f, 0x44, 0x2c, 0x45, 0xb0, 0x16, 0xb5, 0xc5, 0x21,
 | 
			
		||||
	0xa1, 0x2a, 0x0e, 0x8a, 0x83, 0x75, 0x70, 0x12, 0x4a, 0xdd, 0x5c, 0x4a, 0xbc, 0x1e, 0x43, 0x24,
 | 
			
		||||
	0xc9, 0x89, 0x37, 0xe9, 0x5d, 0xc4, 0x41, 0x5f, 0xc1, 0xdd, 0x97, 0xf2, 0x15, 0x7c, 0x10, 0xe9,
 | 
			
		||||
	0x4d, 0x94, 0xda, 0x0e, 0x6e, 0x87, 0x73, 0x7e, 0x5f, 0xf2, 0x7d, 0xe7, 0x90, 0xae, 0x44, 0x94,
 | 
			
		||||
	0x1a, 0x78, 0xae, 0x71, 0x7c, 0xcf, 0x8d, 0xe6, 0x65, 0x8f, 0xbb, 0x02, 0x1f, 0x21, 0x0f, 0x23,
 | 
			
		||||
	0x0f, 0x45, 0xa9, 0x72, 0x60, 0xae, 0xc0, 0x80, 0x94, 0x46, 0x92, 0x55, 0x24, 0x33, 0x9a, 0x95,
 | 
			
		||||
	0xbd, 0xe6, 0x56, 0x52, 0x0b, 0xa7, 0xb8, 0xb0, 0x16, 0x83, 0x08, 0x0a, 0xad, 0x8f, 0x8a, 0xf6,
 | 
			
		||||
	0x3e, 0x59, 0xbd, 0x82, 0x70, 0x89, 0xf6, 0x41, 0xc9, 0x21, 0x3c, 0x8d, 0xc1, 0x07, 0x4a, 0xc9,
 | 
			
		||||
	0xa2, 0x15, 0x06, 0x1a, 0x59, 0x2b, 0xeb, 0xd6, 0x87, 0x55, 0xdd, 0x0e, 0x64, 0x6d, 0x8a, 0xf3,
 | 
			
		||||
	0x0e, 0xad, 0x07, 0xda, 0x21, 0x2b, 0xe9, 0xff, 0x91, 0xc8, 0x73, 0x1c, 0xdb, 0x90, 0x34, 0xcb,
 | 
			
		||||
	0xa9, 0x7d, 0x11, 0xbb, 0xf4, 0x84, 0x6c, 0xce, 0x80, 0xa3, 0x14, 0xa0, 0x51, 0x6b, 0x65, 0xdd,
 | 
			
		||||
	0x85, 0xe1, 0xc6, 0x5f, 0xc1, 0x20, 0x0e, 0x0f, 0x3f, 0x32, 0xd2, 0x48, 0xf5, 0xb5, 0xb0, 0x42,
 | 
			
		||||
	0x82, 0x01, 0x1b, 0x6e, 0x22, 0x4a, 0x5f, 0x33, 0x52, 0xff, 0xf5, 0x44, 0x77, 0xd9, 0x7c, 0x76,
 | 
			
		||||
	0x36, 0x1b, 0xad, 0xb9, 0xf7, 0x0f, 0x15, 0x83, 0xb5, 0x3b, 0x6f, 0x9f, 0x5f, 0xef, 0xb5, 0x1d,
 | 
			
		||||
	0xba, 0x3d, 0x59, 0xf5, 0xf3, 0x64, 0x01, 0xe7, 0xc9, 0xaf, 0xe7, 0x07, 0x2f, 0xa7, 0xf2, 0x47,
 | 
			
		||||
	0xd0, 0x57, 0xa4, 0x99, 0xa3, 0x99, 0x7b, 0x54, 0x38, 0xc5, 0xca, 0x5e, 0x7f, 0x3d, 0x79, 0x4f,
 | 
			
		||||
	0x8e, 0x07, 0x93, 0x8d, 0x0f, 0xb2, 0xdb, 0xe3, 0x84, 0x4b, 0xd4, 0xc2, 0x4a, 0x86, 0x85, 0xe4,
 | 
			
		||||
	0x12, 0x6c, 0x75, 0x0f, 0x1e, 0x47, 0xc2, 0x29, 0x3f, 0x7d, 0xee, 0x33, 0xa3, 0xef, 0x96, 0x2a,
 | 
			
		||||
	0xe0, 0xe8, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xd0, 0xa5, 0x43, 0x33, 0x0e, 0x02, 0x00, 0x00,
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1824
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/job_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1824
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/job_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1051
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/model_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1051
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/model_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										162
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/operation_metadata.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										162
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/operation_metadata.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,162 @@
 | 
			
		||||
// Code generated by protoc-gen-go.
 | 
			
		||||
// source: google/cloud/ml/v1beta1/operation_metadata.proto
 | 
			
		||||
// DO NOT EDIT!
 | 
			
		||||
 | 
			
		||||
package ml
 | 
			
		||||
 | 
			
		||||
import proto "github.com/golang/protobuf/proto"
 | 
			
		||||
import fmt "fmt"
 | 
			
		||||
import math "math"
 | 
			
		||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
 | 
			
		||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ = proto.Marshal
 | 
			
		||||
var _ = fmt.Errorf
 | 
			
		||||
var _ = math.Inf
 | 
			
		||||
 | 
			
		||||
// The operation type.
 | 
			
		||||
type OperationMetadata_OperationType int32
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
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,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x OperationMetadata_OperationType) String() string {
 | 
			
		||||
	return proto.EnumName(OperationMetadata_OperationType_name, int32(x))
 | 
			
		||||
}
 | 
			
		||||
func (OperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) {
 | 
			
		||||
	return fileDescriptor2, []int{0, 0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Represents the metadata of the long-running operation.
 | 
			
		||||
type OperationMetadata struct {
 | 
			
		||||
	// The time the operation was submitted.
 | 
			
		||||
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
 | 
			
		||||
	// The time operation processing started.
 | 
			
		||||
	StartTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
 | 
			
		||||
	// The time operation processing completed.
 | 
			
		||||
	EndTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
 | 
			
		||||
	// Indicates whether a request to cancel this operation has been made.
 | 
			
		||||
	IsCancellationRequested bool `protobuf:"varint,4,opt,name=is_cancellation_requested,json=isCancellationRequested" json:"is_cancellation_requested,omitempty"`
 | 
			
		||||
	// The operation type.
 | 
			
		||||
	OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,enum=google.cloud.ml.v1beta1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
 | 
			
		||||
	// Contains the name of the model associated with the operation.
 | 
			
		||||
	ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName" json:"model_name,omitempty"`
 | 
			
		||||
	// Contains the version associated with the operation.
 | 
			
		||||
	Version *Version `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) Reset()                    { *m = OperationMetadata{} }
 | 
			
		||||
func (m *OperationMetadata) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*OperationMetadata) ProtoMessage()               {}
 | 
			
		||||
func (*OperationMetadata) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetCreateTime() *google_protobuf2.Timestamp {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.CreateTime
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetStartTime() *google_protobuf2.Timestamp {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.StartTime
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetEndTime() *google_protobuf2.Timestamp {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.EndTime
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetIsCancellationRequested() bool {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.IsCancellationRequested
 | 
			
		||||
	}
 | 
			
		||||
	return false
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetOperationType() OperationMetadata_OperationType {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.OperationType
 | 
			
		||||
	}
 | 
			
		||||
	return OperationMetadata_OPERATION_TYPE_UNSPECIFIED
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetModelName() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.ModelName
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *OperationMetadata) GetVersion() *Version {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.Version
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	proto.RegisterType((*OperationMetadata)(nil), "google.cloud.ml.v1beta1.OperationMetadata")
 | 
			
		||||
	proto.RegisterEnum("google.cloud.ml.v1beta1.OperationMetadata_OperationType", OperationMetadata_OperationType_name, OperationMetadata_OperationType_value)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { proto.RegisterFile("google/cloud/ml/v1beta1/operation_metadata.proto", fileDescriptor2) }
 | 
			
		||||
 | 
			
		||||
var fileDescriptor2 = []byte{
 | 
			
		||||
	// 457 bytes of a gzipped FileDescriptorProto
 | 
			
		||||
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5f, 0x6b, 0xdb, 0x30,
 | 
			
		||||
	0x14, 0xc5, 0xe7, 0xb6, 0x6b, 0x1b, 0x75, 0x0d, 0x99, 0x1f, 0x56, 0x2f, 0x6c, 0xab, 0xe9, 0x53,
 | 
			
		||||
	0x60, 0x60, 0xaf, 0x1d, 0x83, 0x75, 0x7d, 0x6a, 0x13, 0x0d, 0x02, 0x6d, 0x6c, 0x54, 0xaf, 0xb0,
 | 
			
		||||
	0xbd, 0x18, 0xc5, 0xbe, 0x33, 0x02, 0xfd, 0xf1, 0x2c, 0x25, 0xd0, 0x0f, 0xb4, 0xef, 0x39, 0x22,
 | 
			
		||||
	0xd9, 0x34, 0x23, 0x84, 0x3e, 0xea, 0xdc, 0xf3, 0xbb, 0xf7, 0xf8, 0x5e, 0xa3, 0x4f, 0x95, 0x52,
 | 
			
		||||
	0x15, 0x87, 0xb8, 0xe0, 0x6a, 0x51, 0xc6, 0x82, 0xc7, 0xcb, 0xf3, 0x39, 0x18, 0x7a, 0x1e, 0xab,
 | 
			
		||||
	0x1a, 0x1a, 0x6a, 0x98, 0x92, 0xb9, 0x00, 0x43, 0x4b, 0x6a, 0x68, 0x54, 0x37, 0xca, 0x28, 0xff,
 | 
			
		||||
	0xc4, 0x11, 0x91, 0x25, 0x22, 0xc1, 0xa3, 0x96, 0x18, 0xbe, 0x6b, 0x5b, 0xd1, 0x9a, 0xc5, 0x54,
 | 
			
		||||
	0x4a, 0x65, 0x2c, 0xae, 0x1d, 0x36, 0xfc, 0xb8, 0x6d, 0x90, 0x50, 0x25, 0xf0, 0x5c, 0x43, 0xb3,
 | 
			
		||||
	0x64, 0x05, 0xb4, 0xe6, 0xd3, 0xd6, 0x6c, 0x5f, 0xf3, 0xc5, 0xef, 0xd8, 0x30, 0x01, 0xda, 0x50,
 | 
			
		||||
	0x51, 0x3b, 0xc3, 0xd9, 0xdf, 0x3d, 0xf4, 0x3a, 0xe9, 0x12, 0xde, 0xb5, 0x01, 0xfd, 0x2b, 0x74,
 | 
			
		||||
	0x54, 0x34, 0x40, 0x0d, 0xe4, 0x2b, 0x7f, 0xe0, 0x85, 0xde, 0xe8, 0xe8, 0x62, 0x18, 0xb5, 0x81,
 | 
			
		||||
	0xbb, 0x66, 0x51, 0xd6, 0x35, 0x23, 0xc8, 0xd9, 0x57, 0x82, 0x7f, 0x89, 0x90, 0x36, 0xb4, 0x31,
 | 
			
		||||
	0x8e, 0xdd, 0x79, 0x96, 0xed, 0x59, 0xb7, 0x45, 0xbf, 0xa0, 0x43, 0x90, 0xa5, 0x03, 0x77, 0x9f,
 | 
			
		||||
	0x05, 0x0f, 0x40, 0x96, 0x16, 0xfb, 0x86, 0xde, 0x32, 0x9d, 0x17, 0x54, 0x16, 0xc0, 0xb9, 0xdb,
 | 
			
		||||
	0x75, 0x03, 0x7f, 0x16, 0xa0, 0x0d, 0x94, 0xc1, 0x5e, 0xe8, 0x8d, 0x0e, 0xc9, 0x09, 0xd3, 0xe3,
 | 
			
		||||
	0xb5, 0x3a, 0xe9, 0xca, 0x7e, 0x8e, 0xfa, 0x4f, 0x17, 0x32, 0x8f, 0x35, 0x04, 0x2f, 0x43, 0x6f,
 | 
			
		||||
	0xd4, 0xbf, 0xf8, 0x1a, 0x6d, 0x39, 0x4f, 0xb4, 0xb1, 0xae, 0x27, 0x25, 0x7b, 0xac, 0x81, 0x1c,
 | 
			
		||||
	0xab, 0xf5, 0xa7, 0xff, 0x1e, 0x21, 0x77, 0x19, 0x49, 0x05, 0x04, 0xfb, 0xa1, 0x37, 0xea, 0x91,
 | 
			
		||||
	0x9e, 0x55, 0x66, 0xd4, 0x66, 0x3f, 0x58, 0x42, 0xa3, 0x99, 0x92, 0xc1, 0x81, 0xfd, 0xe2, 0x70,
 | 
			
		||||
	0xeb, 0xe0, 0x07, 0xe7, 0x23, 0x1d, 0x70, 0xc6, 0xd0, 0xf1, 0x7f, 0xa3, 0xfd, 0x0f, 0x68, 0x98,
 | 
			
		||||
	0xa4, 0x98, 0x5c, 0x67, 0xd3, 0x64, 0x96, 0x67, 0x3f, 0x53, 0x9c, 0xff, 0x98, 0xdd, 0xa7, 0x78,
 | 
			
		||||
	0x3c, 0xfd, 0x3e, 0xc5, 0x93, 0xc1, 0x0b, 0xdf, 0x47, 0xfd, 0x31, 0xc1, 0xd7, 0x19, 0xce, 0x1f,
 | 
			
		||||
	0x30, 0xb9, 0x9f, 0x26, 0xb3, 0x81, 0xb7, 0xd2, 0x26, 0xf8, 0x16, 0xaf, 0x69, 0x3b, 0xfe, 0x00,
 | 
			
		||||
	0xbd, 0x6a, 0xb5, 0xbb, 0x64, 0x82, 0x6f, 0x07, 0xbb, 0x37, 0x4b, 0x74, 0x5a, 0x28, 0xb1, 0x11,
 | 
			
		||||
	0x8d, 0xd6, 0xac, 0x8b, 0x77, 0xf3, 0x66, 0x63, 0x31, 0xe9, 0xea, 0x66, 0xa9, 0xf7, 0xeb, 0xb2,
 | 
			
		||||
	0xc5, 0x2a, 0xc5, 0xa9, 0xac, 0x22, 0xd5, 0x54, 0x71, 0x05, 0xd2, 0x5e, 0x34, 0x76, 0x25, 0x5a,
 | 
			
		||||
	0x33, 0xbd, 0xf1, 0x47, 0x5f, 0x09, 0x3e, 0xdf, 0xb7, 0xae, 0xcf, 0xff, 0x02, 0x00, 0x00, 0xff,
 | 
			
		||||
	0xff, 0x89, 0xf8, 0x21, 0xa7, 0x5f, 0x03, 0x00, 0x00,
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										344
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/prediction_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										344
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/prediction_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,344 @@
 | 
			
		||||
// Code generated by protoc-gen-go.
 | 
			
		||||
// source: google/cloud/ml/v1beta1/prediction_service.proto
 | 
			
		||||
// DO NOT EDIT!
 | 
			
		||||
 | 
			
		||||
package ml
 | 
			
		||||
 | 
			
		||||
import proto "github.com/golang/protobuf/proto"
 | 
			
		||||
import fmt "fmt"
 | 
			
		||||
import math "math"
 | 
			
		||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
 | 
			
		||||
import google_api3 "google.golang.org/genproto/googleapis/api/httpbody"
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	context "golang.org/x/net/context"
 | 
			
		||||
	grpc "google.golang.org/grpc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ = proto.Marshal
 | 
			
		||||
var _ = fmt.Errorf
 | 
			
		||||
var _ = math.Inf
 | 
			
		||||
 | 
			
		||||
// 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.
 | 
			
		||||
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" json:"name,omitempty"`
 | 
			
		||||
	//
 | 
			
		||||
	// Required. The prediction request body.
 | 
			
		||||
	HttpBody *google_api3.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody" json:"http_body,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *PredictRequest) Reset()                    { *m = PredictRequest{} }
 | 
			
		||||
func (m *PredictRequest) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*PredictRequest) ProtoMessage()               {}
 | 
			
		||||
func (*PredictRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
 | 
			
		||||
 | 
			
		||||
func (m *PredictRequest) GetName() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.Name
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *PredictRequest) GetHttpBody() *google_api3.HttpBody {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.HttpBody
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	proto.RegisterType((*PredictRequest)(nil), "google.cloud.ml.v1beta1.PredictRequest")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ context.Context
 | 
			
		||||
var _ grpc.ClientConn
 | 
			
		||||
 | 
			
		||||
// This is a compile-time assertion to ensure that this generated file
 | 
			
		||||
// is compatible with the grpc package it is being compiled against.
 | 
			
		||||
const _ = grpc.SupportPackageIsVersion4
 | 
			
		||||
 | 
			
		||||
// Client API for OnlinePredictionService service
 | 
			
		||||
 | 
			
		||||
type OnlinePredictionServiceClient interface {
 | 
			
		||||
	// Performs prediction on the data in the request.
 | 
			
		||||
	//
 | 
			
		||||
	// **** REMOVE FROM GENERATED DOCUMENTATION
 | 
			
		||||
	Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*google_api3.HttpBody, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type onlinePredictionServiceClient struct {
 | 
			
		||||
	cc *grpc.ClientConn
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewOnlinePredictionServiceClient(cc *grpc.ClientConn) OnlinePredictionServiceClient {
 | 
			
		||||
	return &onlinePredictionServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *onlinePredictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*google_api3.HttpBody, error) {
 | 
			
		||||
	out := new(google_api3.HttpBody)
 | 
			
		||||
	err := grpc.Invoke(ctx, "/google.cloud.ml.v1beta1.OnlinePredictionService/Predict", in, out, c.cc, opts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Server API for OnlinePredictionService service
 | 
			
		||||
 | 
			
		||||
type OnlinePredictionServiceServer interface {
 | 
			
		||||
	// Performs prediction on the data in the request.
 | 
			
		||||
	//
 | 
			
		||||
	// **** REMOVE FROM GENERATED DOCUMENTATION
 | 
			
		||||
	Predict(context.Context, *PredictRequest) (*google_api3.HttpBody, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer) {
 | 
			
		||||
	s.RegisterService(&_OnlinePredictionService_serviceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _OnlinePredictionService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(PredictRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(OnlinePredictionServiceServer).Predict(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: "/google.cloud.ml.v1beta1.OnlinePredictionService/Predict",
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(OnlinePredictionServiceServer).Predict(ctx, req.(*PredictRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _OnlinePredictionService_serviceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "google.cloud.ml.v1beta1.OnlinePredictionService",
 | 
			
		||||
	HandlerType: (*OnlinePredictionServiceServer)(nil),
 | 
			
		||||
	Methods: []grpc.MethodDesc{
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "Predict",
 | 
			
		||||
			Handler:    _OnlinePredictionService_Predict_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "google/cloud/ml/v1beta1/prediction_service.proto",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { proto.RegisterFile("google/cloud/ml/v1beta1/prediction_service.proto", fileDescriptor3) }
 | 
			
		||||
 | 
			
		||||
var fileDescriptor3 = []byte{
 | 
			
		||||
	// 312 bytes of a gzipped FileDescriptorProto
 | 
			
		||||
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x4d, 0x4a, 0x03, 0x31,
 | 
			
		||||
	0x14, 0xc7, 0x49, 0x11, 0xb5, 0x11, 0x5c, 0x04, 0xb1, 0xb5, 0x08, 0x96, 0xba, 0xb0, 0x74, 0x91,
 | 
			
		||||
	0xd8, 0xba, 0xb2, 0xe2, 0xa6, 0x2b, 0x77, 0x0e, 0x75, 0x21, 0xb8, 0x29, 0xe9, 0x4c, 0x48, 0x23,
 | 
			
		||||
	0x99, 0xbc, 0x38, 0x93, 0x16, 0x8b, 0xb8, 0xf1, 0x0a, 0x3d, 0x9a, 0x57, 0xf0, 0x20, 0x92, 0x49,
 | 
			
		||||
	0x28, 0xca, 0xe8, 0xee, 0x31, 0x6f, 0x7e, 0xef, 0xff, 0x11, 0x7c, 0x29, 0x01, 0xa4, 0x16, 0x2c,
 | 
			
		||||
	0xd5, 0xb0, 0xcc, 0x58, 0xae, 0xd9, 0x6a, 0x38, 0x17, 0x8e, 0x0f, 0x99, 0x2d, 0x44, 0xa6, 0x52,
 | 
			
		||||
	0xa7, 0xc0, 0xcc, 0x4a, 0x51, 0xac, 0x54, 0x2a, 0xa8, 0x2d, 0xc0, 0x01, 0x69, 0x05, 0x82, 0x56,
 | 
			
		||||
	0x04, 0xcd, 0x35, 0x8d, 0x44, 0xe7, 0x34, 0x9e, 0xe2, 0x56, 0x31, 0x6e, 0x0c, 0x38, 0xee, 0xe9,
 | 
			
		||||
	0x32, 0x60, 0x9d, 0x93, 0x1f, 0xdb, 0x85, 0x73, 0x76, 0x0e, 0xd9, 0x3a, 0xac, 0x7a, 0x8f, 0xf8,
 | 
			
		||||
	0x30, 0x09, 0x6a, 0x53, 0xf1, 0xb2, 0x14, 0xa5, 0x23, 0x04, 0xef, 0x18, 0x9e, 0x8b, 0x36, 0xea,
 | 
			
		||||
	0xa2, 0x7e, 0x73, 0x5a, 0xcd, 0x64, 0x88, 0x9b, 0x9e, 0x9b, 0x79, 0xb0, 0xdd, 0xe8, 0xa2, 0xfe,
 | 
			
		||||
	0xc1, 0xe8, 0x88, 0x46, 0x2f, 0xdc, 0x2a, 0x7a, 0xe7, 0x9c, 0x9d, 0x40, 0xb6, 0x9e, 0xee, 0x2f,
 | 
			
		||||
	0xe2, 0x34, 0xda, 0x20, 0xdc, 0xba, 0x37, 0x5a, 0x19, 0x91, 0x6c, 0xd3, 0x3c, 0x84, 0x30, 0xe4,
 | 
			
		||||
	0x15, 0xef, 0xc5, 0x8f, 0xe4, 0x82, 0xfe, 0x13, 0x89, 0xfe, 0xb6, 0xd5, 0xf9, 0x53, 0xaf, 0x47,
 | 
			
		||||
	0x3f, 0x3e, 0xbf, 0x36, 0x8d, 0x7e, 0xef, 0x7c, 0xdb, 0xdd, 0x9b, 0x37, 0x7c, 0x6b, 0x0b, 0x78,
 | 
			
		||||
	0x16, 0xa9, 0x2b, 0xd9, 0x60, 0xf0, 0x3e, 0x8e, 0x75, 0x8e, 0xd1, 0x60, 0xb2, 0xc2, 0x67, 0x29,
 | 
			
		||||
	0xe4, 0x35, 0x4d, 0x7f, 0x33, 0x1e, 0x98, 0x1c, 0xd7, 0xfc, 0x26, 0xbe, 0xa9, 0x04, 0x3d, 0x5d,
 | 
			
		||||
	0x47, 0x4c, 0x82, 0xe6, 0x46, 0x52, 0x28, 0x24, 0x93, 0xc2, 0x54, 0x3d, 0xb2, 0xb0, 0xe2, 0x56,
 | 
			
		||||
	0x95, 0xb5, 0xe7, 0xbc, 0xc9, 0xf5, 0x7c, 0xb7, 0xfa, 0xeb, 0xea, 0x3b, 0x00, 0x00, 0xff, 0xff,
 | 
			
		||||
	0x00, 0x26, 0x25, 0x67, 0xf3, 0x01, 0x00, 0x00,
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										179
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/project_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										179
									
								
								vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/project_service.pb.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,179 @@
 | 
			
		||||
// Code generated by protoc-gen-go.
 | 
			
		||||
// source: google/cloud/ml/v1beta1/project_service.proto
 | 
			
		||||
// DO NOT EDIT!
 | 
			
		||||
 | 
			
		||||
package ml
 | 
			
		||||
 | 
			
		||||
import proto "github.com/golang/protobuf/proto"
 | 
			
		||||
import fmt "fmt"
 | 
			
		||||
import math "math"
 | 
			
		||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	context "golang.org/x/net/context"
 | 
			
		||||
	grpc "google.golang.org/grpc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ = proto.Marshal
 | 
			
		||||
var _ = fmt.Errorf
 | 
			
		||||
var _ = math.Inf
 | 
			
		||||
 | 
			
		||||
// Requests service account information associated with a project.
 | 
			
		||||
type GetConfigRequest struct {
 | 
			
		||||
	// Required. The project name.
 | 
			
		||||
	//
 | 
			
		||||
	// Authorization: requires `Viewer` role on the specified project.
 | 
			
		||||
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigRequest) Reset()                    { *m = GetConfigRequest{} }
 | 
			
		||||
func (m *GetConfigRequest) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*GetConfigRequest) ProtoMessage()               {}
 | 
			
		||||
func (*GetConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigRequest) GetName() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.Name
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Returns service account information associated with a project.
 | 
			
		||||
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" json:"service_account,omitempty"`
 | 
			
		||||
	// The project number for `service_account`.
 | 
			
		||||
	ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject" json:"service_account_project,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigResponse) Reset()                    { *m = GetConfigResponse{} }
 | 
			
		||||
func (m *GetConfigResponse) String() string            { return proto.CompactTextString(m) }
 | 
			
		||||
func (*GetConfigResponse) ProtoMessage()               {}
 | 
			
		||||
func (*GetConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigResponse) GetServiceAccount() string {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.ServiceAccount
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *GetConfigResponse) GetServiceAccountProject() int64 {
 | 
			
		||||
	if m != nil {
 | 
			
		||||
		return m.ServiceAccountProject
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	proto.RegisterType((*GetConfigRequest)(nil), "google.cloud.ml.v1beta1.GetConfigRequest")
 | 
			
		||||
	proto.RegisterType((*GetConfigResponse)(nil), "google.cloud.ml.v1beta1.GetConfigResponse")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Reference imports to suppress errors if they are not otherwise used.
 | 
			
		||||
var _ context.Context
 | 
			
		||||
var _ grpc.ClientConn
 | 
			
		||||
 | 
			
		||||
// This is a compile-time assertion to ensure that this generated file
 | 
			
		||||
// is compatible with the grpc package it is being compiled against.
 | 
			
		||||
const _ = grpc.SupportPackageIsVersion4
 | 
			
		||||
 | 
			
		||||
// Client API for ProjectManagementService service
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type projectManagementServiceClient struct {
 | 
			
		||||
	cc *grpc.ClientConn
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient {
 | 
			
		||||
	return &projectManagementServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *projectManagementServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
 | 
			
		||||
	out := new(GetConfigResponse)
 | 
			
		||||
	err := grpc.Invoke(ctx, "/google.cloud.ml.v1beta1.ProjectManagementService/GetConfig", in, out, c.cc, opts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Server API for ProjectManagementService service
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
 | 
			
		||||
	s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _ProjectManagementService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(GetConfigRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: "/google.cloud.ml.v1beta1.ProjectManagementService/GetConfig",
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "google.cloud.ml.v1beta1.ProjectManagementService",
 | 
			
		||||
	HandlerType: (*ProjectManagementServiceServer)(nil),
 | 
			
		||||
	Methods: []grpc.MethodDesc{
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "GetConfig",
 | 
			
		||||
			Handler:    _ProjectManagementService_GetConfig_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "google/cloud/ml/v1beta1/project_service.proto",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { proto.RegisterFile("google/cloud/ml/v1beta1/project_service.proto", fileDescriptor4) }
 | 
			
		||||
 | 
			
		||||
var fileDescriptor4 = []byte{
 | 
			
		||||
	// 327 bytes of a gzipped FileDescriptorProto
 | 
			
		||||
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x4a, 0x43, 0x31,
 | 
			
		||||
	0x10, 0xc6, 0x79, 0x55, 0x84, 0x66, 0xe1, 0x9f, 0x88, 0xb4, 0x14, 0xc1, 0x52, 0xa4, 0xd6, 0xa2,
 | 
			
		||||
	0x09, 0x55, 0x10, 0x54, 0x5c, 0x58, 0x17, 0xae, 0x84, 0x52, 0x77, 0x6e, 0x4a, 0xfa, 0x1c, 0xc3,
 | 
			
		||||
	0x93, 0x24, 0x13, 0x5f, 0xd2, 0x6e, 0xc4, 0x8d, 0x27, 0x10, 0x3c, 0x87, 0xa7, 0xf1, 0x0a, 0x1e,
 | 
			
		||||
	0x44, 0xfa, 0x92, 0x16, 0x6d, 0x11, 0xdc, 0x0d, 0x33, 0xbf, 0x6f, 0x32, 0xdf, 0x4c, 0xc8, 0xa1,
 | 
			
		||||
	0x44, 0x94, 0x0a, 0x78, 0xaa, 0x70, 0x74, 0xcf, 0xb5, 0xe2, 0xe3, 0xce, 0x10, 0xbc, 0xe8, 0x70,
 | 
			
		||||
	0x9b, 0xe3, 0x23, 0xa4, 0x7e, 0xe0, 0x20, 0x1f, 0x67, 0x29, 0x30, 0x9b, 0xa3, 0x47, 0x5a, 0x09,
 | 
			
		||||
	0x38, 0x2b, 0x70, 0xa6, 0x15, 0x8b, 0x78, 0x6d, 0x3b, 0xf6, 0x11, 0x36, 0xe3, 0xc2, 0x18, 0xf4,
 | 
			
		||||
	0xc2, 0x67, 0x68, 0x5c, 0x90, 0x35, 0x9a, 0x64, 0xfd, 0x1a, 0xfc, 0x15, 0x9a, 0x87, 0x4c, 0xf6,
 | 
			
		||||
	0xe1, 0x69, 0x04, 0xce, 0x53, 0x4a, 0x96, 0x8d, 0xd0, 0x50, 0x4d, 0xea, 0x49, 0xab, 0xdc, 0x2f,
 | 
			
		||||
	0xe2, 0x86, 0x27, 0x1b, 0x3f, 0x38, 0x67, 0xd1, 0x38, 0xa0, 0x7b, 0x64, 0x2d, 0x0e, 0x31, 0x10,
 | 
			
		||||
	0x69, 0x8a, 0x23, 0xe3, 0xa3, 0x66, 0x35, 0xa6, 0x2f, 0x43, 0x96, 0x9e, 0x90, 0xca, 0x1c, 0x38,
 | 
			
		||||
	0x88, 0x2e, 0xaa, 0xa5, 0x7a, 0xd2, 0x5a, 0xea, 0x6f, 0xfd, 0x16, 0xf4, 0x42, 0xf1, 0xe8, 0x23,
 | 
			
		||||
	0x21, 0xd5, 0x18, 0xdf, 0x08, 0x23, 0x24, 0x68, 0x30, 0xfe, 0x36, 0xa0, 0xf4, 0x2d, 0x21, 0xe5,
 | 
			
		||||
	0xd9, 0x4c, 0x74, 0x9f, 0xfd, 0xb1, 0x00, 0x36, 0xef, 0xaf, 0xd6, 0xfe, 0x0f, 0x1a, 0x2c, 0x36,
 | 
			
		||||
	0x0e, 0x5e, 0x3f, 0xbf, 0xde, 0x4b, 0x4d, 0xba, 0x3b, 0x5b, 0xff, 0xf3, 0x64, 0x1f, 0x17, 0x71,
 | 
			
		||||
	0x7c, 0xc7, 0xdb, 0x2f, 0x67, 0x72, 0xaa, 0xea, 0x3a, 0xb2, 0x93, 0xa2, 0x5e, 0x68, 0x2f, 0x6c,
 | 
			
		||||
	0x36, 0x7d, 0xa2, 0xbb, 0x19, 0xfd, 0x44, 0x17, 0xbd, 0xc9, 0x15, 0x7a, 0xc9, 0xdd, 0x69, 0xd4,
 | 
			
		||||
	0x48, 0x54, 0xc2, 0x48, 0x86, 0xb9, 0xe4, 0x12, 0x4c, 0x71, 0x23, 0x1e, 0x4a, 0xc2, 0x66, 0x6e,
 | 
			
		||||
	0xe1, 0x33, 0x9c, 0x6b, 0x35, 0x5c, 0x29, 0xa8, 0xe3, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76,
 | 
			
		||||
	0x59, 0xc4, 0x91, 0x31, 0x02, 0x00, 0x00,
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user