1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/ml/v1beta1/project_service.proto
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
12 context "golang.org/x/net/context"
13 grpc "google.golang.org/grpc"
16 // Reference imports to suppress errors if they are not otherwise used.
21 // Requests service account information associated with a project.
22 type GetConfigRequest struct {
23 // Required. The project name.
25 // Authorization: requires `Viewer` role on the specified project.
26 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
29 func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} }
30 func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) }
31 func (*GetConfigRequest) ProtoMessage() {}
32 func (*GetConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
34 func (m *GetConfigRequest) GetName() string {
41 // Returns service account information associated with a project.
42 type GetConfigResponse struct {
43 // The service account Cloud ML uses to access resources in the project.
44 ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount" json:"service_account,omitempty"`
45 // The project number for `service_account`.
46 ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject" json:"service_account_project,omitempty"`
49 func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} }
50 func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) }
51 func (*GetConfigResponse) ProtoMessage() {}
52 func (*GetConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
54 func (m *GetConfigResponse) GetServiceAccount() string {
56 return m.ServiceAccount
61 func (m *GetConfigResponse) GetServiceAccountProject() int64 {
63 return m.ServiceAccountProject
69 proto.RegisterType((*GetConfigRequest)(nil), "google.cloud.ml.v1beta1.GetConfigRequest")
70 proto.RegisterType((*GetConfigResponse)(nil), "google.cloud.ml.v1beta1.GetConfigResponse")
73 // Reference imports to suppress errors if they are not otherwise used.
77 // This is a compile-time assertion to ensure that this generated file
78 // is compatible with the grpc package it is being compiled against.
79 const _ = grpc.SupportPackageIsVersion4
81 // Client API for ProjectManagementService service
83 type ProjectManagementServiceClient interface {
84 // Get the service account information associated with your project. You need
85 // this information in order to grant the service account persmissions for
86 // the Google Cloud Storage location where you put your model training code
87 // for training the model with Google Cloud Machine Learning.
88 GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
91 type projectManagementServiceClient struct {
95 func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient {
96 return &projectManagementServiceClient{cc}
99 func (c *projectManagementServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
100 out := new(GetConfigResponse)
101 err := grpc.Invoke(ctx, "/google.cloud.ml.v1beta1.ProjectManagementService/GetConfig", in, out, c.cc, opts...)
108 // Server API for ProjectManagementService service
110 type ProjectManagementServiceServer interface {
111 // Get the service account information associated with your project. You need
112 // this information in order to grant the service account persmissions for
113 // the Google Cloud Storage location where you put your model training code
114 // for training the model with Google Cloud Machine Learning.
115 GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
118 func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
119 s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
122 func _ProjectManagementService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
123 in := new(GetConfigRequest)
124 if err := dec(in); err != nil {
127 if interceptor == nil {
128 return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
130 info := &grpc.UnaryServerInfo{
132 FullMethod: "/google.cloud.ml.v1beta1.ProjectManagementService/GetConfig",
134 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
135 return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
137 return interceptor(ctx, in, info, handler)
140 var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
141 ServiceName: "google.cloud.ml.v1beta1.ProjectManagementService",
142 HandlerType: (*ProjectManagementServiceServer)(nil),
143 Methods: []grpc.MethodDesc{
145 MethodName: "GetConfig",
146 Handler: _ProjectManagementService_GetConfig_Handler,
149 Streams: []grpc.StreamDesc{},
150 Metadata: "google/cloud/ml/v1beta1/project_service.proto",
153 func init() { proto.RegisterFile("google/cloud/ml/v1beta1/project_service.proto", fileDescriptor4) }
155 var fileDescriptor4 = []byte{
156 // 327 bytes of a gzipped FileDescriptorProto
157 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x4a, 0x43, 0x31,
158 0x10, 0xc6, 0x79, 0x55, 0x84, 0x66, 0xe1, 0x9f, 0x88, 0xb4, 0x14, 0xc1, 0x52, 0xa4, 0xd6, 0xa2,
159 0x09, 0x55, 0x10, 0x54, 0x5c, 0x58, 0x17, 0xae, 0x84, 0x52, 0x77, 0x6e, 0x4a, 0xfa, 0x1c, 0xc3,
160 0x93, 0x24, 0x13, 0x5f, 0xd2, 0x6e, 0xc4, 0x8d, 0x27, 0x10, 0x3c, 0x87, 0xa7, 0xf1, 0x0a, 0x1e,
161 0x44, 0xfa, 0x92, 0x16, 0x6d, 0x11, 0xdc, 0x0d, 0x33, 0xbf, 0x6f, 0x32, 0xdf, 0x4c, 0xc8, 0xa1,
162 0x44, 0x94, 0x0a, 0x78, 0xaa, 0x70, 0x74, 0xcf, 0xb5, 0xe2, 0xe3, 0xce, 0x10, 0xbc, 0xe8, 0x70,
163 0x9b, 0xe3, 0x23, 0xa4, 0x7e, 0xe0, 0x20, 0x1f, 0x67, 0x29, 0x30, 0x9b, 0xa3, 0x47, 0x5a, 0x09,
164 0x38, 0x2b, 0x70, 0xa6, 0x15, 0x8b, 0x78, 0x6d, 0x3b, 0xf6, 0x11, 0x36, 0xe3, 0xc2, 0x18, 0xf4,
165 0xc2, 0x67, 0x68, 0x5c, 0x90, 0x35, 0x9a, 0x64, 0xfd, 0x1a, 0xfc, 0x15, 0x9a, 0x87, 0x4c, 0xf6,
166 0xe1, 0x69, 0x04, 0xce, 0x53, 0x4a, 0x96, 0x8d, 0xd0, 0x50, 0x4d, 0xea, 0x49, 0xab, 0xdc, 0x2f,
167 0xe2, 0x86, 0x27, 0x1b, 0x3f, 0x38, 0x67, 0xd1, 0x38, 0xa0, 0x7b, 0x64, 0x2d, 0x0e, 0x31, 0x10,
168 0x69, 0x8a, 0x23, 0xe3, 0xa3, 0x66, 0x35, 0xa6, 0x2f, 0x43, 0x96, 0x9e, 0x90, 0xca, 0x1c, 0x38,
169 0x88, 0x2e, 0xaa, 0xa5, 0x7a, 0xd2, 0x5a, 0xea, 0x6f, 0xfd, 0x16, 0xf4, 0x42, 0xf1, 0xe8, 0x23,
170 0x21, 0xd5, 0x18, 0xdf, 0x08, 0x23, 0x24, 0x68, 0x30, 0xfe, 0x36, 0xa0, 0xf4, 0x2d, 0x21, 0xe5,
171 0xd9, 0x4c, 0x74, 0x9f, 0xfd, 0xb1, 0x00, 0x36, 0xef, 0xaf, 0xd6, 0xfe, 0x0f, 0x1a, 0x2c, 0x36,
172 0x0e, 0x5e, 0x3f, 0xbf, 0xde, 0x4b, 0x4d, 0xba, 0x3b, 0x5b, 0xff, 0xf3, 0x64, 0x1f, 0x17, 0x71,
173 0x7c, 0xc7, 0xdb, 0x2f, 0x67, 0x72, 0xaa, 0xea, 0x3a, 0xb2, 0x93, 0xa2, 0x5e, 0x68, 0x2f, 0x6c,
174 0x36, 0x7d, 0xa2, 0xbb, 0x19, 0xfd, 0x44, 0x17, 0xbd, 0xc9, 0x15, 0x7a, 0xc9, 0xdd, 0x69, 0xd4,
175 0x48, 0x54, 0xc2, 0x48, 0x86, 0xb9, 0xe4, 0x12, 0x4c, 0x71, 0x23, 0x1e, 0x4a, 0xc2, 0x66, 0x6e,
176 0xe1, 0x33, 0x9c, 0x6b, 0x35, 0x5c, 0x29, 0xa8, 0xe3, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76,
177 0x59, 0xc4, 0x91, 0x31, 0x02, 0x00, 0x00,