pipelines/backend/api/go_client/visualization.pb.go

306 lines
12 KiB
Go
Executable File

// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: backend/api/visualization.proto
package go_client // import "github.com/kubeflow/pipelines/backend/api/go_client"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
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
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Visualization_Type int32
const (
Visualization_ROC_CURVE Visualization_Type = 0
Visualization_TFDV Visualization_Type = 1
Visualization_TFMA Visualization_Type = 2
Visualization_TABLE Visualization_Type = 3
Visualization_CUSTOM Visualization_Type = 4
)
var Visualization_Type_name = map[int32]string{
0: "ROC_CURVE",
1: "TFDV",
2: "TFMA",
3: "TABLE",
4: "CUSTOM",
}
var Visualization_Type_value = map[string]int32{
"ROC_CURVE": 0,
"TFDV": 1,
"TFMA": 2,
"TABLE": 3,
"CUSTOM": 4,
}
func (x Visualization_Type) String() string {
return proto.EnumName(Visualization_Type_name, int32(x))
}
func (Visualization_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_visualization_5c1ff36cbdec23a0, []int{1, 0}
}
type CreateVisualizationRequest struct {
Visualization *Visualization `protobuf:"bytes,1,opt,name=visualization,proto3" json:"visualization,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateVisualizationRequest) Reset() { *m = CreateVisualizationRequest{} }
func (m *CreateVisualizationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateVisualizationRequest) ProtoMessage() {}
func (*CreateVisualizationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_visualization_5c1ff36cbdec23a0, []int{0}
}
func (m *CreateVisualizationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateVisualizationRequest.Unmarshal(m, b)
}
func (m *CreateVisualizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateVisualizationRequest.Marshal(b, m, deterministic)
}
func (dst *CreateVisualizationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateVisualizationRequest.Merge(dst, src)
}
func (m *CreateVisualizationRequest) XXX_Size() int {
return xxx_messageInfo_CreateVisualizationRequest.Size(m)
}
func (m *CreateVisualizationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateVisualizationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateVisualizationRequest proto.InternalMessageInfo
func (m *CreateVisualizationRequest) GetVisualization() *Visualization {
if m != nil {
return m.Visualization
}
return nil
}
func (m *CreateVisualizationRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
type Visualization struct {
Type Visualization_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api.Visualization_Type" json:"type,omitempty"`
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
Arguments string `protobuf:"bytes,3,opt,name=arguments,proto3" json:"arguments,omitempty"`
Html string `protobuf:"bytes,4,opt,name=html,proto3" json:"html,omitempty"`
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Visualization) Reset() { *m = Visualization{} }
func (m *Visualization) String() string { return proto.CompactTextString(m) }
func (*Visualization) ProtoMessage() {}
func (*Visualization) Descriptor() ([]byte, []int) {
return fileDescriptor_visualization_5c1ff36cbdec23a0, []int{1}
}
func (m *Visualization) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Visualization.Unmarshal(m, b)
}
func (m *Visualization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Visualization.Marshal(b, m, deterministic)
}
func (dst *Visualization) XXX_Merge(src proto.Message) {
xxx_messageInfo_Visualization.Merge(dst, src)
}
func (m *Visualization) XXX_Size() int {
return xxx_messageInfo_Visualization.Size(m)
}
func (m *Visualization) XXX_DiscardUnknown() {
xxx_messageInfo_Visualization.DiscardUnknown(m)
}
var xxx_messageInfo_Visualization proto.InternalMessageInfo
func (m *Visualization) GetType() Visualization_Type {
if m != nil {
return m.Type
}
return Visualization_ROC_CURVE
}
func (m *Visualization) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
func (m *Visualization) GetArguments() string {
if m != nil {
return m.Arguments
}
return ""
}
func (m *Visualization) GetHtml() string {
if m != nil {
return m.Html
}
return ""
}
func (m *Visualization) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func init() {
proto.RegisterType((*CreateVisualizationRequest)(nil), "api.CreateVisualizationRequest")
proto.RegisterType((*Visualization)(nil), "api.Visualization")
proto.RegisterEnum("api.Visualization_Type", Visualization_Type_name, Visualization_Type_value)
}
// 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
// VisualizationServiceClient is the client API for VisualizationService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type VisualizationServiceClient interface {
CreateVisualization(ctx context.Context, in *CreateVisualizationRequest, opts ...grpc.CallOption) (*Visualization, error)
}
type visualizationServiceClient struct {
cc *grpc.ClientConn
}
func NewVisualizationServiceClient(cc *grpc.ClientConn) VisualizationServiceClient {
return &visualizationServiceClient{cc}
}
func (c *visualizationServiceClient) CreateVisualization(ctx context.Context, in *CreateVisualizationRequest, opts ...grpc.CallOption) (*Visualization, error) {
out := new(Visualization)
err := c.cc.Invoke(ctx, "/api.VisualizationService/CreateVisualization", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// VisualizationServiceServer is the server API for VisualizationService service.
type VisualizationServiceServer interface {
CreateVisualization(context.Context, *CreateVisualizationRequest) (*Visualization, error)
}
func RegisterVisualizationServiceServer(s *grpc.Server, srv VisualizationServiceServer) {
s.RegisterService(&_VisualizationService_serviceDesc, srv)
}
func _VisualizationService_CreateVisualization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateVisualizationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VisualizationServiceServer).CreateVisualization(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.VisualizationService/CreateVisualization",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VisualizationServiceServer).CreateVisualization(ctx, req.(*CreateVisualizationRequest))
}
return interceptor(ctx, in, info, handler)
}
var _VisualizationService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.VisualizationService",
HandlerType: (*VisualizationServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateVisualization",
Handler: _VisualizationService_CreateVisualization_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/visualization.proto",
}
func init() {
proto.RegisterFile("backend/api/visualization.proto", fileDescriptor_visualization_5c1ff36cbdec23a0)
}
var fileDescriptor_visualization_5c1ff36cbdec23a0 = []byte{
// 482 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0xad, 0x13, 0x27, 0x34, 0x53, 0x02, 0x61, 0x5b, 0x51, 0xcb, 0x0a, 0x4a, 0xe4, 0x53, 0x24,
0xa8, 0xad, 0xa6, 0x17, 0xe0, 0x02, 0x49, 0x28, 0x27, 0xa2, 0x4a, 0x4e, 0x9a, 0x43, 0x2f, 0xd5,
0xda, 0x9d, 0x3a, 0xab, 0x3a, 0xde, 0x65, 0x77, 0x9d, 0xaa, 0x20, 0x2e, 0x48, 0x9c, 0xb8, 0xc1,
0x2f, 0xf0, 0x47, 0xdc, 0x39, 0xf1, 0x21, 0x28, 0x9b, 0x28, 0xc4, 0x6a, 0x7b, 0xf2, 0xee, 0xec,
0x9b, 0xf7, 0xc6, 0x6f, 0x1e, 0xb4, 0x22, 0x1a, 0x5f, 0x61, 0x76, 0x11, 0x50, 0xc1, 0x82, 0x39,
0x53, 0x39, 0x4d, 0xd9, 0x27, 0xaa, 0x19, 0xcf, 0x7c, 0x21, 0xb9, 0xe6, 0xa4, 0x4c, 0x05, 0x73,
0x9b, 0x09, 0xe7, 0x49, 0x8a, 0x06, 0x44, 0xb3, 0x8c, 0x6b, 0x83, 0x50, 0x4b, 0x88, 0xbb, 0xbf,
0xc9, 0x81, 0x52, 0x72, 0xb9, 0x7a, 0x78, 0x61, 0x3e, 0xf1, 0x41, 0x82, 0xd9, 0x81, 0xba, 0xa6,
0x49, 0x82, 0x32, 0xe0, 0xc2, 0xb4, 0xde, 0xa6, 0xf1, 0x34, 0xb8, 0x03, 0x89, 0x54, 0xe3, 0x64,
0x73, 0x8c, 0x10, 0x3f, 0xe6, 0xa8, 0x34, 0x79, 0x09, 0xf5, 0xc2, 0x78, 0x8e, 0xd5, 0xb6, 0x3a,
0x3b, 0x5d, 0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