OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / cloud / ml / v1 / project_service.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/ml/v1/project_service.proto
3
4 package ml
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11 import (
12         context "golang.org/x/net/context"
13         grpc "google.golang.org/grpc"
14 )
15
16 // Reference imports to suppress errors if they are not otherwise used.
17 var _ = proto.Marshal
18 var _ = fmt.Errorf
19 var _ = math.Inf
20
21 // Requests service account information associated with a project.
22 type GetConfigRequest struct {
23         // Required. The project name.
24         //
25         // Authorization: requires `Viewer` role on the specified project.
26         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
27 }
28
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} }
33
34 func (m *GetConfigRequest) GetName() string {
35         if m != nil {
36                 return m.Name
37         }
38         return ""
39 }
40
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"`
47 }
48
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} }
53
54 func (m *GetConfigResponse) GetServiceAccount() string {
55         if m != nil {
56                 return m.ServiceAccount
57         }
58         return ""
59 }
60
61 func (m *GetConfigResponse) GetServiceAccountProject() int64 {
62         if m != nil {
63                 return m.ServiceAccountProject
64         }
65         return 0
66 }
67
68 func init() {
69         proto.RegisterType((*GetConfigRequest)(nil), "google.cloud.ml.v1.GetConfigRequest")
70         proto.RegisterType((*GetConfigResponse)(nil), "google.cloud.ml.v1.GetConfigResponse")
71 }
72
73 // Reference imports to suppress errors if they are not otherwise used.
74 var _ context.Context
75 var _ grpc.ClientConn
76
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
80
81 // Client API for ProjectManagementService service
82
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)
89 }
90
91 type projectManagementServiceClient struct {
92         cc *grpc.ClientConn
93 }
94
95 func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient {
96         return &projectManagementServiceClient{cc}
97 }
98
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.v1.ProjectManagementService/GetConfig", in, out, c.cc, opts...)
102         if err != nil {
103                 return nil, err
104         }
105         return out, nil
106 }
107
108 // Server API for ProjectManagementService service
109
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)
116 }
117
118 func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
119         s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
120 }
121
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 {
125                 return nil, err
126         }
127         if interceptor == nil {
128                 return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
129         }
130         info := &grpc.UnaryServerInfo{
131                 Server:     srv,
132                 FullMethod: "/google.cloud.ml.v1.ProjectManagementService/GetConfig",
133         }
134         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
135                 return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
136         }
137         return interceptor(ctx, in, info, handler)
138 }
139
140 var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
141         ServiceName: "google.cloud.ml.v1.ProjectManagementService",
142         HandlerType: (*ProjectManagementServiceServer)(nil),
143         Methods: []grpc.MethodDesc{
144                 {
145                         MethodName: "GetConfig",
146                         Handler:    _ProjectManagementService_GetConfig_Handler,
147                 },
148         },
149         Streams:  []grpc.StreamDesc{},
150         Metadata: "google/cloud/ml/v1/project_service.proto",
151 }
152
153 func init() { proto.RegisterFile("google/cloud/ml/v1/project_service.proto", fileDescriptor4) }
154
155 var fileDescriptor4 = []byte{
156         // 319 bytes of a gzipped FileDescriptorProto
157         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbf, 0x4a, 0x43, 0x31,
158         0x14, 0xc6, 0xb9, 0x55, 0x84, 0x66, 0xf0, 0x4f, 0x44, 0x2c, 0x45, 0xb0, 0x16, 0xb5, 0xc5, 0x21,
159         0xa1, 0x2a, 0x0e, 0x8a, 0x83, 0x75, 0x70, 0x12, 0x4a, 0xdd, 0x5c, 0x4a, 0xbc, 0x1e, 0x43, 0x24,
160         0xc9, 0x89, 0x37, 0xe9, 0x5d, 0xc4, 0x41, 0x5f, 0xc1, 0xdd, 0x97, 0xf2, 0x15, 0x7c, 0x10, 0xe9,
161         0x4d, 0x94, 0xda, 0x0e, 0x6e, 0x87, 0x73, 0x7e, 0x5f, 0xf2, 0x7d, 0xe7, 0x90, 0xae, 0x44, 0x94,
162         0x1a, 0x78, 0xae, 0x71, 0x7c, 0xcf, 0x8d, 0xe6, 0x65, 0x8f, 0xbb, 0x02, 0x1f, 0x21, 0x0f, 0x23,
163         0x0f, 0x45, 0xa9, 0x72, 0x60, 0xae, 0xc0, 0x80, 0x94, 0x46, 0x92, 0x55, 0x24, 0x33, 0x9a, 0x95,
164         0xbd, 0xe6, 0x56, 0x52, 0x0b, 0xa7, 0xb8, 0xb0, 0x16, 0x83, 0x08, 0x0a, 0xad, 0x8f, 0x8a, 0xf6,
165         0x3e, 0x59, 0xbd, 0x82, 0x70, 0x89, 0xf6, 0x41, 0xc9, 0x21, 0x3c, 0x8d, 0xc1, 0x07, 0x4a, 0xc9,
166         0xa2, 0x15, 0x06, 0x1a, 0x59, 0x2b, 0xeb, 0xd6, 0x87, 0x55, 0xdd, 0x0e, 0x64, 0x6d, 0x8a, 0xf3,
167         0x0e, 0xad, 0x07, 0xda, 0x21, 0x2b, 0xe9, 0xff, 0x91, 0xc8, 0x73, 0x1c, 0xdb, 0x90, 0x34, 0xcb,
168         0xa9, 0x7d, 0x11, 0xbb, 0xf4, 0x84, 0x6c, 0xce, 0x80, 0xa3, 0x14, 0xa0, 0x51, 0x6b, 0x65, 0xdd,
169         0x85, 0xe1, 0xc6, 0x5f, 0xc1, 0x20, 0x0e, 0x0f, 0x3f, 0x32, 0xd2, 0x48, 0xf5, 0xb5, 0xb0, 0x42,
170         0x82, 0x01, 0x1b, 0x6e, 0x22, 0x4a, 0x5f, 0x33, 0x52, 0xff, 0xf5, 0x44, 0x77, 0xd9, 0x7c, 0x76,
171         0x36, 0x1b, 0xad, 0xb9, 0xf7, 0x0f, 0x15, 0x83, 0xb5, 0x3b, 0x6f, 0x9f, 0x5f, 0xef, 0xb5, 0x1d,
172         0xba, 0x3d, 0x59, 0xf5, 0xf3, 0x64, 0x01, 0xe7, 0xc9, 0xaf, 0xe7, 0x07, 0x2f, 0xa7, 0xf2, 0x47,
173         0xd0, 0x57, 0xa4, 0x99, 0xa3, 0x99, 0x7b, 0x54, 0x38, 0xc5, 0xca, 0x5e, 0x7f, 0x3d, 0x79, 0x4f,
174         0x8e, 0x07, 0x93, 0x8d, 0x0f, 0xb2, 0xdb, 0xe3, 0x84, 0x4b, 0xd4, 0xc2, 0x4a, 0x86, 0x85, 0xe4,
175         0x12, 0x6c, 0x75, 0x0f, 0x1e, 0x47, 0xc2, 0x29, 0x3f, 0x7d, 0xee, 0x33, 0xa3, 0xef, 0x96, 0x2a,
176         0xe0, 0xe8, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xd0, 0xa5, 0x43, 0x33, 0x0e, 0x02, 0x00, 0x00,
177 }