You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

230 lines
9.7 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/ml/v1/project_service.proto
  3. package ml // import "google.golang.org/genproto/googleapis/cloud/ml/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  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,proto3" json:"name,omitempty"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} }
  32. func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) }
  33. func (*GetConfigRequest) ProtoMessage() {}
  34. func (*GetConfigRequest) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_project_service_bfab71f1ac16d243, []int{0}
  36. }
  37. func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_GetConfigRequest.Unmarshal(m, b)
  39. }
  40. func (m *GetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_GetConfigRequest.Marshal(b, m, deterministic)
  42. }
  43. func (dst *GetConfigRequest) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_GetConfigRequest.Merge(dst, src)
  45. }
  46. func (m *GetConfigRequest) XXX_Size() int {
  47. return xxx_messageInfo_GetConfigRequest.Size(m)
  48. }
  49. func (m *GetConfigRequest) XXX_DiscardUnknown() {
  50. xxx_messageInfo_GetConfigRequest.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_GetConfigRequest proto.InternalMessageInfo
  53. func (m *GetConfigRequest) GetName() string {
  54. if m != nil {
  55. return m.Name
  56. }
  57. return ""
  58. }
  59. // Returns service account information associated with a project.
  60. type GetConfigResponse struct {
  61. // The service account Cloud ML uses to access resources in the project.
  62. ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
  63. // The project number for `service_account`.
  64. ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject,proto3" json:"service_account_project,omitempty"`
  65. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  66. XXX_unrecognized []byte `json:"-"`
  67. XXX_sizecache int32 `json:"-"`
  68. }
  69. func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} }
  70. func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) }
  71. func (*GetConfigResponse) ProtoMessage() {}
  72. func (*GetConfigResponse) Descriptor() ([]byte, []int) {
  73. return fileDescriptor_project_service_bfab71f1ac16d243, []int{1}
  74. }
  75. func (m *GetConfigResponse) XXX_Unmarshal(b []byte) error {
  76. return xxx_messageInfo_GetConfigResponse.Unmarshal(m, b)
  77. }
  78. func (m *GetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  79. return xxx_messageInfo_GetConfigResponse.Marshal(b, m, deterministic)
  80. }
  81. func (dst *GetConfigResponse) XXX_Merge(src proto.Message) {
  82. xxx_messageInfo_GetConfigResponse.Merge(dst, src)
  83. }
  84. func (m *GetConfigResponse) XXX_Size() int {
  85. return xxx_messageInfo_GetConfigResponse.Size(m)
  86. }
  87. func (m *GetConfigResponse) XXX_DiscardUnknown() {
  88. xxx_messageInfo_GetConfigResponse.DiscardUnknown(m)
  89. }
  90. var xxx_messageInfo_GetConfigResponse proto.InternalMessageInfo
  91. func (m *GetConfigResponse) GetServiceAccount() string {
  92. if m != nil {
  93. return m.ServiceAccount
  94. }
  95. return ""
  96. }
  97. func (m *GetConfigResponse) GetServiceAccountProject() int64 {
  98. if m != nil {
  99. return m.ServiceAccountProject
  100. }
  101. return 0
  102. }
  103. func init() {
  104. proto.RegisterType((*GetConfigRequest)(nil), "google.cloud.ml.v1.GetConfigRequest")
  105. proto.RegisterType((*GetConfigResponse)(nil), "google.cloud.ml.v1.GetConfigResponse")
  106. }
  107. // Reference imports to suppress errors if they are not otherwise used.
  108. var _ context.Context
  109. var _ grpc.ClientConn
  110. // This is a compile-time assertion to ensure that this generated file
  111. // is compatible with the grpc package it is being compiled against.
  112. const _ = grpc.SupportPackageIsVersion4
  113. // ProjectManagementServiceClient is the client API for ProjectManagementService service.
  114. //
  115. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  116. type ProjectManagementServiceClient interface {
  117. // Get the service account information associated with your project. You need
  118. // this information in order to grant the service account persmissions for
  119. // the Google Cloud Storage location where you put your model training code
  120. // for training the model with Google Cloud Machine Learning.
  121. GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
  122. }
  123. type projectManagementServiceClient struct {
  124. cc *grpc.ClientConn
  125. }
  126. func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient {
  127. return &projectManagementServiceClient{cc}
  128. }
  129. func (c *projectManagementServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
  130. out := new(GetConfigResponse)
  131. err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ProjectManagementService/GetConfig", in, out, opts...)
  132. if err != nil {
  133. return nil, err
  134. }
  135. return out, nil
  136. }
  137. // ProjectManagementServiceServer is the server API for ProjectManagementService service.
  138. type ProjectManagementServiceServer interface {
  139. // Get the service account information associated with your project. You need
  140. // this information in order to grant the service account persmissions for
  141. // the Google Cloud Storage location where you put your model training code
  142. // for training the model with Google Cloud Machine Learning.
  143. GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
  144. }
  145. func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
  146. s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
  147. }
  148. func _ProjectManagementService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  149. in := new(GetConfigRequest)
  150. if err := dec(in); err != nil {
  151. return nil, err
  152. }
  153. if interceptor == nil {
  154. return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
  155. }
  156. info := &grpc.UnaryServerInfo{
  157. Server: srv,
  158. FullMethod: "/google.cloud.ml.v1.ProjectManagementService/GetConfig",
  159. }
  160. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  161. return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
  162. }
  163. return interceptor(ctx, in, info, handler)
  164. }
  165. var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
  166. ServiceName: "google.cloud.ml.v1.ProjectManagementService",
  167. HandlerType: (*ProjectManagementServiceServer)(nil),
  168. Methods: []grpc.MethodDesc{
  169. {
  170. MethodName: "GetConfig",
  171. Handler: _ProjectManagementService_GetConfig_Handler,
  172. },
  173. },
  174. Streams: []grpc.StreamDesc{},
  175. Metadata: "google/cloud/ml/v1/project_service.proto",
  176. }
  177. func init() {
  178. proto.RegisterFile("google/cloud/ml/v1/project_service.proto", fileDescriptor_project_service_bfab71f1ac16d243)
  179. }
  180. var fileDescriptor_project_service_bfab71f1ac16d243 = []byte{
  181. // 319 bytes of a gzipped FileDescriptorProto
  182. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbf, 0x4a, 0x43, 0x31,
  183. 0x14, 0xc6, 0xb9, 0x55, 0x84, 0x66, 0xf0, 0x4f, 0x44, 0x2c, 0x45, 0xb0, 0x16, 0xb5, 0xc5, 0x21,
  184. 0xa1, 0x2a, 0x0e, 0x8a, 0x83, 0x75, 0x70, 0x12, 0x4a, 0xdd, 0x5c, 0x4a, 0xbc, 0x1e, 0x43, 0x24,
  185. 0xc9, 0x89, 0x37, 0xe9, 0x5d, 0xc4, 0x41, 0x5f, 0xc1, 0xdd, 0x97, 0xf2, 0x15, 0x7c, 0x10, 0xe9,
  186. 0x4d, 0x94, 0xda, 0x0e, 0x6e, 0x87, 0x73, 0x7e, 0x5f, 0xf2, 0x7d, 0xe7, 0x90, 0xae, 0x44, 0x94,
  187. 0x1a, 0x78, 0xae, 0x71, 0x7c, 0xcf, 0x8d, 0xe6, 0x65, 0x8f, 0xbb, 0x02, 0x1f, 0x21, 0x0f, 0x23,
  188. 0x0f, 0x45, 0xa9, 0x72, 0x60, 0xae, 0xc0, 0x80, 0x94, 0x46, 0x92, 0x55, 0x24, 0x33, 0x9a, 0x95,
  189. 0xbd, 0xe6, 0x56, 0x52, 0x0b, 0xa7, 0xb8, 0xb0, 0x16, 0x83, 0x08, 0x0a, 0xad, 0x8f, 0x8a, 0xf6,
  190. 0x3e, 0x59, 0xbd, 0x82, 0x70, 0x89, 0xf6, 0x41, 0xc9, 0x21, 0x3c, 0x8d, 0xc1, 0x07, 0x4a, 0xc9,
  191. 0xa2, 0x15, 0x06, 0x1a, 0x59, 0x2b, 0xeb, 0xd6, 0x87, 0x55, 0xdd, 0x0e, 0x64, 0x6d, 0x8a, 0xf3,
  192. 0x0e, 0xad, 0x07, 0xda, 0x21, 0x2b, 0xe9, 0xff, 0x91, 0xc8, 0x73, 0x1c, 0xdb, 0x90, 0x34, 0xcb,
  193. 0xa9, 0x7d, 0x11, 0xbb, 0xf4, 0x84, 0x6c, 0xce, 0x80, 0xa3, 0x14, 0xa0, 0x51, 0x6b, 0x65, 0xdd,
  194. 0x85, 0xe1, 0xc6, 0x5f, 0xc1, 0x20, 0x0e, 0x0f, 0x3f, 0x32, 0xd2, 0x48, 0xf5, 0xb5, 0xb0, 0x42,
  195. 0x82, 0x01, 0x1b, 0x6e, 0x22, 0x4a, 0x5f, 0x33, 0x52, 0xff, 0xf5, 0x44, 0x77, 0xd9, 0x7c, 0x76,
  196. 0x36, 0x1b, 0xad, 0xb9, 0xf7, 0x0f, 0x15, 0x83, 0xb5, 0x3b, 0x6f, 0x9f, 0x5f, 0xef, 0xb5, 0x1d,
  197. 0xba, 0x3d, 0x59, 0xf5, 0xf3, 0x64, 0x01, 0xe7, 0xc9, 0xaf, 0xe7, 0x07, 0x2f, 0xa7, 0xf2, 0x47,
  198. 0xd0, 0x57, 0xa4, 0x99, 0xa3, 0x99, 0x7b, 0x54, 0x38, 0xc5, 0xca, 0x5e, 0x7f, 0x3d, 0x79, 0x4f,
  199. 0x8e, 0x07, 0x93, 0x8d, 0x0f, 0xb2, 0xdb, 0xe3, 0x84, 0x4b, 0xd4, 0xc2, 0x4a, 0x86, 0x85, 0xe4,
  200. 0x12, 0x6c, 0x75, 0x0f, 0x1e, 0x47, 0xc2, 0x29, 0x3f, 0x7d, 0xee, 0x33, 0xa3, 0xef, 0x96, 0x2a,
  201. 0xe0, 0xe8, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xd0, 0xa5, 0x43, 0x33, 0x0e, 0x02, 0x00, 0x00,
  202. }