chore(backend): move v1 api to v1beta1 package and folder (#8376)

* move v1 api to v1beta1 package and folder

* fix test

* update README.md

* update README.md

* update readme
This commit is contained in:
Lingqing Gan 2022-10-26 03:11:30 -04:00 committed by GitHub
parent 8ad4719821
commit 6c6b1e3a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
505 changed files with 7365 additions and 9000 deletions

View File

@ -22,8 +22,9 @@ PREBUILT_REMOTE_IMAGE=gcr.io/ml-pipeline-test/api-generator@sha256:431635b564a87
# Generate clients using a pre-built api-generator image.
.PHONY: generate
generate: hack/generator.sh *.proto
generate: hack/generator.sh $(API_VERSION)/*.proto
docker run --interactive --rm \
-e API_VERSION=$(API_VERSION) \
--user $$(id -u):$$(id -g) \
--mount type=bind,source="$$(pwd)/../..",target=/go/src/github.com/kubeflow/pipelines \
$(PREBUILT_REMOTE_IMAGE) /go/src/github.com/kubeflow/pipelines/backend/api/hack/generator.sh
@ -32,8 +33,9 @@ generate: hack/generator.sh *.proto
# Note, this should only be used for local development purposes. Once any change is made to the Dockerfile,
# we should push the new image remotely to ensure everyone is using the same tools.
.PHONY: generate-from-scratch
generate-from-scratch: .image-built hack/generator.sh *.proto
docker run --interactive --rm \
generate-from-scratch: .image-built hack/generator.sh $(API_VERSION)/*.proto
docker run --interactive --rm \
-e API_VERSION=$(API_VERSION) \
--user $$(id -u):$$(id -g) \
--mount type=bind,source="$$(pwd)/../..",target=/go/src/github.com/kubeflow/pipelines \
$(IMAGE_TAG) /go/src/github.com/kubeflow/pipelines/backend/api/hack/generator.sh

View File

@ -7,35 +7,46 @@ Tools needed:
* Docker
* Make
Set environment variable `API_VERSION` to the version that you want to generate. We use `v1beta1` as example here.
```bash
export API_VERSION="v1beta1"
```
## Auto-generation of Go client and swagger definitions
Use `make generate` command to generate clients using a pre-built api-generator image:
```bash
make generate
```
Code will be generated in:
* `./go_client`
* `./go_http_client`
* `./swagger`
* `./${API_VERSION}/go_client`
* `./${API_VERSION}/go_http_client`
* `./${API_VERSION}/swagger`
Note: `./${API_VERSION}/swagger/pipeline.upload.swagger.json` is manually created, while the rest `./${API_VERSION}/swagger/*.swagger.json` are auto generated.
## Auto-generation of Python client
This will generate the Python client for the API version specified in the environment variable.
```bash
./build_kfp_server_api_python_package.sh
```
Code will be generated in `./python_http_client`.
Code will be generated in `./${API_VERSION}/python_http_client`.
## Auto-generation of API reference documentation
This directory contains API definitions. They are used to generate [the API reference on kubeflow.org](https://www.kubeflow.org/docs/pipelines/reference/api/kubeflow-pipeline-api-spec/).
* Use the tools [bootprint-openapi](https://github.com/bootprint/bootprint-monorepo/tree/master/packages/bootprint-openapi) and [html-inline](https://github.com/substack/html-inline) to generate the API reference from [kfp_api_single_file.swagger.json](https://github.com/kubeflow/pipelines/blob/master/backend/api/swagger/kfp_api_single_file.swagger.json). These [instructions](https://github.com/bootprint/bootprint-monorepo/tree/master/packages/bootprint-openapi#bootprint-openapi) have shown how to generate *a single self-contained html file* which is the API reference, from a json file.
* Use the tools [bootprint-openapi](https://github.com/bootprint/bootprint-monorepo/tree/master/packages/bootprint-openapi) and [html-inline](https://github.com/substack/html-inline) to generate the API reference from [kfp_api_single_file.swagger.json](https://github.com/kubeflow/pipelines/blob/master/backend/api/${API_VERSION}/swagger/kfp_api_single_file.swagger.json). These [instructions](https://github.com/bootprint/bootprint-monorepo/tree/master/packages/bootprint-openapi#bootprint-openapi) have shown how to generate *a single self-contained html file* which is the API reference, from a json file.
* Use the above generated html to replace the html section, which is below the title section, in the file [kubeflow-pipeline-api-spec.html](https://github.com/kubeflow/website/blob/master/content/en/docs/pipelines/reference/api/kubeflow-pipeline-api-spec.html)
Note: whenever the API definition changes (i.e., the file [kfp_api_single_file.swagger.json](https://github.com/kubeflow/pipelines/blob/master/backend/api/swagger/kfp_api_single_file.swagger.json) changes), the API reference needs to be updated.
Note: whenever the API definition changes (i.e., the file [kfp_api_single_file.swagger.json](https://github.com/kubeflow/pipelines/blob/master/backend/api/${API_VERSION}/swagger/kfp_api_single_file.swagger.json) changes), the API reference needs to be updated.
## Auto-generation of api generator image

View File

@ -45,15 +45,15 @@ fi
pushd "$(dirname "$0")"
CURRENT_DIR="$(pwd)"
DIR="$CURRENT_DIR/python_http_client"
swagger_file="$CURRENT_DIR/swagger/kfp_api_single_file.swagger.json"
DIR="$CURRENT_DIR/$API_VERSION/python_http_client"
swagger_file="$CURRENT_DIR/$API_VERSION/swagger/kfp_api_single_file.swagger.json"
echo "Removing old content in DIR first."
rm -rf "$DIR"
echo "Generating python code from swagger json in $DIR."
java -jar "$codegen_file" generate -g python -t "$CURRENT_DIR/python_http_client_template" -i "$swagger_file" -o "$DIR" -c <(echo '{
"packageName": "kfp_server_api",
java -jar "$codegen_file" generate -g python -t "$CURRENT_DIR/$API_VERSION/python_http_client_template" -i "$swagger_file" -o "$DIR" -c <(echo '{
"packageName": "'"kfp_server_api_$API_VERSION"'",
"packageVersion": "'"$VERSION"'",
"packageUrl": "https://github.com/kubeflow/pipelines"
}')

View File

@ -1,66 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package experiment_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIExperimentStorageState api experiment storage state
// swagger:model apiExperimentStorageState
type APIExperimentStorageState string
const (
// APIExperimentStorageStateSTORAGESTATEUNSPECIFIED captures enum value "STORAGESTATE_UNSPECIFIED"
APIExperimentStorageStateSTORAGESTATEUNSPECIFIED APIExperimentStorageState = "STORAGESTATE_UNSPECIFIED"
// APIExperimentStorageStateSTORAGESTATEAVAILABLE captures enum value "STORAGESTATE_AVAILABLE"
APIExperimentStorageStateSTORAGESTATEAVAILABLE APIExperimentStorageState = "STORAGESTATE_AVAILABLE"
// APIExperimentStorageStateSTORAGESTATEARCHIVED captures enum value "STORAGESTATE_ARCHIVED"
APIExperimentStorageStateSTORAGESTATEARCHIVED APIExperimentStorageState = "STORAGESTATE_ARCHIVED"
)
// for schema
var apiExperimentStorageStateEnum []interface{}
func init() {
var res []APIExperimentStorageState
if err := json.Unmarshal([]byte(`["STORAGESTATE_UNSPECIFIED","STORAGESTATE_AVAILABLE","STORAGESTATE_ARCHIVED"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiExperimentStorageStateEnum = append(apiExperimentStorageStateEnum, v)
}
}
func (m APIExperimentStorageState) validateAPIExperimentStorageStateEnum(path, location string, value APIExperimentStorageState) error {
if err := validate.Enum(path, location, value, apiExperimentStorageStateEnum); err != nil {
return err
}
return nil
}
// Validate validates this api experiment storage state
func (m APIExperimentStorageState) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIExperimentStorageStateEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,66 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package experiment_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIRelationship api relationship
// swagger:model apiRelationship
type APIRelationship string
const (
// APIRelationshipUNKNOWNRELATIONSHIP captures enum value "UNKNOWN_RELATIONSHIP"
APIRelationshipUNKNOWNRELATIONSHIP APIRelationship = "UNKNOWN_RELATIONSHIP"
// APIRelationshipOWNER captures enum value "OWNER"
APIRelationshipOWNER APIRelationship = "OWNER"
// APIRelationshipCREATOR captures enum value "CREATOR"
APIRelationshipCREATOR APIRelationship = "CREATOR"
)
// for schema
var apiRelationshipEnum []interface{}
func init() {
var res []APIRelationship
if err := json.Unmarshal([]byte(`["UNKNOWN_RELATIONSHIP","OWNER","CREATOR"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiRelationshipEnum = append(apiRelationshipEnum, v)
}
}
func (m APIRelationship) validateAPIRelationshipEnum(path, location string, value APIRelationship) error {
if err := validate.Enum(path, location, value, apiRelationshipEnum); err != nil {
return err
}
return nil
}
// Validate validates this api relationship
func (m APIRelationship) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIRelationshipEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,75 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package experiment_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIResourceType api resource type
// swagger:model apiResourceType
type APIResourceType string
const (
// APIResourceTypeUNKNOWNRESOURCETYPE captures enum value "UNKNOWN_RESOURCE_TYPE"
APIResourceTypeUNKNOWNRESOURCETYPE APIResourceType = "UNKNOWN_RESOURCE_TYPE"
// APIResourceTypeEXPERIMENT captures enum value "EXPERIMENT"
APIResourceTypeEXPERIMENT APIResourceType = "EXPERIMENT"
// APIResourceTypeJOB captures enum value "JOB"
APIResourceTypeJOB APIResourceType = "JOB"
// APIResourceTypePIPELINE captures enum value "PIPELINE"
APIResourceTypePIPELINE APIResourceType = "PIPELINE"
// APIResourceTypePIPELINEVERSION captures enum value "PIPELINE_VERSION"
APIResourceTypePIPELINEVERSION APIResourceType = "PIPELINE_VERSION"
// APIResourceTypeNAMESPACE captures enum value "NAMESPACE"
APIResourceTypeNAMESPACE APIResourceType = "NAMESPACE"
)
// for schema
var apiResourceTypeEnum []interface{}
func init() {
var res []APIResourceType
if err := json.Unmarshal([]byte(`["UNKNOWN_RESOURCE_TYPE","EXPERIMENT","JOB","PIPELINE","PIPELINE_VERSION","NAMESPACE"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiResourceTypeEnum = append(apiResourceTypeEnum, v)
}
}
func (m APIResourceType) validateAPIResourceTypeEnum(path, location string, value APIResourceType) error {
if err := validate.Enum(path, location, value, apiResourceTypeEnum); err != nil {
return err
}
return nil
}
// Validate validates this api resource type
func (m APIResourceType) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIResourceTypeEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,66 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package job_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIRelationship api relationship
// swagger:model apiRelationship
type APIRelationship string
const (
// APIRelationshipUNKNOWNRELATIONSHIP captures enum value "UNKNOWN_RELATIONSHIP"
APIRelationshipUNKNOWNRELATIONSHIP APIRelationship = "UNKNOWN_RELATIONSHIP"
// APIRelationshipOWNER captures enum value "OWNER"
APIRelationshipOWNER APIRelationship = "OWNER"
// APIRelationshipCREATOR captures enum value "CREATOR"
APIRelationshipCREATOR APIRelationship = "CREATOR"
)
// for schema
var apiRelationshipEnum []interface{}
func init() {
var res []APIRelationship
if err := json.Unmarshal([]byte(`["UNKNOWN_RELATIONSHIP","OWNER","CREATOR"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiRelationshipEnum = append(apiRelationshipEnum, v)
}
}
func (m APIRelationship) validateAPIRelationshipEnum(path, location string, value APIRelationship) error {
if err := validate.Enum(path, location, value, apiRelationshipEnum); err != nil {
return err
}
return nil
}
// Validate validates this api relationship
func (m APIRelationship) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIRelationshipEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,75 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package job_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIResourceType api resource type
// swagger:model apiResourceType
type APIResourceType string
const (
// APIResourceTypeUNKNOWNRESOURCETYPE captures enum value "UNKNOWN_RESOURCE_TYPE"
APIResourceTypeUNKNOWNRESOURCETYPE APIResourceType = "UNKNOWN_RESOURCE_TYPE"
// APIResourceTypeEXPERIMENT captures enum value "EXPERIMENT"
APIResourceTypeEXPERIMENT APIResourceType = "EXPERIMENT"
// APIResourceTypeJOB captures enum value "JOB"
APIResourceTypeJOB APIResourceType = "JOB"
// APIResourceTypePIPELINE captures enum value "PIPELINE"
APIResourceTypePIPELINE APIResourceType = "PIPELINE"
// APIResourceTypePIPELINEVERSION captures enum value "PIPELINE_VERSION"
APIResourceTypePIPELINEVERSION APIResourceType = "PIPELINE_VERSION"
// APIResourceTypeNAMESPACE captures enum value "NAMESPACE"
APIResourceTypeNAMESPACE APIResourceType = "NAMESPACE"
)
// for schema
var apiResourceTypeEnum []interface{}
func init() {
var res []APIResourceType
if err := json.Unmarshal([]byte(`["UNKNOWN_RESOURCE_TYPE","EXPERIMENT","JOB","PIPELINE","PIPELINE_VERSION","NAMESPACE"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiResourceTypeEnum = append(apiResourceTypeEnum, v)
}
}
func (m APIResourceType) validateAPIResourceTypeEnum(path, location string, value APIResourceType) error {
if err := validate.Enum(path, location, value, apiResourceTypeEnum); err != nil {
return err
}
return nil
}
// Validate validates this api resource type
func (m APIResourceType) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIResourceTypeEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,82 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package job_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"strconv"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// ProtobufListValue `ListValue` is a wrapper around a repeated field of values.
//
// The JSON representation for `ListValue` is JSON array.
// swagger:model protobufListValue
type ProtobufListValue struct {
// Repeated field of dynamically typed values.
Values []*ProtobufValue `json:"values"`
}
// Validate validates this protobuf list value
func (m *ProtobufListValue) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateValues(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ProtobufListValue) validateValues(formats strfmt.Registry) error {
if swag.IsZero(m.Values) { // not required
return nil
}
for i := 0; i < len(m.Values); i++ {
if swag.IsZero(m.Values[i]) { // not required
continue
}
if m.Values[i] != nil {
if err := m.Values[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("values" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
// MarshalBinary interface implementation
func (m *ProtobufListValue) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ProtobufListValue) UnmarshalBinary(b []byte) error {
var res ProtobufListValue
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -1,83 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package job_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ProtobufStruct `Struct` represents a structured data value, consisting of fields
// which map to dynamically typed values. In some languages, `Struct`
// might be supported by a native representation. For example, in
// scripting languages like JS a struct is represented as an
// object. The details of that representation are described together
// with the proto support for the language.
//
// The JSON representation for `Struct` is JSON object.
// swagger:model protobufStruct
type ProtobufStruct struct {
// Unordered map of dynamically typed values.
Fields map[string]ProtobufValue `json:"fields,omitempty"`
}
// Validate validates this protobuf struct
func (m *ProtobufStruct) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFields(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ProtobufStruct) validateFields(formats strfmt.Registry) error {
if swag.IsZero(m.Fields) { // not required
return nil
}
for k := range m.Fields {
if err := validate.Required("fields"+"."+k, "body", m.Fields[k]); err != nil {
return err
}
if val, ok := m.Fields[k]; ok {
if err := val.Validate(formats); err != nil {
return err
}
}
}
return nil
}
// MarshalBinary interface implementation
func (m *ProtobufStruct) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ProtobufStruct) UnmarshalBinary(b []byte) error {
var res ProtobufStruct
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -1,133 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package job_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// ProtobufValue `Value` represents a dynamically typed value which can be either
// null, a number, a string, a boolean, a recursive struct value, or a
// list of values. A producer of value is expected to set one of that
// variants, absence of any variant indicates an error.
//
// The JSON representation for `Value` is JSON value.
// swagger:model protobufValue
type ProtobufValue struct {
// Represents a boolean value.
BoolValue bool `json:"bool_value,omitempty"`
// Represents a repeated `Value`.
ListValue *ProtobufListValue `json:"list_value,omitempty"`
// Represents a null value.
NullValue ProtobufNullValue `json:"null_value,omitempty"`
// Represents a double value.
NumberValue float64 `json:"number_value,omitempty"`
// Represents a string value.
StringValue string `json:"string_value,omitempty"`
// Represents a structured value.
StructValue *ProtobufStruct `json:"struct_value,omitempty"`
}
// Validate validates this protobuf value
func (m *ProtobufValue) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateListValue(formats); err != nil {
res = append(res, err)
}
if err := m.validateNullValue(formats); err != nil {
res = append(res, err)
}
if err := m.validateStructValue(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ProtobufValue) validateListValue(formats strfmt.Registry) error {
if swag.IsZero(m.ListValue) { // not required
return nil
}
if m.ListValue != nil {
if err := m.ListValue.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("list_value")
}
return err
}
}
return nil
}
func (m *ProtobufValue) validateNullValue(formats strfmt.Registry) error {
if swag.IsZero(m.NullValue) { // not required
return nil
}
if err := m.NullValue.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("null_value")
}
return err
}
return nil
}
func (m *ProtobufValue) validateStructValue(formats strfmt.Registry) error {
if swag.IsZero(m.StructValue) { // not required
return nil
}
if m.StructValue != nil {
if err := m.StructValue.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("struct_value")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *ProtobufValue) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ProtobufValue) UnmarshalBinary(b []byte) error {
var res ProtobufValue
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -1,66 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package pipeline_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIRelationship api relationship
// swagger:model apiRelationship
type APIRelationship string
const (
// APIRelationshipUNKNOWNRELATIONSHIP captures enum value "UNKNOWN_RELATIONSHIP"
APIRelationshipUNKNOWNRELATIONSHIP APIRelationship = "UNKNOWN_RELATIONSHIP"
// APIRelationshipOWNER captures enum value "OWNER"
APIRelationshipOWNER APIRelationship = "OWNER"
// APIRelationshipCREATOR captures enum value "CREATOR"
APIRelationshipCREATOR APIRelationship = "CREATOR"
)
// for schema
var apiRelationshipEnum []interface{}
func init() {
var res []APIRelationship
if err := json.Unmarshal([]byte(`["UNKNOWN_RELATIONSHIP","OWNER","CREATOR"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiRelationshipEnum = append(apiRelationshipEnum, v)
}
}
func (m APIRelationship) validateAPIRelationshipEnum(path, location string, value APIRelationship) error {
if err := validate.Enum(path, location, value, apiRelationshipEnum); err != nil {
return err
}
return nil
}
// Validate validates this api relationship
func (m APIRelationship) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIRelationshipEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,75 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package pipeline_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIResourceType api resource type
// swagger:model apiResourceType
type APIResourceType string
const (
// APIResourceTypeUNKNOWNRESOURCETYPE captures enum value "UNKNOWN_RESOURCE_TYPE"
APIResourceTypeUNKNOWNRESOURCETYPE APIResourceType = "UNKNOWN_RESOURCE_TYPE"
// APIResourceTypeEXPERIMENT captures enum value "EXPERIMENT"
APIResourceTypeEXPERIMENT APIResourceType = "EXPERIMENT"
// APIResourceTypeJOB captures enum value "JOB"
APIResourceTypeJOB APIResourceType = "JOB"
// APIResourceTypePIPELINE captures enum value "PIPELINE"
APIResourceTypePIPELINE APIResourceType = "PIPELINE"
// APIResourceTypePIPELINEVERSION captures enum value "PIPELINE_VERSION"
APIResourceTypePIPELINEVERSION APIResourceType = "PIPELINE_VERSION"
// APIResourceTypeNAMESPACE captures enum value "NAMESPACE"
APIResourceTypeNAMESPACE APIResourceType = "NAMESPACE"
)
// for schema
var apiResourceTypeEnum []interface{}
func init() {
var res []APIResourceType
if err := json.Unmarshal([]byte(`["UNKNOWN_RESOURCE_TYPE","EXPERIMENT","JOB","PIPELINE","PIPELINE_VERSION","NAMESPACE"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiResourceTypeEnum = append(apiResourceTypeEnum, v)
}
}
func (m APIResourceType) validateAPIResourceTypeEnum(path, location string, value APIResourceType) error {
if err := validate.Enum(path, location, value, apiResourceTypeEnum); err != nil {
return err
}
return nil
}
// Validate validates this api resource type
func (m APIResourceType) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIResourceTypeEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,66 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package pipeline_upload_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIRelationship api relationship
// swagger:model apiRelationship
type APIRelationship string
const (
// APIRelationshipUNKNOWNRELATIONSHIP captures enum value "UNKNOWN_RELATIONSHIP"
APIRelationshipUNKNOWNRELATIONSHIP APIRelationship = "UNKNOWN_RELATIONSHIP"
// APIRelationshipOWNER captures enum value "OWNER"
APIRelationshipOWNER APIRelationship = "OWNER"
// APIRelationshipCREATOR captures enum value "CREATOR"
APIRelationshipCREATOR APIRelationship = "CREATOR"
)
// for schema
var apiRelationshipEnum []interface{}
func init() {
var res []APIRelationship
if err := json.Unmarshal([]byte(`["UNKNOWN_RELATIONSHIP","OWNER","CREATOR"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiRelationshipEnum = append(apiRelationshipEnum, v)
}
}
func (m APIRelationship) validateAPIRelationshipEnum(path, location string, value APIRelationship) error {
if err := validate.Enum(path, location, value, apiRelationshipEnum); err != nil {
return err
}
return nil
}
// Validate validates this api relationship
func (m APIRelationship) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIRelationshipEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,75 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package pipeline_upload_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIResourceType api resource type
// swagger:model apiResourceType
type APIResourceType string
const (
// APIResourceTypeUNKNOWNRESOURCETYPE captures enum value "UNKNOWN_RESOURCE_TYPE"
APIResourceTypeUNKNOWNRESOURCETYPE APIResourceType = "UNKNOWN_RESOURCE_TYPE"
// APIResourceTypeEXPERIMENT captures enum value "EXPERIMENT"
APIResourceTypeEXPERIMENT APIResourceType = "EXPERIMENT"
// APIResourceTypeJOB captures enum value "JOB"
APIResourceTypeJOB APIResourceType = "JOB"
// APIResourceTypePIPELINE captures enum value "PIPELINE"
APIResourceTypePIPELINE APIResourceType = "PIPELINE"
// APIResourceTypePIPELINEVERSION captures enum value "PIPELINE_VERSION"
APIResourceTypePIPELINEVERSION APIResourceType = "PIPELINE_VERSION"
// APIResourceTypeNAMESPACE captures enum value "NAMESPACE"
APIResourceTypeNAMESPACE APIResourceType = "NAMESPACE"
)
// for schema
var apiResourceTypeEnum []interface{}
func init() {
var res []APIResourceType
if err := json.Unmarshal([]byte(`["UNKNOWN_RESOURCE_TYPE","EXPERIMENT","JOB","PIPELINE","PIPELINE_VERSION","NAMESPACE"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiResourceTypeEnum = append(apiResourceTypeEnum, v)
}
}
func (m APIResourceType) validateAPIResourceTypeEnum(path, location string, value APIResourceType) error {
if err := validate.Enum(path, location, value, apiResourceTypeEnum); err != nil {
return err
}
return nil
}
// Validate validates this api resource type
func (m APIResourceType) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIResourceTypeEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,66 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package run_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIRelationship api relationship
// swagger:model apiRelationship
type APIRelationship string
const (
// APIRelationshipUNKNOWNRELATIONSHIP captures enum value "UNKNOWN_RELATIONSHIP"
APIRelationshipUNKNOWNRELATIONSHIP APIRelationship = "UNKNOWN_RELATIONSHIP"
// APIRelationshipOWNER captures enum value "OWNER"
APIRelationshipOWNER APIRelationship = "OWNER"
// APIRelationshipCREATOR captures enum value "CREATOR"
APIRelationshipCREATOR APIRelationship = "CREATOR"
)
// for schema
var apiRelationshipEnum []interface{}
func init() {
var res []APIRelationship
if err := json.Unmarshal([]byte(`["UNKNOWN_RELATIONSHIP","OWNER","CREATOR"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiRelationshipEnum = append(apiRelationshipEnum, v)
}
}
func (m APIRelationship) validateAPIRelationshipEnum(path, location string, value APIRelationship) error {
if err := validate.Enum(path, location, value, apiRelationshipEnum); err != nil {
return err
}
return nil
}
// Validate validates this api relationship
func (m APIRelationship) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIRelationshipEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,75 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package run_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIResourceType api resource type
// swagger:model apiResourceType
type APIResourceType string
const (
// APIResourceTypeUNKNOWNRESOURCETYPE captures enum value "UNKNOWN_RESOURCE_TYPE"
APIResourceTypeUNKNOWNRESOURCETYPE APIResourceType = "UNKNOWN_RESOURCE_TYPE"
// APIResourceTypeEXPERIMENT captures enum value "EXPERIMENT"
APIResourceTypeEXPERIMENT APIResourceType = "EXPERIMENT"
// APIResourceTypeJOB captures enum value "JOB"
APIResourceTypeJOB APIResourceType = "JOB"
// APIResourceTypePIPELINE captures enum value "PIPELINE"
APIResourceTypePIPELINE APIResourceType = "PIPELINE"
// APIResourceTypePIPELINEVERSION captures enum value "PIPELINE_VERSION"
APIResourceTypePIPELINEVERSION APIResourceType = "PIPELINE_VERSION"
// APIResourceTypeNAMESPACE captures enum value "NAMESPACE"
APIResourceTypeNAMESPACE APIResourceType = "NAMESPACE"
)
// for schema
var apiResourceTypeEnum []interface{}
func init() {
var res []APIResourceType
if err := json.Unmarshal([]byte(`["UNKNOWN_RESOURCE_TYPE","EXPERIMENT","JOB","PIPELINE","PIPELINE_VERSION","NAMESPACE"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiResourceTypeEnum = append(apiResourceTypeEnum, v)
}
}
func (m APIResourceType) validateAPIResourceTypeEnum(path, location string, value APIResourceType) error {
if err := validate.Enum(path, location, value, apiResourceTypeEnum); err != nil {
return err
}
return nil
}
// Validate validates this api resource type
func (m APIResourceType) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIResourceTypeEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,63 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package run_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIRunStorageState api run storage state
// swagger:model apiRunStorageState
type APIRunStorageState string
const (
// APIRunStorageStateSTORAGESTATEAVAILABLE captures enum value "STORAGESTATE_AVAILABLE"
APIRunStorageStateSTORAGESTATEAVAILABLE APIRunStorageState = "STORAGESTATE_AVAILABLE"
// APIRunStorageStateSTORAGESTATEARCHIVED captures enum value "STORAGESTATE_ARCHIVED"
APIRunStorageStateSTORAGESTATEARCHIVED APIRunStorageState = "STORAGESTATE_ARCHIVED"
)
// for schema
var apiRunStorageStateEnum []interface{}
func init() {
var res []APIRunStorageState
if err := json.Unmarshal([]byte(`["STORAGESTATE_AVAILABLE","STORAGESTATE_ARCHIVED"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiRunStorageStateEnum = append(apiRunStorageStateEnum, v)
}
}
func (m APIRunStorageState) validateAPIRunStorageStateEnum(path, location string, value APIRunStorageState) error {
if err := validate.Enum(path, location, value, apiRunStorageStateEnum); err != nil {
return err
}
return nil
}
// Validate validates this api run storage state
func (m APIRunStorageState) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIRunStorageStateEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -1,82 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package run_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"strconv"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// ProtobufListValue `ListValue` is a wrapper around a repeated field of values.
//
// The JSON representation for `ListValue` is JSON array.
// swagger:model protobufListValue
type ProtobufListValue struct {
// Repeated field of dynamically typed values.
Values []*ProtobufValue `json:"values"`
}
// Validate validates this protobuf list value
func (m *ProtobufListValue) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateValues(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ProtobufListValue) validateValues(formats strfmt.Registry) error {
if swag.IsZero(m.Values) { // not required
return nil
}
for i := 0; i < len(m.Values); i++ {
if swag.IsZero(m.Values[i]) { // not required
continue
}
if m.Values[i] != nil {
if err := m.Values[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("values" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
// MarshalBinary interface implementation
func (m *ProtobufListValue) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ProtobufListValue) UnmarshalBinary(b []byte) error {
var res ProtobufListValue
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -1,83 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package run_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ProtobufStruct `Struct` represents a structured data value, consisting of fields
// which map to dynamically typed values. In some languages, `Struct`
// might be supported by a native representation. For example, in
// scripting languages like JS a struct is represented as an
// object. The details of that representation are described together
// with the proto support for the language.
//
// The JSON representation for `Struct` is JSON object.
// swagger:model protobufStruct
type ProtobufStruct struct {
// Unordered map of dynamically typed values.
Fields map[string]ProtobufValue `json:"fields,omitempty"`
}
// Validate validates this protobuf struct
func (m *ProtobufStruct) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFields(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ProtobufStruct) validateFields(formats strfmt.Registry) error {
if swag.IsZero(m.Fields) { // not required
return nil
}
for k := range m.Fields {
if err := validate.Required("fields"+"."+k, "body", m.Fields[k]); err != nil {
return err
}
if val, ok := m.Fields[k]; ok {
if err := val.Validate(formats); err != nil {
return err
}
}
}
return nil
}
// MarshalBinary interface implementation
func (m *ProtobufStruct) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ProtobufStruct) UnmarshalBinary(b []byte) error {
var res ProtobufStruct
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -1,133 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package run_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// ProtobufValue `Value` represents a dynamically typed value which can be either
// null, a number, a string, a boolean, a recursive struct value, or a
// list of values. A producer of value is expected to set one of that
// variants, absence of any variant indicates an error.
//
// The JSON representation for `Value` is JSON value.
// swagger:model protobufValue
type ProtobufValue struct {
// Represents a boolean value.
BoolValue bool `json:"bool_value,omitempty"`
// Represents a repeated `Value`.
ListValue *ProtobufListValue `json:"list_value,omitempty"`
// Represents a null value.
NullValue ProtobufNullValue `json:"null_value,omitempty"`
// Represents a double value.
NumberValue float64 `json:"number_value,omitempty"`
// Represents a string value.
StringValue string `json:"string_value,omitempty"`
// Represents a structured value.
StructValue *ProtobufStruct `json:"struct_value,omitempty"`
}
// Validate validates this protobuf value
func (m *ProtobufValue) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateListValue(formats); err != nil {
res = append(res, err)
}
if err := m.validateNullValue(formats); err != nil {
res = append(res, err)
}
if err := m.validateStructValue(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ProtobufValue) validateListValue(formats strfmt.Registry) error {
if swag.IsZero(m.ListValue) { // not required
return nil
}
if m.ListValue != nil {
if err := m.ListValue.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("list_value")
}
return err
}
}
return nil
}
func (m *ProtobufValue) validateNullValue(formats strfmt.Registry) error {
if swag.IsZero(m.NullValue) { // not required
return nil
}
if err := m.NullValue.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("null_value")
}
return err
}
return nil
}
func (m *ProtobufValue) validateStructValue(formats strfmt.Registry) error {
if swag.IsZero(m.StructValue) { // not required
return nil
}
if m.StructValue != nil {
if err := m.StructValue.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("struct_value")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *ProtobufValue) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ProtobufValue) UnmarshalBinary(b []byte) error {
var res ProtobufValue
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -1,74 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
package visualization_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// APIVisualizationType Type of visualization to be generated.
// This is required when creating the pipeline through CreateVisualization
// API.
// swagger:model apiVisualizationType
type APIVisualizationType string
const (
// APIVisualizationTypeROCCURVE captures enum value "ROC_CURVE"
APIVisualizationTypeROCCURVE APIVisualizationType = "ROC_CURVE"
// APIVisualizationTypeTFDV captures enum value "TFDV"
APIVisualizationTypeTFDV APIVisualizationType = "TFDV"
// APIVisualizationTypeTFMA captures enum value "TFMA"
APIVisualizationTypeTFMA APIVisualizationType = "TFMA"
// APIVisualizationTypeTABLE captures enum value "TABLE"
APIVisualizationTypeTABLE APIVisualizationType = "TABLE"
// APIVisualizationTypeCUSTOM captures enum value "CUSTOM"
APIVisualizationTypeCUSTOM APIVisualizationType = "CUSTOM"
)
// for schema
var apiVisualizationTypeEnum []interface{}
func init() {
var res []APIVisualizationType
if err := json.Unmarshal([]byte(`["ROC_CURVE","TFDV","TFMA","TABLE","CUSTOM"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
apiVisualizationTypeEnum = append(apiVisualizationTypeEnum, v)
}
}
func (m APIVisualizationType) validateAPIVisualizationTypeEnum(path, location string, value APIVisualizationType) error {
if err := validate.Enum(path, location, value, apiVisualizationTypeEnum); err != nil {
return err
}
return nil
}
// Validate validates this api visualization type
func (m APIVisualizationType) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateAPIVisualizationTypeEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -17,111 +17,118 @@
set -ex
export TMP_OUTPUT=/tmp
API_VERSION=$API_VERSION
echo ${PROTOCCOMPILER}
# Change directory.
cd /go/src/github.com/kubeflow/pipelines
KFP_VERSION=$(cat VERSION)
# Delete currently generated code.
rm -r -f backend/api/go_http_client/*
rm -f -f backend/api/go_client/*
# Cannot delete backend/api/swagger/*, because there are manually maintained definition files too.
rm -r -f backend/api/${API_VERSION}/go_http_client/*
rm -f -f backend/api/${API_VERSION}/go_client/*
# Cannot delete backend/api/${API_VERSION}/swagger/*, because there are manually maintained definition files too.
# Create directories if they don't exist
mkdir -p backend/api/${API_VERSION}/go_http_client
mkdir -p backend/api/${API_VERSION}/go_client
# Generate *.pb.go (grpc api client) from *.proto.
${PROTOCCOMPILER} -I. -Ibackend/api \
${PROTOCCOMPILER} -I. -Ibackend/api/${API_VERSION} \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/ \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/ \
-I/usr/include/ \
--plugin=protoc-gen-go=/go/bin/protoc-gen-go \
--go_out=plugins=grpc:${TMP_OUTPUT} \
backend/api/*.proto
backend/api/${API_VERSION}/*.proto
# Generate *.pb.gw.go (grpc api rest client) from *.proto.
${PROTOCCOMPILER} -I. -Ibackend/api \
${PROTOCCOMPILER} -I. -Ibackend/api/${API_VERSION} \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/ \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/ \
-I/usr/include/ \
--plugin=protoc-gen-grpc-gateway=/go/bin/protoc-gen-grpc-gateway \
--grpc-gateway_out=logtostderr=true:${TMP_OUTPUT} \
backend/api/*.proto
backend/api/${API_VERSION}/*.proto
# Move *.pb.go and *.gw.go to go_client folder.
cp ${TMP_OUTPUT}/github.com/kubeflow/pipelines/backend/api/go_client/* ./backend/api/go_client
cp ${TMP_OUTPUT}/github.com/kubeflow/pipelines/backend/api/${API_VERSION}/go_client/* ./backend/api/${API_VERSION}/go_client
# Generate *.swagger.json from *.proto into swagger folder.
${PROTOCCOMPILER} -I. -Ibackend/api \
${PROTOCCOMPILER} -I. -Ibackend/api/${API_VERSION} \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/ \
-I/go/src/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/ \
-I//usr/include/ \
--plugin=protoc-gen-swagger=/go/bin/protoc-gen-swagger \
--swagger_out=logtostderr=true:${TMP_OUTPUT} \
backend/api/*.proto
cp ${TMP_OUTPUT}/backend/api/*.swagger.json ./backend/api/swagger
backend/api/${API_VERSION}/*.proto
# Move *.swagger.json files into swagger folder.
cp -a ${TMP_OUTPUT}/backend/api/${API_VERSION}/*.swagger.json ./backend/api/${API_VERSION}/swagger
# Generate a single swagger json file from the swagger json files of all models.
# Note: use backend/backend/api/swagger/{run,job,experiment,pipeline,pipeline.upload,healthz}.swagger.json when apt-get can install jq-1.6
# Note: use backend/backend/api/${API_VERSION}/swagger/{run,job,experiment,pipeline,pipeline.upload,healthz}.swagger.json when apt-get can install jq-1.6
jq -s 'reduce .[] as $item ({}; . * $item) | .info.title = "Kubeflow Pipelines API" | .info.description = "This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition." | .info.version = "'$KFP_VERSION'" | .info.contact = { "name": "google", "email": "kubeflow-pipelines@google.com", "url": "https://www.google.com" } | .info.license = { "name": "Apache 2.0", "url": "https://raw.githubusercontent.com/kubeflow/pipelines/master/LICENSE" }' \
backend/api/swagger/run.swagger.json \
backend/api/swagger/job.swagger.json \
backend/api/swagger/experiment.swagger.json \
backend/api/swagger/pipeline.swagger.json \
backend/api/swagger/pipeline.upload.swagger.json \
backend/api/swagger/healthz.swagger.json \
> "backend/api/swagger/kfp_api_single_file.swagger.json"
backend/api/${API_VERSION}/swagger/run.swagger.json \
backend/api/${API_VERSION}/swagger/job.swagger.json \
backend/api/${API_VERSION}/swagger/experiment.swagger.json \
backend/api/${API_VERSION}/swagger/pipeline.swagger.json \
backend/api/${API_VERSION}/swagger/pipeline.upload.swagger.json \
backend/api/${API_VERSION}/swagger/healthz.swagger.json \
> "backend/api/${API_VERSION}/swagger/kfp_api_single_file.swagger.json"
# Generate go_http_client from swagger json.
swagger generate client \
-f backend/api/swagger/job.swagger.json \
-f backend/api/${API_VERSION}/swagger/job.swagger.json \
-A job \
--principal models.Principal \
-c job_client \
-m job_model \
-t backend/api/go_http_client
-t backend/api/${API_VERSION}/go_http_client
swagger generate client \
-f backend/api/swagger/run.swagger.json \
-f backend/api/${API_VERSION}/swagger/run.swagger.json \
-A run \
--principal models.Principal \
-c run_client \
-m run_model \
-t backend/api/go_http_client
-t backend/api/${API_VERSION}/go_http_client
swagger generate client \
-f backend/api/swagger/experiment.swagger.json \
-f backend/api/${API_VERSION}/swagger/experiment.swagger.json \
-A experiment \
--principal models.Principal \
-c experiment_client \
-m experiment_model \
-t backend/api/go_http_client
-t backend/api/${API_VERSION}/go_http_client
swagger generate client \
-f backend/api/swagger/pipeline.swagger.json \
-f backend/api/${API_VERSION}/swagger/pipeline.swagger.json \
-A pipeline \
--principal models.Principal \
-c pipeline_client \
-m pipeline_model \
-t backend/api/go_http_client
-t backend/api/${API_VERSION}/go_http_client
swagger generate client \
-f backend/api/swagger/pipeline.upload.swagger.json \
-f backend/api/${API_VERSION}/swagger/pipeline.upload.swagger.json \
-A pipeline_upload \
--principal models.Principal \
-c pipeline_upload_client \
-m pipeline_upload_model \
-t backend/api/go_http_client
-t backend/api/${API_VERSION}/go_http_client
swagger generate client \
-f backend/api/swagger/visualization.swagger.json \
-f backend/api/${API_VERSION}/swagger/visualization.swagger.json \
-A visualization \
--principal models.Principal \
-c visualization_client \
-m visualization_model \
-t backend/api/go_http_client
-t backend/api/${API_VERSION}/go_http_client
swagger generate client \
-f backend/api/swagger/healthz.swagger.json \
-f backend/api/${API_VERSION}/swagger/healthz.swagger.json \
-A healthz \
--principal models.Principal \
-c healthz_client \
-m healthz_model \
-t backend/api/go_http_client
-t backend/api/${API_VERSION}/go_http_client
# Hack to fix an issue with go-swagger
# See https://github.com/go-swagger/go-swagger/issues/1381 for details.
sed -i -- 's/MaxConcurrency int64 `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/go_http_client/job_model/api_job.go
sed -i -- 's/IntervalSecond int64 `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/go_http_client/job_model/api_periodic_schedule.go
sed -i -- 's/MaxConcurrency string `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/go_http_client/job_model/api_job.go
sed -i -- 's/IntervalSecond string `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/go_http_client/job_model/api_periodic_schedule.go
sed -i -- 's/MaxConcurrency int64 `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_job.go
sed -i -- 's/IntervalSecond int64 `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_periodic_schedule.go
sed -i -- 's/MaxConcurrency string `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_job.go
sed -i -- 's/IntervalSecond string `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_periodic_schedule.go
# Execute the //go:generate directives in the generated code.
cd backend/api && go generate ./...

View File

@ -1,11 +0,0 @@
# ApiRunDetail
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**run** | [**ApiRun**](ApiRun.md) | | [optional]
**pipeline_runtime** | [**ApiPipelineRuntime**](ApiPipelineRuntime.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -1,11 +0,0 @@
# ProtobufListValue
`ListValue` is a wrapper around a repeated field of values. The JSON representation for `ListValue` is JSON array.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**values** | [**list[ProtobufValue]**](ProtobufValue.md) | Repeated field of dynamically typed values. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -1,11 +0,0 @@
# ProtobufStruct
`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**fields** | [**dict(str, ProtobufValue)**](ProtobufValue.md) | Unordered map of dynamically typed values. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -1,16 +0,0 @@
# ProtobufValue
`Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error. The JSON representation for `Value` is JSON value.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**null_value** | [**ProtobufNullValue**](ProtobufNullValue.md) | | [optional]
**number_value** | **float** | Represents a double value. | [optional]
**string_value** | **str** | Represents a string value. | [optional]
**bool_value** | **bool** | Represents a boolean value. | [optional]
**struct_value** | [**ProtobufStruct**](ProtobufStruct.md) | | [optional]
**list_value** | [**ProtobufListValue**](ProtobufListValue.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -1,77 +0,0 @@
# coding: utf-8
# flake8: noqa
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
__version__ = "2.0.0-alpha.6"
# import apis into sdk package
from kfp_server_api.api.experiment_service_api import ExperimentServiceApi
from kfp_server_api.api.healthz_service_api import HealthzServiceApi
from kfp_server_api.api.job_service_api import JobServiceApi
from kfp_server_api.api.pipeline_service_api import PipelineServiceApi
from kfp_server_api.api.pipeline_upload_service_api import PipelineUploadServiceApi
from kfp_server_api.api.run_service_api import RunServiceApi
# import ApiClient
from kfp_server_api.api_client import ApiClient
from kfp_server_api.configuration import Configuration
from kfp_server_api.exceptions import OpenApiException
from kfp_server_api.exceptions import ApiTypeError
from kfp_server_api.exceptions import ApiValueError
from kfp_server_api.exceptions import ApiKeyError
from kfp_server_api.exceptions import ApiException
# import models into sdk package
from kfp_server_api.models.api_cron_schedule import ApiCronSchedule
from kfp_server_api.models.api_experiment import ApiExperiment
from kfp_server_api.models.api_experiment_storage_state import ApiExperimentStorageState
from kfp_server_api.models.api_get_healthz_response import ApiGetHealthzResponse
from kfp_server_api.models.api_get_template_response import ApiGetTemplateResponse
from kfp_server_api.models.api_job import ApiJob
from kfp_server_api.models.api_list_experiments_response import ApiListExperimentsResponse
from kfp_server_api.models.api_list_jobs_response import ApiListJobsResponse
from kfp_server_api.models.api_list_pipeline_versions_response import ApiListPipelineVersionsResponse
from kfp_server_api.models.api_list_pipelines_response import ApiListPipelinesResponse
from kfp_server_api.models.api_list_runs_response import ApiListRunsResponse
from kfp_server_api.models.api_parameter import ApiParameter
from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule
from kfp_server_api.models.api_pipeline import ApiPipeline
from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime
from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec
from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion
from kfp_server_api.models.api_read_artifact_response import ApiReadArtifactResponse
from kfp_server_api.models.api_relationship import ApiRelationship
from kfp_server_api.models.api_report_run_metrics_request import ApiReportRunMetricsRequest
from kfp_server_api.models.api_report_run_metrics_response import ApiReportRunMetricsResponse
from kfp_server_api.models.api_resource_key import ApiResourceKey
from kfp_server_api.models.api_resource_reference import ApiResourceReference
from kfp_server_api.models.api_resource_type import ApiResourceType
from kfp_server_api.models.api_run import ApiRun
from kfp_server_api.models.api_run_detail import ApiRunDetail
from kfp_server_api.models.api_run_metric import ApiRunMetric
from kfp_server_api.models.api_run_storage_state import ApiRunStorageState
from kfp_server_api.models.api_status import ApiStatus
from kfp_server_api.models.api_trigger import ApiTrigger
from kfp_server_api.models.api_url import ApiUrl
from kfp_server_api.models.job_mode import JobMode
from kfp_server_api.models.pipeline_spec_runtime_config import PipelineSpecRuntimeConfig
from kfp_server_api.models.protobuf_any import ProtobufAny
from kfp_server_api.models.protobuf_list_value import ProtobufListValue
from kfp_server_api.models.protobuf_null_value import ProtobufNullValue
from kfp_server_api.models.protobuf_struct import ProtobufStruct
from kfp_server_api.models.protobuf_value import ProtobufValue
from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult
from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus
from kfp_server_api.models.run_metric_format import RunMetricFormat

View File

@ -1,11 +0,0 @@
from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from kfp_server_api.api.experiment_service_api import ExperimentServiceApi
from kfp_server_api.api.healthz_service_api import HealthzServiceApi
from kfp_server_api.api.job_service_api import JobServiceApi
from kfp_server_api.api.pipeline_service_api import PipelineServiceApi
from kfp_server_api.api.pipeline_upload_service_api import PipelineUploadServiceApi
from kfp_server_api.api.run_service_api import RunServiceApi

View File

@ -1,57 +0,0 @@
# coding: utf-8
# flake8: noqa
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
# import models into model package
from kfp_server_api.models.api_cron_schedule import ApiCronSchedule
from kfp_server_api.models.api_experiment import ApiExperiment
from kfp_server_api.models.api_experiment_storage_state import ApiExperimentStorageState
from kfp_server_api.models.api_get_healthz_response import ApiGetHealthzResponse
from kfp_server_api.models.api_get_template_response import ApiGetTemplateResponse
from kfp_server_api.models.api_job import ApiJob
from kfp_server_api.models.api_list_experiments_response import ApiListExperimentsResponse
from kfp_server_api.models.api_list_jobs_response import ApiListJobsResponse
from kfp_server_api.models.api_list_pipeline_versions_response import ApiListPipelineVersionsResponse
from kfp_server_api.models.api_list_pipelines_response import ApiListPipelinesResponse
from kfp_server_api.models.api_list_runs_response import ApiListRunsResponse
from kfp_server_api.models.api_parameter import ApiParameter
from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule
from kfp_server_api.models.api_pipeline import ApiPipeline
from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime
from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec
from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion
from kfp_server_api.models.api_read_artifact_response import ApiReadArtifactResponse
from kfp_server_api.models.api_relationship import ApiRelationship
from kfp_server_api.models.api_report_run_metrics_request import ApiReportRunMetricsRequest
from kfp_server_api.models.api_report_run_metrics_response import ApiReportRunMetricsResponse
from kfp_server_api.models.api_resource_key import ApiResourceKey
from kfp_server_api.models.api_resource_reference import ApiResourceReference
from kfp_server_api.models.api_resource_type import ApiResourceType
from kfp_server_api.models.api_run import ApiRun
from kfp_server_api.models.api_run_detail import ApiRunDetail
from kfp_server_api.models.api_run_metric import ApiRunMetric
from kfp_server_api.models.api_run_storage_state import ApiRunStorageState
from kfp_server_api.models.api_status import ApiStatus
from kfp_server_api.models.api_trigger import ApiTrigger
from kfp_server_api.models.api_url import ApiUrl
from kfp_server_api.models.job_mode import JobMode
from kfp_server_api.models.pipeline_spec_runtime_config import PipelineSpecRuntimeConfig
from kfp_server_api.models.protobuf_any import ProtobufAny
from kfp_server_api.models.protobuf_list_value import ProtobufListValue
from kfp_server_api.models.protobuf_null_value import ProtobufNullValue
from kfp_server_api.models.protobuf_struct import ProtobufStruct
from kfp_server_api.models.protobuf_value import ProtobufValue
from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult
from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus
from kfp_server_api.models.run_metric_format import RunMetricFormat

View File

@ -1,122 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from kfp_server_api.configuration import Configuration
class ProtobufListValue(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
'values': 'list[ProtobufValue]'
}
attribute_map = {
'values': 'values'
}
def __init__(self, values=None, local_vars_configuration=None): # noqa: E501
"""ProtobufListValue - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._values = None
self.discriminator = None
if values is not None:
self.values = values
@property
def values(self):
"""Gets the values of this ProtobufListValue. # noqa: E501
Repeated field of dynamically typed values. # noqa: E501
:return: The values of this ProtobufListValue. # noqa: E501
:rtype: list[ProtobufValue]
"""
return self._values
@values.setter
def values(self, values):
"""Sets the values of this ProtobufListValue.
Repeated field of dynamically typed values. # noqa: E501
:param values: The values of this ProtobufListValue. # noqa: E501
:type values: list[ProtobufValue]
"""
self._values = values
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ProtobufListValue):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, ProtobufListValue):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,122 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from kfp_server_api.configuration import Configuration
class ProtobufStruct(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
'fields': 'dict(str, ProtobufValue)'
}
attribute_map = {
'fields': 'fields'
}
def __init__(self, fields=None, local_vars_configuration=None): # noqa: E501
"""ProtobufStruct - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._fields = None
self.discriminator = None
if fields is not None:
self.fields = fields
@property
def fields(self):
"""Gets the fields of this ProtobufStruct. # noqa: E501
Unordered map of dynamically typed values. # noqa: E501
:return: The fields of this ProtobufStruct. # noqa: E501
:rtype: dict(str, ProtobufValue)
"""
return self._fields
@fields.setter
def fields(self, fields):
"""Sets the fields of this ProtobufStruct.
Unordered map of dynamically typed values. # noqa: E501
:param fields: The fields of this ProtobufStruct. # noqa: E501
:type fields: dict(str, ProtobufValue)
"""
self._fields = fields
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ProtobufStruct):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, ProtobufStruct):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,256 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from kfp_server_api.configuration import Configuration
class ProtobufValue(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
'null_value': 'ProtobufNullValue',
'number_value': 'float',
'string_value': 'str',
'bool_value': 'bool',
'struct_value': 'ProtobufStruct',
'list_value': 'ProtobufListValue'
}
attribute_map = {
'null_value': 'null_value',
'number_value': 'number_value',
'string_value': 'string_value',
'bool_value': 'bool_value',
'struct_value': 'struct_value',
'list_value': 'list_value'
}
def __init__(self, null_value=None, number_value=None, string_value=None, bool_value=None, struct_value=None, list_value=None, local_vars_configuration=None): # noqa: E501
"""ProtobufValue - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._null_value = None
self._number_value = None
self._string_value = None
self._bool_value = None
self._struct_value = None
self._list_value = None
self.discriminator = None
if null_value is not None:
self.null_value = null_value
if number_value is not None:
self.number_value = number_value
if string_value is not None:
self.string_value = string_value
if bool_value is not None:
self.bool_value = bool_value
if struct_value is not None:
self.struct_value = struct_value
if list_value is not None:
self.list_value = list_value
@property
def null_value(self):
"""Gets the null_value of this ProtobufValue. # noqa: E501
:return: The null_value of this ProtobufValue. # noqa: E501
:rtype: ProtobufNullValue
"""
return self._null_value
@null_value.setter
def null_value(self, null_value):
"""Sets the null_value of this ProtobufValue.
:param null_value: The null_value of this ProtobufValue. # noqa: E501
:type null_value: ProtobufNullValue
"""
self._null_value = null_value
@property
def number_value(self):
"""Gets the number_value of this ProtobufValue. # noqa: E501
Represents a double value. # noqa: E501
:return: The number_value of this ProtobufValue. # noqa: E501
:rtype: float
"""
return self._number_value
@number_value.setter
def number_value(self, number_value):
"""Sets the number_value of this ProtobufValue.
Represents a double value. # noqa: E501
:param number_value: The number_value of this ProtobufValue. # noqa: E501
:type number_value: float
"""
self._number_value = number_value
@property
def string_value(self):
"""Gets the string_value of this ProtobufValue. # noqa: E501
Represents a string value. # noqa: E501
:return: The string_value of this ProtobufValue. # noqa: E501
:rtype: str
"""
return self._string_value
@string_value.setter
def string_value(self, string_value):
"""Sets the string_value of this ProtobufValue.
Represents a string value. # noqa: E501
:param string_value: The string_value of this ProtobufValue. # noqa: E501
:type string_value: str
"""
self._string_value = string_value
@property
def bool_value(self):
"""Gets the bool_value of this ProtobufValue. # noqa: E501
Represents a boolean value. # noqa: E501
:return: The bool_value of this ProtobufValue. # noqa: E501
:rtype: bool
"""
return self._bool_value
@bool_value.setter
def bool_value(self, bool_value):
"""Sets the bool_value of this ProtobufValue.
Represents a boolean value. # noqa: E501
:param bool_value: The bool_value of this ProtobufValue. # noqa: E501
:type bool_value: bool
"""
self._bool_value = bool_value
@property
def struct_value(self):
"""Gets the struct_value of this ProtobufValue. # noqa: E501
:return: The struct_value of this ProtobufValue. # noqa: E501
:rtype: ProtobufStruct
"""
return self._struct_value
@struct_value.setter
def struct_value(self, struct_value):
"""Sets the struct_value of this ProtobufValue.
:param struct_value: The struct_value of this ProtobufValue. # noqa: E501
:type struct_value: ProtobufStruct
"""
self._struct_value = struct_value
@property
def list_value(self):
"""Gets the list_value of this ProtobufValue. # noqa: E501
:return: The list_value of this ProtobufValue. # noqa: E501
:rtype: ProtobufListValue
"""
return self._list_value
@list_value.setter
def list_value(self, list_value):
"""Sets the list_value of this ProtobufValue.
:param list_value: The list_value of this ProtobufValue. # noqa: E501
:type list_value: ProtobufListValue
"""
self._list_value = list_value
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ProtobufValue):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, ProtobufValue):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,114 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.api_job import ApiJob # noqa: E501
from kfp_server_api.rest import ApiException
class TestApiJob(unittest.TestCase):
"""ApiJob unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ApiJob
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.api_job.ApiJob() # noqa: E501
if include_optional :
return ApiJob(
id = '0',
name = '0',
description = '0',
pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec(
pipeline_id = '0',
pipeline_name = '0',
workflow_manifest = '0',
pipeline_manifest = '0',
parameters = [
kfp_server_api.models.api_parameter.apiParameter(
name = '0',
value = '0', )
],
runtime_config = kfp_server_api.models.pipeline_spec_runtime_config.PipelineSpecRuntimeConfig(
parameters = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
},
pipeline_root = '0', ), ),
resource_references = [
kfp_server_api.models.api_resource_reference.apiResourceReference(
key = kfp_server_api.models.api_resource_key.apiResourceKey(
type = 'UNKNOWN_RESOURCE_TYPE',
id = '0', ),
name = '0',
relationship = 'UNKNOWN_RELATIONSHIP', )
],
service_account = '0',
max_concurrency = '0',
trigger = kfp_server_api.models.api_trigger.apiTrigger(
cron_schedule = kfp_server_api.models.cron_schedule_allow_scheduling_the_job_with_unix_like_cron.CronSchedule allow scheduling the job with unix-like cron(
start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
cron = '0', ),
periodic_schedule = kfp_server_api.models.periodic_schedule_allow_scheduling_the_job_periodically_with_certain_interval.PeriodicSchedule allow scheduling the job periodically with certain interval(
start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
interval_second = '0', ), ),
mode = 'UNKNOWN_MODE',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
status = '0',
error = '0',
enabled = True,
no_catchup = True
)
else :
return ApiJob(
)
def testApiJob(self):
"""Test ApiJob"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,119 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.api_list_jobs_response import ApiListJobsResponse # noqa: E501
from kfp_server_api.rest import ApiException
class TestApiListJobsResponse(unittest.TestCase):
"""ApiListJobsResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ApiListJobsResponse
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.api_list_jobs_response.ApiListJobsResponse() # noqa: E501
if include_optional :
return ApiListJobsResponse(
jobs = [
kfp_server_api.models.api_job.apiJob(
id = '0',
name = '0',
description = '0',
pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec(
pipeline_id = '0',
pipeline_name = '0',
workflow_manifest = '0',
pipeline_manifest = '0',
parameters = [
kfp_server_api.models.api_parameter.apiParameter(
name = '0',
value = '0', )
],
runtime_config = kfp_server_api.models.pipeline_spec_runtime_config.PipelineSpecRuntimeConfig(
parameters = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
},
pipeline_root = '0', ), ),
resource_references = [
kfp_server_api.models.api_resource_reference.apiResourceReference(
key = kfp_server_api.models.api_resource_key.apiResourceKey(
type = 'UNKNOWN_RESOURCE_TYPE',
id = '0', ),
name = '0',
relationship = 'UNKNOWN_RELATIONSHIP', )
],
service_account = '0',
max_concurrency = '0',
trigger = kfp_server_api.models.api_trigger.apiTrigger(
cron_schedule = kfp_server_api.models.cron_schedule_allow_scheduling_the_job_with_unix_like_cron.CronSchedule allow scheduling the job with unix-like cron(
start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
cron = '0', ),
periodic_schedule = kfp_server_api.models.periodic_schedule_allow_scheduling_the_job_periodically_with_certain_interval.PeriodicSchedule allow scheduling the job periodically with certain interval(
start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
interval_second = '0', ), ),
mode = 'UNKNOWN_MODE',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
status = '0',
error = '0',
enabled = True,
no_catchup = True, )
],
total_size = 56,
next_page_token = '0'
)
else :
return ApiListJobsResponse(
)
def testApiListJobsResponse(self):
"""Test ApiListJobsResponse"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,115 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.api_list_runs_response import ApiListRunsResponse # noqa: E501
from kfp_server_api.rest import ApiException
class TestApiListRunsResponse(unittest.TestCase):
"""ApiListRunsResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ApiListRunsResponse
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.api_list_runs_response.ApiListRunsResponse() # noqa: E501
if include_optional :
return ApiListRunsResponse(
runs = [
kfp_server_api.models.api_run.apiRun(
id = '0',
name = '0',
storage_state = 'STORAGESTATE_AVAILABLE',
description = '0',
pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec(
pipeline_id = '0',
pipeline_name = '0',
workflow_manifest = '0',
pipeline_manifest = '0',
parameters = [
kfp_server_api.models.api_parameter.apiParameter(
name = '0',
value = '0', )
],
runtime_config = kfp_server_api.models.pipeline_spec_runtime_config.PipelineSpecRuntimeConfig(
parameters = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
},
pipeline_root = '0', ), ),
resource_references = [
kfp_server_api.models.api_resource_reference.apiResourceReference(
key = kfp_server_api.models.api_resource_key.apiResourceKey(
type = 'UNKNOWN_RESOURCE_TYPE',
id = '0', ),
name = '0',
relationship = 'UNKNOWN_RELATIONSHIP', )
],
service_account = '0',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
status = '0',
error = '0',
metrics = [
kfp_server_api.models.api_run_metric.apiRunMetric(
name = '0',
node_id = '0',
number_value = 1.337,
format = 'UNSPECIFIED', )
], )
],
total_size = 56,
next_page_token = '0'
)
else :
return ApiListRunsResponse(
)
def testApiListRunsResponse(self):
"""Test ApiListRunsResponse"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec # noqa: E501
from kfp_server_api.rest import ApiException
class TestApiPipelineSpec(unittest.TestCase):
"""ApiPipelineSpec unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ApiPipelineSpec
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.api_pipeline_spec.ApiPipelineSpec() # noqa: E501
if include_optional :
return ApiPipelineSpec(
pipeline_id = '0',
pipeline_name = '0',
workflow_manifest = '0',
pipeline_manifest = '0',
parameters = [
kfp_server_api.models.api_parameter.apiParameter(
name = '0',
value = '0', )
],
runtime_config = kfp_server_api.models.pipeline_spec_runtime_config.PipelineSpecRuntimeConfig(
parameters = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
},
pipeline_root = '0', )
)
else :
return ApiPipelineSpec(
)
def testApiPipelineSpec(self):
"""Test ApiPipelineSpec"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,114 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.api_run_detail import ApiRunDetail # noqa: E501
from kfp_server_api.rest import ApiException
class TestApiRunDetail(unittest.TestCase):
"""ApiRunDetail unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ApiRunDetail
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.api_run_detail.ApiRunDetail() # noqa: E501
if include_optional :
return ApiRunDetail(
run = kfp_server_api.models.api_run.apiRun(
id = '0',
name = '0',
storage_state = 'STORAGESTATE_AVAILABLE',
description = '0',
pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec(
pipeline_id = '0',
pipeline_name = '0',
workflow_manifest = '0',
pipeline_manifest = '0',
parameters = [
kfp_server_api.models.api_parameter.apiParameter(
name = '0',
value = '0', )
],
runtime_config = kfp_server_api.models.pipeline_spec_runtime_config.PipelineSpecRuntimeConfig(
parameters = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
},
pipeline_root = '0', ), ),
resource_references = [
kfp_server_api.models.api_resource_reference.apiResourceReference(
key = kfp_server_api.models.api_resource_key.apiResourceKey(
type = 'UNKNOWN_RESOURCE_TYPE',
id = '0', ),
name = '0',
relationship = 'UNKNOWN_RELATIONSHIP', )
],
service_account = '0',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
status = '0',
error = '0',
metrics = [
kfp_server_api.models.api_run_metric.apiRunMetric(
name = '0',
node_id = '0',
number_value = 1.337,
format = 'UNSPECIFIED', )
], ),
pipeline_runtime = kfp_server_api.models.api_pipeline_runtime.apiPipelineRuntime(
pipeline_manifest = '0',
workflow_manifest = '0', )
)
else :
return ApiRunDetail(
)
def testApiRunDetail(self):
"""Test ApiRunDetail"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,51 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.api_run_storage_state import ApiRunStorageState # noqa: E501
from kfp_server_api.rest import ApiException
class TestApiRunStorageState(unittest.TestCase):
"""ApiRunStorageState unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ApiRunStorageState
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.api_run_storage_state.ApiRunStorageState() # noqa: E501
if include_optional :
return ApiRunStorageState(
)
else :
return ApiRunStorageState(
)
def testApiRunStorageState(self):
"""Test ApiRunStorageState"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,74 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.pipeline_spec_runtime_config import PipelineSpecRuntimeConfig # noqa: E501
from kfp_server_api.rest import ApiException
class TestPipelineSpecRuntimeConfig(unittest.TestCase):
"""PipelineSpecRuntimeConfig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test PipelineSpecRuntimeConfig
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.pipeline_spec_runtime_config.PipelineSpecRuntimeConfig() # noqa: E501
if include_optional :
return PipelineSpecRuntimeConfig(
parameters = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
},
pipeline_root = '0'
)
else :
return PipelineSpecRuntimeConfig(
)
def testPipelineSpecRuntimeConfig(self):
"""Test PipelineSpecRuntimeConfig"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,67 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.protobuf_list_value import ProtobufListValue # noqa: E501
from kfp_server_api.rest import ApiException
class TestProtobufListValue(unittest.TestCase):
"""ProtobufListValue unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ProtobufListValue
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.protobuf_list_value.ProtobufListValue() # noqa: E501
if include_optional :
return ProtobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(), )
]
)
else :
return ProtobufListValue(
)
def testProtobufListValue(self):
"""Test ProtobufListValue"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,66 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.protobuf_struct import ProtobufStruct # noqa: E501
from kfp_server_api.rest import ApiException
class TestProtobufStruct(unittest.TestCase):
"""ProtobufStruct unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ProtobufStruct
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.protobuf_struct.ProtobufStruct() # noqa: E501
if include_optional :
return ProtobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}
)
else :
return ProtobufStruct(
)
def testProtobufStruct(self):
"""Test ProtobufStruct"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,85 +0,0 @@
# coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kfp_server_api
from kfp_server_api.models.protobuf_value import ProtobufValue # noqa: E501
from kfp_server_api.rest import ApiException
class TestProtobufValue(unittest.TestCase):
"""ProtobufValue unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test ProtobufValue
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kfp_server_api.models.protobuf_value.ProtobufValue() # noqa: E501
if include_optional :
return ProtobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
], ), )
}, ),
list_value = kfp_server_api.models.protobuf_list_value.protobufListValue(
values = [
kfp_server_api.models.protobuf_value.protobufValue(
null_value = 'NULL_VALUE',
number_value = 1.337,
string_value = '0',
bool_value = True,
struct_value = kfp_server_api.models.protobuf_struct.protobufStruct(
fields = {
'key' : kfp_server_api.models.protobuf_value.protobufValue(
number_value = 1.337,
string_value = '0',
bool_value = True, )
}, ), )
], )
)
else :
return ProtobufValue(
)
def testProtobufValue(self):
"""Test ProtobufValue"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -1,301 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "pipeline upload",
"version": "version not set"
},
"schemes": [
"http",
"https"
],
"paths": {
"/apis/v1beta1/pipelines/upload": {
"post": {
"operationId": "UploadPipeline",
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/apiPipeline"
}
},
"default": {
"description": "",
"schema": {
"$ref": "#/definitions/apiStatus"
}
}
},
"parameters": [
{
"name": "uploadfile",
"in": "formData",
"required": true,
"type": "file",
"description": "The pipeline to upload. Maximum size of 32MB is supported."
},
{
"name": "name",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "description",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"PipelineUploadService"
]
}
},
"/apis/v1beta1/pipelines/upload_version": {
"post": {
"operationId": "UploadPipelineVersion",
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/apiPipelineVersion"
}
},
"default": {
"description": "",
"schema": {
"$ref": "#/definitions/apiStatus"
}
}
},
"parameters": [
{
"name": "uploadfile",
"in": "formData",
"required": true,
"type": "file",
"description": "The pipeline to upload. Maximum size of 32MB is supported."
},
{
"name": "name",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pipelineid",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "description",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"PipelineUploadService"
]
}
}
},
"definitions": {
"apiParameter": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"apiPipeline": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/definitions/apiParameter"
}
},
"error": {
"type": "string",
"description": "In case any error happens retrieving a pipeline field, only pipeline ID\nand the error message is returned. Client has the flexibility of choosing\nhow to handle error. This is especially useful during listing call."
}
}
},
"apiPipelineVersion": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Output. Unique version ID. Generated by API server."
},
"name": {
"type": "string",
"description": "Optional input field. Version name provided by user."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Output. The time this pipeline version is created."
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/definitions/apiParameter"
},
"description": "Output. The input parameters for this pipeline."
},
"code_source_url": {
"type": "string",
"description": "Input. Optional. Pipeline version code source."
},
"package_url": {
"$ref": "#/definitions/apiUrl",
"description": "Input. Required. Pipeline version package url.\nWhe calling CreatePipelineVersion API method, need to provide one package\nfile location."
},
"resource_references": {
"type": "array",
"items": {
"$ref": "#/definitions/apiResourceReference"
},
"description": "Input. Required. E.g., specify which pipeline this pipeline version belongs\nto."
}
}
},
"apiRelationship": {
"type": "string",
"enum": [
"UNKNOWN_RELATIONSHIP",
"OWNER",
"CREATOR"
],
"default": "UNKNOWN_RELATIONSHIP"
},
"apiResourceKey": {
"type": "object",
"properties": {
"type": {
"$ref": "#/definitions/apiResourceType",
"description": "The type of the resource that referred to."
},
"id": {
"type": "string",
"description": "The ID of the resource that referred to."
}
}
},
"apiResourceReference": {
"type": "object",
"properties": {
"key": {
"$ref": "#/definitions/apiResourceKey"
},
"name": {
"type": "string",
"description": "The name of the resource that referred to."
},
"relationship": {
"$ref": "#/definitions/apiRelationship",
"description": "Required field. The relationship from referred resource to the object."
}
}
},
"apiResourceType": {
"type": "string",
"enum": [
"UNKNOWN_RESOURCE_TYPE",
"EXPERIMENT",
"JOB",
"PIPELINE",
"PIPELINE_VERSION",
"NAMESPACE"
],
"default": "UNKNOWN_RESOURCE_TYPE"
},
"apiStatus": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"apiUrl": {
"type": "object",
"properties": {
"pipeline_url": {
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string",
"description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
},
"value": {
"type": "string",
"format": "byte",
"description": "Must be a valid serialized protocol buffer of the above specified type."
}
},
"description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := \u0026pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
}
},
"securityDefinitions": {
"Bearer": {
"type": "apiKey",
"name": "authorization",
"in": "header"
}
},
"security": [
{
"Bearer": []
}
]
}

View File

@ -14,8 +14,8 @@
syntax = "proto3";
option go_package = "github.com/kubeflow/pipelines/backend/api/go_client";
package api;
option go_package = "github.com/kubeflow/pipelines/backend/api/v1beta1/go_client";
package v1beta1;
import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
@ -27,7 +27,7 @@ option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
value: {
schema: {
json_schema: {
ref: ".api.Status";
ref: ".v1beta1.Status";
}
}
}

View File

@ -14,8 +14,8 @@
syntax = "proto3";
option go_package = "github.com/kubeflow/pipelines/backend/api/go_client";
package api;
option go_package = "github.com/kubeflow/pipelines/backend/api/v1beta1/go_client";
package v1beta1;
import "google/protobuf/any.proto";

View File

@ -14,11 +14,11 @@
syntax = "proto3";
option go_package = "github.com/kubeflow/pipelines/backend/api/go_client";
package api;
option go_package = "github.com/kubeflow/pipelines/backend/api/v1beta1/go_client";
package v1beta1;
import "backend/api/error.proto";
import "backend/api/resource_reference.proto";
import "backend/api/v1beta1/error.proto";
import "backend/api/v1beta1/resource_reference.proto";
import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
@ -30,7 +30,7 @@ option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
value: {
schema: {
json_schema: {
ref: ".api.Status";
ref: ".v1beta1.Status";
}
}
}
@ -132,7 +132,7 @@ message ListExperimentsRequest {
string sort_by = 3;
// A url-encoded, JSON-serialized Filter protocol buffer (see
// [filter.proto](https://github.com/kubeflow/pipelines/blob/master/backend/api/filter.proto)).
// [filter.proto](https://github.com/kubeflow/pipelines/blob/master/backend/api/v1beta1/filter.proto)).
string filter = 4;
// What resource reference to filter on.

View File

@ -14,8 +14,8 @@
syntax = "proto3";
option go_package = "github.com/kubeflow/pipelines/backend/api/go_client";
package api;
option go_package = "github.com/kubeflow/pipelines/backend/api/v1beta1/go_client";
package v1beta1;
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/auth.proto
// source: backend/api/v1beta1/auth.proto
package go_client
@ -72,11 +72,11 @@ func (x AuthorizeRequest_Resources) String() string {
}
func (AuthorizeRequest_Resources) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_auth_proto_enumTypes[0].Descriptor()
return file_backend_api_v1beta1_auth_proto_enumTypes[0].Descriptor()
}
func (AuthorizeRequest_Resources) Type() protoreflect.EnumType {
return &file_backend_api_auth_proto_enumTypes[0]
return &file_backend_api_v1beta1_auth_proto_enumTypes[0]
}
func (x AuthorizeRequest_Resources) Number() protoreflect.EnumNumber {
@ -85,7 +85,7 @@ func (x AuthorizeRequest_Resources) Number() protoreflect.EnumNumber {
// Deprecated: Use AuthorizeRequest_Resources.Descriptor instead.
func (AuthorizeRequest_Resources) EnumDescriptor() ([]byte, []int) {
return file_backend_api_auth_proto_rawDescGZIP(), []int{0, 0}
return file_backend_api_v1beta1_auth_proto_rawDescGZIP(), []int{0, 0}
}
// Type of verbs that act on the resources.
@ -125,11 +125,11 @@ func (x AuthorizeRequest_Verb) String() string {
}
func (AuthorizeRequest_Verb) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_auth_proto_enumTypes[1].Descriptor()
return file_backend_api_v1beta1_auth_proto_enumTypes[1].Descriptor()
}
func (AuthorizeRequest_Verb) Type() protoreflect.EnumType {
return &file_backend_api_auth_proto_enumTypes[1]
return &file_backend_api_v1beta1_auth_proto_enumTypes[1]
}
func (x AuthorizeRequest_Verb) Number() protoreflect.EnumNumber {
@ -138,7 +138,7 @@ func (x AuthorizeRequest_Verb) Number() protoreflect.EnumNumber {
// Deprecated: Use AuthorizeRequest_Verb.Descriptor instead.
func (AuthorizeRequest_Verb) EnumDescriptor() ([]byte, []int) {
return file_backend_api_auth_proto_rawDescGZIP(), []int{0, 1}
return file_backend_api_v1beta1_auth_proto_rawDescGZIP(), []int{0, 1}
}
// Ask for authorization of an access by providing resource's namespace, type
@ -149,15 +149,15 @@ type AuthorizeRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Namespace the resource belongs to.
Resources AuthorizeRequest_Resources `protobuf:"varint,2,opt,name=resources,proto3,enum=api.AuthorizeRequest_Resources" json:"resources,omitempty"` // Resource type asking for authorization.
Verb AuthorizeRequest_Verb `protobuf:"varint,3,opt,name=verb,proto3,enum=api.AuthorizeRequest_Verb" json:"verb,omitempty"` // Verb on the resource asking for authorization.
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Namespace the resource belongs to.
Resources AuthorizeRequest_Resources `protobuf:"varint,2,opt,name=resources,proto3,enum=v1beta1.AuthorizeRequest_Resources" json:"resources,omitempty"` // Resource type asking for authorization.
Verb AuthorizeRequest_Verb `protobuf:"varint,3,opt,name=verb,proto3,enum=v1beta1.AuthorizeRequest_Verb" json:"verb,omitempty"` // Verb on the resource asking for authorization.
}
func (x *AuthorizeRequest) Reset() {
*x = AuthorizeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_auth_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_auth_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -170,7 +170,7 @@ func (x *AuthorizeRequest) String() string {
func (*AuthorizeRequest) ProtoMessage() {}
func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_auth_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_auth_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -183,7 +183,7 @@ func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeRequest) Descriptor() ([]byte, []int) {
return file_backend_api_auth_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_auth_proto_rawDescGZIP(), []int{0}
}
func (x *AuthorizeRequest) GetNamespace() string {
@ -207,78 +207,80 @@ func (x *AuthorizeRequest) GetVerb() AuthorizeRequest_Verb {
return AuthorizeRequest_UNASSIGNED_VERB
}
var File_backend_api_auth_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_auth_proto protoreflect.FileDescriptor
var file_backend_api_auth_proto_rawDesc = []byte{
0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x75,
0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70,
0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x02, 0x0a, 0x10, 0x41, 0x75, 0x74, 0x68, 0x6f,
0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x72, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75,
var file_backend_api_v1beta1_auth_proto_rawDesc = []byte{
0x0a, 0x1e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x99, 0x02, 0x0a, 0x10, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73,
0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65,
0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x65,
0x72, 0x62, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x22, 0x32, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x14, 0x55, 0x4e, 0x41, 0x53, 0x53, 0x49, 0x47,
0x4e, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x53, 0x10, 0x00, 0x12,
0x0b, 0x0a, 0x07, 0x56, 0x49, 0x45, 0x57, 0x45, 0x52, 0x53, 0x10, 0x01, 0x22, 0x3c, 0x0a, 0x04,
0x56, 0x65, 0x72, 0x62, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, 0x41, 0x53, 0x53, 0x49, 0x47, 0x4e,
0x45, 0x44, 0x5f, 0x56, 0x45, 0x52, 0x42, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x45,
0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54, 0x10, 0x02, 0x12, 0x0a,
0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x32, 0x65, 0x0a, 0x0b, 0x41, 0x75,
0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x09, 0x41, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f,
0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, 0x74,
0x68, 0x42, 0x85, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69,
0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x92, 0x41, 0x4d, 0x52, 0x1c, 0x0a, 0x07,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x11, 0x12, 0x0f, 0x0a, 0x0d, 0x1a, 0x0b, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5a, 0x1f, 0x0a, 0x1d, 0x0a, 0x06,
0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x13, 0x08, 0x02, 0x1a, 0x0d, 0x61, 0x75, 0x74, 0x68,
0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x02, 0x62, 0x0c, 0x0a, 0x0a, 0x0a,
0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x2e, 0x56, 0x65, 0x72, 0x62, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x22, 0x32, 0x0a, 0x09,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x14, 0x55, 0x4e, 0x41,
0x53, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,
0x53, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x56, 0x49, 0x45, 0x57, 0x45, 0x52, 0x53, 0x10, 0x01,
0x22, 0x3c, 0x0a, 0x04, 0x56, 0x65, 0x72, 0x62, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, 0x41, 0x53,
0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x5f, 0x56, 0x45, 0x52, 0x42, 0x10, 0x00, 0x12, 0x0a, 0x0a,
0x06, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54,
0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x32, 0x69,
0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a,
0x09, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x12, 0x19, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x42, 0x91, 0x01, 0x5a, 0x3b, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f,
0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b,
0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x92, 0x41, 0x51, 0x52, 0x20, 0x0a, 0x07,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x12, 0x13, 0x0a, 0x11, 0x1a, 0x0f, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5a, 0x1f,
0x0a, 0x1d, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x13, 0x08, 0x02, 0x1a, 0x0d,
0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x02, 0x62,
0x0c, 0x0a, 0x0a, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x00, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_auth_proto_rawDescOnce sync.Once
file_backend_api_auth_proto_rawDescData = file_backend_api_auth_proto_rawDesc
file_backend_api_v1beta1_auth_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_auth_proto_rawDescData = file_backend_api_v1beta1_auth_proto_rawDesc
)
func file_backend_api_auth_proto_rawDescGZIP() []byte {
file_backend_api_auth_proto_rawDescOnce.Do(func() {
file_backend_api_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_auth_proto_rawDescData)
func file_backend_api_v1beta1_auth_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_auth_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_auth_proto_rawDescData)
})
return file_backend_api_auth_proto_rawDescData
return file_backend_api_v1beta1_auth_proto_rawDescData
}
var file_backend_api_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_backend_api_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_backend_api_auth_proto_goTypes = []interface{}{
(AuthorizeRequest_Resources)(0), // 0: api.AuthorizeRequest.Resources
(AuthorizeRequest_Verb)(0), // 1: api.AuthorizeRequest.Verb
(*AuthorizeRequest)(nil), // 2: api.AuthorizeRequest
var file_backend_api_v1beta1_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_backend_api_v1beta1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_backend_api_v1beta1_auth_proto_goTypes = []interface{}{
(AuthorizeRequest_Resources)(0), // 0: v1beta1.AuthorizeRequest.Resources
(AuthorizeRequest_Verb)(0), // 1: v1beta1.AuthorizeRequest.Verb
(*AuthorizeRequest)(nil), // 2: v1beta1.AuthorizeRequest
(*emptypb.Empty)(nil), // 3: google.protobuf.Empty
}
var file_backend_api_auth_proto_depIdxs = []int32{
0, // 0: api.AuthorizeRequest.resources:type_name -> api.AuthorizeRequest.Resources
1, // 1: api.AuthorizeRequest.verb:type_name -> api.AuthorizeRequest.Verb
2, // 2: api.AuthService.Authorize:input_type -> api.AuthorizeRequest
3, // 3: api.AuthService.Authorize:output_type -> google.protobuf.Empty
var file_backend_api_v1beta1_auth_proto_depIdxs = []int32{
0, // 0: v1beta1.AuthorizeRequest.resources:type_name -> v1beta1.AuthorizeRequest.Resources
1, // 1: v1beta1.AuthorizeRequest.verb:type_name -> v1beta1.AuthorizeRequest.Verb
2, // 2: v1beta1.AuthService.Authorize:input_type -> v1beta1.AuthorizeRequest
3, // 3: v1beta1.AuthService.Authorize:output_type -> google.protobuf.Empty
3, // [3:4] is the sub-list for method output_type
2, // [2:3] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
@ -286,13 +288,13 @@ var file_backend_api_auth_proto_depIdxs = []int32{
0, // [0:2] is the sub-list for field type_name
}
func init() { file_backend_api_auth_proto_init() }
func file_backend_api_auth_proto_init() {
if File_backend_api_auth_proto != nil {
func init() { file_backend_api_v1beta1_auth_proto_init() }
func file_backend_api_v1beta1_auth_proto_init() {
if File_backend_api_v1beta1_auth_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_backend_api_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AuthorizeRequest); i {
case 0:
return &v.state
@ -309,21 +311,21 @@ func file_backend_api_auth_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_auth_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_auth_proto_rawDesc,
NumEnums: 2,
NumMessages: 1,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_auth_proto_goTypes,
DependencyIndexes: file_backend_api_auth_proto_depIdxs,
EnumInfos: file_backend_api_auth_proto_enumTypes,
MessageInfos: file_backend_api_auth_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_auth_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_auth_proto_depIdxs,
EnumInfos: file_backend_api_v1beta1_auth_proto_enumTypes,
MessageInfos: file_backend_api_v1beta1_auth_proto_msgTypes,
}.Build()
File_backend_api_auth_proto = out.File
file_backend_api_auth_proto_rawDesc = nil
file_backend_api_auth_proto_goTypes = nil
file_backend_api_auth_proto_depIdxs = nil
File_backend_api_v1beta1_auth_proto = out.File
file_backend_api_v1beta1_auth_proto_rawDesc = nil
file_backend_api_v1beta1_auth_proto_goTypes = nil
file_backend_api_v1beta1_auth_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -351,7 +353,7 @@ func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient {
func (c *authServiceClient) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.AuthService/Authorize", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.AuthService/Authorize", in, out, opts...)
if err != nil {
return nil, err
}
@ -385,7 +387,7 @@ func _AuthService_Authorize_Handler(srv interface{}, ctx context.Context, dec fu
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.AuthService/Authorize",
FullMethod: "/v1beta1.AuthService/Authorize",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServiceServer).Authorize(ctx, req.(*AuthorizeRequest))
@ -394,7 +396,7 @@ func _AuthService_Authorize_Handler(srv interface{}, ctx context.Context, dec fu
}
var _AuthService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.AuthService",
ServiceName: "v1beta1.AuthService",
HandlerType: (*AuthServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -403,5 +405,5 @@ var _AuthService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/auth.proto",
Metadata: "backend/api/v1beta1/auth.proto",
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/auth.proto
// source: backend/api/v1beta1/auth.proto
/*
Package go_client is a reverse proxy.
@ -36,7 +36,10 @@ func request_AuthService_Authorize_0(ctx context.Context, marshaler runtime.Mars
var protoReq AuthorizeRequest
var metadata runtime.ServerMetadata
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AuthService_Authorize_0); err != nil {
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AuthService_Authorize_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@ -107,7 +110,7 @@ func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
var (
pattern_AuthService_Authorize_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "auth"}, ""))
pattern_AuthService_Authorize_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "auth"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/error.proto
// source: backend/api/v1beta1/error.proto
package go_client
@ -47,7 +47,7 @@ type Error struct {
func (x *Error) Reset() {
*x = Error{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_error_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_error_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -60,7 +60,7 @@ func (x *Error) String() string {
func (*Error) ProtoMessage() {}
func (x *Error) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_error_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_error_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -73,7 +73,7 @@ func (x *Error) ProtoReflect() protoreflect.Message {
// Deprecated: Use Error.ProtoReflect.Descriptor instead.
func (*Error) Descriptor() ([]byte, []int) {
return file_backend_api_error_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_error_proto_rawDescGZIP(), []int{0}
}
func (x *Error) GetErrorMessage() string {
@ -103,7 +103,7 @@ type Status struct {
func (x *Status) Reset() {
*x = Status{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_error_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_error_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -116,7 +116,7 @@ func (x *Status) String() string {
func (*Status) ProtoMessage() {}
func (x *Status) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_error_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_error_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -129,7 +129,7 @@ func (x *Status) ProtoReflect() protoreflect.Message {
// Deprecated: Use Status.ProtoReflect.Descriptor instead.
func (*Status) Descriptor() ([]byte, []int) {
return file_backend_api_error_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_error_proto_rawDescGZIP(), []int{1}
}
func (x *Status) GetError() string {
@ -153,50 +153,52 @@ func (x *Status) GetDetails() []*anypb.Any {
return nil
}
var File_backend_api_error_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_error_proto protoreflect.FileDescriptor
var file_backend_api_error_proto_rawDesc = []byte{
0x0a, 0x17, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x19,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x05, 0x45, 0x72, 0x72,
0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x65, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x62, 0x0a, 0x06,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04,
0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73,
0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b,
0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65,
0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f,
0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
var file_backend_api_v1beta1_error_proto_rawDesc = []byte{
0x0a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x23,
0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74,
0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f,
0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x62, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x07,
0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x41, 0x6e, 0x79, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x3d, 0x5a, 0x3b,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66,
0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61,
0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
file_backend_api_error_proto_rawDescOnce sync.Once
file_backend_api_error_proto_rawDescData = file_backend_api_error_proto_rawDesc
file_backend_api_v1beta1_error_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_error_proto_rawDescData = file_backend_api_v1beta1_error_proto_rawDesc
)
func file_backend_api_error_proto_rawDescGZIP() []byte {
file_backend_api_error_proto_rawDescOnce.Do(func() {
file_backend_api_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_error_proto_rawDescData)
func file_backend_api_v1beta1_error_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_error_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_error_proto_rawDescData)
})
return file_backend_api_error_proto_rawDescData
return file_backend_api_v1beta1_error_proto_rawDescData
}
var file_backend_api_error_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_error_proto_goTypes = []interface{}{
(*Error)(nil), // 0: api.Error
(*Status)(nil), // 1: api.Status
var file_backend_api_v1beta1_error_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_v1beta1_error_proto_goTypes = []interface{}{
(*Error)(nil), // 0: v1beta1.Error
(*Status)(nil), // 1: v1beta1.Status
(*anypb.Any)(nil), // 2: google.protobuf.Any
}
var file_backend_api_error_proto_depIdxs = []int32{
2, // 0: api.Status.details:type_name -> google.protobuf.Any
var file_backend_api_v1beta1_error_proto_depIdxs = []int32{
2, // 0: v1beta1.Status.details:type_name -> google.protobuf.Any
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
@ -204,13 +206,13 @@ var file_backend_api_error_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_backend_api_error_proto_init() }
func file_backend_api_error_proto_init() {
if File_backend_api_error_proto != nil {
func init() { file_backend_api_v1beta1_error_proto_init() }
func file_backend_api_v1beta1_error_proto_init() {
if File_backend_api_v1beta1_error_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_backend_api_error_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_error_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Error); i {
case 0:
return &v.state
@ -222,7 +224,7 @@ func file_backend_api_error_proto_init() {
return nil
}
}
file_backend_api_error_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_error_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Status); i {
case 0:
return &v.state
@ -239,18 +241,18 @@ func file_backend_api_error_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_error_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_error_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_backend_api_error_proto_goTypes,
DependencyIndexes: file_backend_api_error_proto_depIdxs,
MessageInfos: file_backend_api_error_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_error_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_error_proto_depIdxs,
MessageInfos: file_backend_api_v1beta1_error_proto_msgTypes,
}.Build()
File_backend_api_error_proto = out.File
file_backend_api_error_proto_rawDesc = nil
file_backend_api_error_proto_goTypes = nil
file_backend_api_error_proto_depIdxs = nil
File_backend_api_v1beta1_error_proto = out.File
file_backend_api_v1beta1_error_proto_rawDesc = nil
file_backend_api_v1beta1_error_proto_goTypes = nil
file_backend_api_v1beta1_error_proto_depIdxs = nil
}

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/experiment.proto
// source: backend/api/v1beta1/experiment.proto
package go_client
@ -75,11 +75,11 @@ func (x Experiment_StorageState) String() string {
}
func (Experiment_StorageState) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_experiment_proto_enumTypes[0].Descriptor()
return file_backend_api_v1beta1_experiment_proto_enumTypes[0].Descriptor()
}
func (Experiment_StorageState) Type() protoreflect.EnumType {
return &file_backend_api_experiment_proto_enumTypes[0]
return &file_backend_api_v1beta1_experiment_proto_enumTypes[0]
}
func (x Experiment_StorageState) Number() protoreflect.EnumNumber {
@ -88,7 +88,7 @@ func (x Experiment_StorageState) Number() protoreflect.EnumNumber {
// Deprecated: Use Experiment_StorageState.Descriptor instead.
func (Experiment_StorageState) EnumDescriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{5, 0}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{5, 0}
}
type CreateExperimentRequest struct {
@ -103,7 +103,7 @@ type CreateExperimentRequest struct {
func (x *CreateExperimentRequest) Reset() {
*x = CreateExperimentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -116,7 +116,7 @@ func (x *CreateExperimentRequest) String() string {
func (*CreateExperimentRequest) ProtoMessage() {}
func (x *CreateExperimentRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -129,7 +129,7 @@ func (x *CreateExperimentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateExperimentRequest.ProtoReflect.Descriptor instead.
func (*CreateExperimentRequest) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{0}
}
func (x *CreateExperimentRequest) GetExperiment() *Experiment {
@ -151,7 +151,7 @@ type GetExperimentRequest struct {
func (x *GetExperimentRequest) Reset() {
*x = GetExperimentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -164,7 +164,7 @@ func (x *GetExperimentRequest) String() string {
func (*GetExperimentRequest) ProtoMessage() {}
func (x *GetExperimentRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -177,7 +177,7 @@ func (x *GetExperimentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetExperimentRequest.ProtoReflect.Descriptor instead.
func (*GetExperimentRequest) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{1}
}
func (x *GetExperimentRequest) GetId() string {
@ -215,7 +215,7 @@ type ListExperimentsRequest struct {
func (x *ListExperimentsRequest) Reset() {
*x = ListExperimentsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -228,7 +228,7 @@ func (x *ListExperimentsRequest) String() string {
func (*ListExperimentsRequest) ProtoMessage() {}
func (x *ListExperimentsRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -241,7 +241,7 @@ func (x *ListExperimentsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListExperimentsRequest.ProtoReflect.Descriptor instead.
func (*ListExperimentsRequest) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{2}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{2}
}
func (x *ListExperimentsRequest) GetPageToken() string {
@ -295,7 +295,7 @@ type ListExperimentsResponse struct {
func (x *ListExperimentsResponse) Reset() {
*x = ListExperimentsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -308,7 +308,7 @@ func (x *ListExperimentsResponse) String() string {
func (*ListExperimentsResponse) ProtoMessage() {}
func (x *ListExperimentsResponse) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -321,7 +321,7 @@ func (x *ListExperimentsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListExperimentsResponse.ProtoReflect.Descriptor instead.
func (*ListExperimentsResponse) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{3}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{3}
}
func (x *ListExperimentsResponse) GetExperiments() []*Experiment {
@ -357,7 +357,7 @@ type DeleteExperimentRequest struct {
func (x *DeleteExperimentRequest) Reset() {
*x = DeleteExperimentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[4]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -370,7 +370,7 @@ func (x *DeleteExperimentRequest) String() string {
func (*DeleteExperimentRequest) ProtoMessage() {}
func (x *DeleteExperimentRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[4]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -383,7 +383,7 @@ func (x *DeleteExperimentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteExperimentRequest.ProtoReflect.Descriptor instead.
func (*DeleteExperimentRequest) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{4}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{4}
}
func (x *DeleteExperimentRequest) GetId() string {
@ -410,13 +410,13 @@ type Experiment struct {
// For Experiment, the only valid resource reference is a single Namespace.
ResourceReferences []*ResourceReference `protobuf:"bytes,5,rep,name=resource_references,json=resourceReferences,proto3" json:"resource_references,omitempty"`
// Output. Specifies whether this experiment is in archived or available state.
StorageState Experiment_StorageState `protobuf:"varint,6,opt,name=storage_state,json=storageState,proto3,enum=api.Experiment_StorageState" json:"storage_state,omitempty"`
StorageState Experiment_StorageState `protobuf:"varint,6,opt,name=storage_state,json=storageState,proto3,enum=v1beta1.Experiment_StorageState" json:"storage_state,omitempty"`
}
func (x *Experiment) Reset() {
*x = Experiment{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[5]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -429,7 +429,7 @@ func (x *Experiment) String() string {
func (*Experiment) ProtoMessage() {}
func (x *Experiment) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[5]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -442,7 +442,7 @@ func (x *Experiment) ProtoReflect() protoreflect.Message {
// Deprecated: Use Experiment.ProtoReflect.Descriptor instead.
func (*Experiment) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{5}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{5}
}
func (x *Experiment) GetId() string {
@ -499,7 +499,7 @@ type ArchiveExperimentRequest struct {
func (x *ArchiveExperimentRequest) Reset() {
*x = ArchiveExperimentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[6]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -512,7 +512,7 @@ func (x *ArchiveExperimentRequest) String() string {
func (*ArchiveExperimentRequest) ProtoMessage() {}
func (x *ArchiveExperimentRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[6]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -525,7 +525,7 @@ func (x *ArchiveExperimentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ArchiveExperimentRequest.ProtoReflect.Descriptor instead.
func (*ArchiveExperimentRequest) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{6}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{6}
}
func (x *ArchiveExperimentRequest) GetId() string {
@ -547,7 +547,7 @@ type UnarchiveExperimentRequest struct {
func (x *UnarchiveExperimentRequest) Reset() {
*x = UnarchiveExperimentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_experiment_proto_msgTypes[7]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -560,7 +560,7 @@ func (x *UnarchiveExperimentRequest) String() string {
func (*UnarchiveExperimentRequest) ProtoMessage() {}
func (x *UnarchiveExperimentRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_experiment_proto_msgTypes[7]
mi := &file_backend_api_v1beta1_experiment_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -573,7 +573,7 @@ func (x *UnarchiveExperimentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnarchiveExperimentRequest.ProtoReflect.Descriptor instead.
func (*UnarchiveExperimentRequest) Descriptor() ([]byte, []int) {
return file_backend_api_experiment_proto_rawDescGZIP(), []int{7}
return file_backend_api_v1beta1_experiment_proto_rawDescGZIP(), []int{7}
}
func (x *UnarchiveExperimentRequest) GetId() string {
@ -583,32 +583,34 @@ func (x *UnarchiveExperimentRequest) GetId() string {
return ""
}
var File_backend_api_experiment_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_experiment_proto protoreflect.FileDescriptor
var file_backend_api_experiment_proto_rawDesc = []byte{
0x0a, 0x1c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78,
0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03,
0x61, 0x70, 0x69, 0x1a, 0x17, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x62, 0x61,
0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67,
0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x17,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x65, 0x78,
var file_backend_api_v1beta1_experiment_proto_rawDesc = []byte{
0x0a, 0x24, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a,
0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x2c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72,
0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d,
0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x65, 0x78,
0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x26, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x45,
0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x22, 0xcd, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d,
0x22, 0xd1, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,
@ -616,39 +618,40 @@ var file_backend_api_experiment_proto_rawDesc = []byte{
0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f,
0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79,
0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f,
0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6b,
0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79,
0x22, 0x93, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x0b,
0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65,
0x6e, 0x74, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12,
0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26,
0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x29, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
0x64, 0x22, 0xfe, 0x02, 0x0a, 0x0a, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
0x74, 0x12, 0x47, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65,
0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66,
0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x0d, 0x73, 0x74,
0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65,
0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x14,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
0x65, 0x4b, 0x65, 0x79, 0x22, 0x97, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70,
0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x35, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x65,
0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c,
0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x6f, 0x74,
0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x29,
0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65,
0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x86, 0x03, 0x0a, 0x0a, 0x45, 0x78,
0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b,
0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39,
0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x4b, 0x0a, 0x13, 0x72, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73,
0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
0x63, 0x65, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65,
0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65,
0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x63, 0x0a,
0x0c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a,
@ -662,57 +665,60 @@ var file_backend_api_experiment_proto_rawDesc = []byte{
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2c,
0x0a, 0x1a, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x32, 0xcb, 0x05, 0x0a,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x32, 0xef, 0x05, 0x0a,
0x11, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x70, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65,
0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x19, 0x2f,
0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70,
0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69,
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x63, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x45,
0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x0f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
0x63, 0x65, 0x12, 0x78, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65,
0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x2d, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73,
0x3a, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x6b, 0x0a, 0x0d,
0x47, 0x65, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
0x74, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x73,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x6e, 0x0a, 0x0e, 0x4c, 0x69, 0x73,
0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c,
0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19,
0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78,
0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x70, 0x0a, 0x10, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69,
0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x2a, 0x1e, 0x2f, 0x61, 0x70,
0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x7a, 0x0a, 0x11, 0x41,
0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x78,
0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x76, 0x0a, 0x0e, 0x4c, 0x69, 0x73,
0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69,
0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21,
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x73, 0x12, 0x74, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72,
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x2a, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x7e, 0x0a, 0x11, 0x41, 0x72, 0x63, 0x68, 0x69,
0x76, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x78,
0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22,
0x26, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65,
0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a,
0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x72,
0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x72,
0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12,
0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45,
0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a,
0x22, 0x28, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d,
0x3a, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x42, 0x85, 0x01, 0x5a, 0x33, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c,
0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63,
0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65,
0x6e, 0x74, 0x92, 0x41, 0x4d, 0x52, 0x1c, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x12, 0x11, 0x12, 0x0f, 0x0a, 0x0d, 0x1a, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61,
0x23, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68,
0x69, 0x76, 0x65, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x30, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x2a, 0x22, 0x28, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,
0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x42, 0x91,
0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75,
0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73,
0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x92, 0x41,
0x51, 0x52, 0x20, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x12, 0x13,
0x0a, 0x11, 0x1a, 0x0f, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x5a, 0x1f, 0x0a, 0x1d, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12,
0x13, 0x08, 0x02, 0x1a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x20, 0x02, 0x62, 0x0c, 0x0a, 0x0a, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72,
@ -720,53 +726,53 @@ var file_backend_api_experiment_proto_rawDesc = []byte{
}
var (
file_backend_api_experiment_proto_rawDescOnce sync.Once
file_backend_api_experiment_proto_rawDescData = file_backend_api_experiment_proto_rawDesc
file_backend_api_v1beta1_experiment_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_experiment_proto_rawDescData = file_backend_api_v1beta1_experiment_proto_rawDesc
)
func file_backend_api_experiment_proto_rawDescGZIP() []byte {
file_backend_api_experiment_proto_rawDescOnce.Do(func() {
file_backend_api_experiment_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_experiment_proto_rawDescData)
func file_backend_api_v1beta1_experiment_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_experiment_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_experiment_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_experiment_proto_rawDescData)
})
return file_backend_api_experiment_proto_rawDescData
return file_backend_api_v1beta1_experiment_proto_rawDescData
}
var file_backend_api_experiment_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_experiment_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_backend_api_experiment_proto_goTypes = []interface{}{
(Experiment_StorageState)(0), // 0: api.Experiment.StorageState
(*CreateExperimentRequest)(nil), // 1: api.CreateExperimentRequest
(*GetExperimentRequest)(nil), // 2: api.GetExperimentRequest
(*ListExperimentsRequest)(nil), // 3: api.ListExperimentsRequest
(*ListExperimentsResponse)(nil), // 4: api.ListExperimentsResponse
(*DeleteExperimentRequest)(nil), // 5: api.DeleteExperimentRequest
(*Experiment)(nil), // 6: api.Experiment
(*ArchiveExperimentRequest)(nil), // 7: api.ArchiveExperimentRequest
(*UnarchiveExperimentRequest)(nil), // 8: api.UnarchiveExperimentRequest
(*ResourceKey)(nil), // 9: api.ResourceKey
var file_backend_api_v1beta1_experiment_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_v1beta1_experiment_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_backend_api_v1beta1_experiment_proto_goTypes = []interface{}{
(Experiment_StorageState)(0), // 0: v1beta1.Experiment.StorageState
(*CreateExperimentRequest)(nil), // 1: v1beta1.CreateExperimentRequest
(*GetExperimentRequest)(nil), // 2: v1beta1.GetExperimentRequest
(*ListExperimentsRequest)(nil), // 3: v1beta1.ListExperimentsRequest
(*ListExperimentsResponse)(nil), // 4: v1beta1.ListExperimentsResponse
(*DeleteExperimentRequest)(nil), // 5: v1beta1.DeleteExperimentRequest
(*Experiment)(nil), // 6: v1beta1.Experiment
(*ArchiveExperimentRequest)(nil), // 7: v1beta1.ArchiveExperimentRequest
(*UnarchiveExperimentRequest)(nil), // 8: v1beta1.UnarchiveExperimentRequest
(*ResourceKey)(nil), // 9: v1beta1.ResourceKey
(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
(*ResourceReference)(nil), // 11: api.ResourceReference
(*ResourceReference)(nil), // 11: v1beta1.ResourceReference
(*emptypb.Empty)(nil), // 12: google.protobuf.Empty
}
var file_backend_api_experiment_proto_depIdxs = []int32{
6, // 0: api.CreateExperimentRequest.experiment:type_name -> api.Experiment
9, // 1: api.ListExperimentsRequest.resource_reference_key:type_name -> api.ResourceKey
6, // 2: api.ListExperimentsResponse.experiments:type_name -> api.Experiment
10, // 3: api.Experiment.created_at:type_name -> google.protobuf.Timestamp
11, // 4: api.Experiment.resource_references:type_name -> api.ResourceReference
0, // 5: api.Experiment.storage_state:type_name -> api.Experiment.StorageState
1, // 6: api.ExperimentService.CreateExperiment:input_type -> api.CreateExperimentRequest
2, // 7: api.ExperimentService.GetExperiment:input_type -> api.GetExperimentRequest
3, // 8: api.ExperimentService.ListExperiment:input_type -> api.ListExperimentsRequest
5, // 9: api.ExperimentService.DeleteExperiment:input_type -> api.DeleteExperimentRequest
7, // 10: api.ExperimentService.ArchiveExperiment:input_type -> api.ArchiveExperimentRequest
8, // 11: api.ExperimentService.UnarchiveExperiment:input_type -> api.UnarchiveExperimentRequest
6, // 12: api.ExperimentService.CreateExperiment:output_type -> api.Experiment
6, // 13: api.ExperimentService.GetExperiment:output_type -> api.Experiment
4, // 14: api.ExperimentService.ListExperiment:output_type -> api.ListExperimentsResponse
12, // 15: api.ExperimentService.DeleteExperiment:output_type -> google.protobuf.Empty
12, // 16: api.ExperimentService.ArchiveExperiment:output_type -> google.protobuf.Empty
12, // 17: api.ExperimentService.UnarchiveExperiment:output_type -> google.protobuf.Empty
var file_backend_api_v1beta1_experiment_proto_depIdxs = []int32{
6, // 0: v1beta1.CreateExperimentRequest.experiment:type_name -> v1beta1.Experiment
9, // 1: v1beta1.ListExperimentsRequest.resource_reference_key:type_name -> v1beta1.ResourceKey
6, // 2: v1beta1.ListExperimentsResponse.experiments:type_name -> v1beta1.Experiment
10, // 3: v1beta1.Experiment.created_at:type_name -> google.protobuf.Timestamp
11, // 4: v1beta1.Experiment.resource_references:type_name -> v1beta1.ResourceReference
0, // 5: v1beta1.Experiment.storage_state:type_name -> v1beta1.Experiment.StorageState
1, // 6: v1beta1.ExperimentService.CreateExperiment:input_type -> v1beta1.CreateExperimentRequest
2, // 7: v1beta1.ExperimentService.GetExperiment:input_type -> v1beta1.GetExperimentRequest
3, // 8: v1beta1.ExperimentService.ListExperiment:input_type -> v1beta1.ListExperimentsRequest
5, // 9: v1beta1.ExperimentService.DeleteExperiment:input_type -> v1beta1.DeleteExperimentRequest
7, // 10: v1beta1.ExperimentService.ArchiveExperiment:input_type -> v1beta1.ArchiveExperimentRequest
8, // 11: v1beta1.ExperimentService.UnarchiveExperiment:input_type -> v1beta1.UnarchiveExperimentRequest
6, // 12: v1beta1.ExperimentService.CreateExperiment:output_type -> v1beta1.Experiment
6, // 13: v1beta1.ExperimentService.GetExperiment:output_type -> v1beta1.Experiment
4, // 14: v1beta1.ExperimentService.ListExperiment:output_type -> v1beta1.ListExperimentsResponse
12, // 15: v1beta1.ExperimentService.DeleteExperiment:output_type -> google.protobuf.Empty
12, // 16: v1beta1.ExperimentService.ArchiveExperiment:output_type -> google.protobuf.Empty
12, // 17: v1beta1.ExperimentService.UnarchiveExperiment:output_type -> google.protobuf.Empty
12, // [12:18] is the sub-list for method output_type
6, // [6:12] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
@ -774,15 +780,15 @@ var file_backend_api_experiment_proto_depIdxs = []int32{
0, // [0:6] is the sub-list for field type_name
}
func init() { file_backend_api_experiment_proto_init() }
func file_backend_api_experiment_proto_init() {
if File_backend_api_experiment_proto != nil {
func init() { file_backend_api_v1beta1_experiment_proto_init() }
func file_backend_api_v1beta1_experiment_proto_init() {
if File_backend_api_v1beta1_experiment_proto != nil {
return
}
file_backend_api_error_proto_init()
file_backend_api_resource_reference_proto_init()
file_backend_api_v1beta1_error_proto_init()
file_backend_api_v1beta1_resource_reference_proto_init()
if !protoimpl.UnsafeEnabled {
file_backend_api_experiment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateExperimentRequest); i {
case 0:
return &v.state
@ -794,7 +800,7 @@ func file_backend_api_experiment_proto_init() {
return nil
}
}
file_backend_api_experiment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetExperimentRequest); i {
case 0:
return &v.state
@ -806,7 +812,7 @@ func file_backend_api_experiment_proto_init() {
return nil
}
}
file_backend_api_experiment_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListExperimentsRequest); i {
case 0:
return &v.state
@ -818,7 +824,7 @@ func file_backend_api_experiment_proto_init() {
return nil
}
}
file_backend_api_experiment_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListExperimentsResponse); i {
case 0:
return &v.state
@ -830,7 +836,7 @@ func file_backend_api_experiment_proto_init() {
return nil
}
}
file_backend_api_experiment_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteExperimentRequest); i {
case 0:
return &v.state
@ -842,7 +848,7 @@ func file_backend_api_experiment_proto_init() {
return nil
}
}
file_backend_api_experiment_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Experiment); i {
case 0:
return &v.state
@ -854,7 +860,7 @@ func file_backend_api_experiment_proto_init() {
return nil
}
}
file_backend_api_experiment_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ArchiveExperimentRequest); i {
case 0:
return &v.state
@ -866,7 +872,7 @@ func file_backend_api_experiment_proto_init() {
return nil
}
}
file_backend_api_experiment_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_experiment_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UnarchiveExperimentRequest); i {
case 0:
return &v.state
@ -883,21 +889,21 @@ func file_backend_api_experiment_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_experiment_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_experiment_proto_rawDesc,
NumEnums: 1,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_experiment_proto_goTypes,
DependencyIndexes: file_backend_api_experiment_proto_depIdxs,
EnumInfos: file_backend_api_experiment_proto_enumTypes,
MessageInfos: file_backend_api_experiment_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_experiment_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_experiment_proto_depIdxs,
EnumInfos: file_backend_api_v1beta1_experiment_proto_enumTypes,
MessageInfos: file_backend_api_v1beta1_experiment_proto_msgTypes,
}.Build()
File_backend_api_experiment_proto = out.File
file_backend_api_experiment_proto_rawDesc = nil
file_backend_api_experiment_proto_goTypes = nil
file_backend_api_experiment_proto_depIdxs = nil
File_backend_api_v1beta1_experiment_proto = out.File
file_backend_api_v1beta1_experiment_proto_rawDesc = nil
file_backend_api_v1beta1_experiment_proto_goTypes = nil
file_backend_api_v1beta1_experiment_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -939,7 +945,7 @@ func NewExperimentServiceClient(cc grpc.ClientConnInterface) ExperimentServiceCl
func (c *experimentServiceClient) CreateExperiment(ctx context.Context, in *CreateExperimentRequest, opts ...grpc.CallOption) (*Experiment, error) {
out := new(Experiment)
err := c.cc.Invoke(ctx, "/api.ExperimentService/CreateExperiment", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ExperimentService/CreateExperiment", in, out, opts...)
if err != nil {
return nil, err
}
@ -948,7 +954,7 @@ func (c *experimentServiceClient) CreateExperiment(ctx context.Context, in *Crea
func (c *experimentServiceClient) GetExperiment(ctx context.Context, in *GetExperimentRequest, opts ...grpc.CallOption) (*Experiment, error) {
out := new(Experiment)
err := c.cc.Invoke(ctx, "/api.ExperimentService/GetExperiment", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ExperimentService/GetExperiment", in, out, opts...)
if err != nil {
return nil, err
}
@ -957,7 +963,7 @@ func (c *experimentServiceClient) GetExperiment(ctx context.Context, in *GetExpe
func (c *experimentServiceClient) ListExperiment(ctx context.Context, in *ListExperimentsRequest, opts ...grpc.CallOption) (*ListExperimentsResponse, error) {
out := new(ListExperimentsResponse)
err := c.cc.Invoke(ctx, "/api.ExperimentService/ListExperiment", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ExperimentService/ListExperiment", in, out, opts...)
if err != nil {
return nil, err
}
@ -966,7 +972,7 @@ func (c *experimentServiceClient) ListExperiment(ctx context.Context, in *ListEx
func (c *experimentServiceClient) DeleteExperiment(ctx context.Context, in *DeleteExperimentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.ExperimentService/DeleteExperiment", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ExperimentService/DeleteExperiment", in, out, opts...)
if err != nil {
return nil, err
}
@ -975,7 +981,7 @@ func (c *experimentServiceClient) DeleteExperiment(ctx context.Context, in *Dele
func (c *experimentServiceClient) ArchiveExperiment(ctx context.Context, in *ArchiveExperimentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.ExperimentService/ArchiveExperiment", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ExperimentService/ArchiveExperiment", in, out, opts...)
if err != nil {
return nil, err
}
@ -984,7 +990,7 @@ func (c *experimentServiceClient) ArchiveExperiment(ctx context.Context, in *Arc
func (c *experimentServiceClient) UnarchiveExperiment(ctx context.Context, in *UnarchiveExperimentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.ExperimentService/UnarchiveExperiment", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ExperimentService/UnarchiveExperiment", in, out, opts...)
if err != nil {
return nil, err
}
@ -1047,7 +1053,7 @@ func _ExperimentService_CreateExperiment_Handler(srv interface{}, ctx context.Co
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ExperimentService/CreateExperiment",
FullMethod: "/v1beta1.ExperimentService/CreateExperiment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ExperimentServiceServer).CreateExperiment(ctx, req.(*CreateExperimentRequest))
@ -1065,7 +1071,7 @@ func _ExperimentService_GetExperiment_Handler(srv interface{}, ctx context.Conte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ExperimentService/GetExperiment",
FullMethod: "/v1beta1.ExperimentService/GetExperiment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ExperimentServiceServer).GetExperiment(ctx, req.(*GetExperimentRequest))
@ -1083,7 +1089,7 @@ func _ExperimentService_ListExperiment_Handler(srv interface{}, ctx context.Cont
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ExperimentService/ListExperiment",
FullMethod: "/v1beta1.ExperimentService/ListExperiment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ExperimentServiceServer).ListExperiment(ctx, req.(*ListExperimentsRequest))
@ -1101,7 +1107,7 @@ func _ExperimentService_DeleteExperiment_Handler(srv interface{}, ctx context.Co
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ExperimentService/DeleteExperiment",
FullMethod: "/v1beta1.ExperimentService/DeleteExperiment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ExperimentServiceServer).DeleteExperiment(ctx, req.(*DeleteExperimentRequest))
@ -1119,7 +1125,7 @@ func _ExperimentService_ArchiveExperiment_Handler(srv interface{}, ctx context.C
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ExperimentService/ArchiveExperiment",
FullMethod: "/v1beta1.ExperimentService/ArchiveExperiment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ExperimentServiceServer).ArchiveExperiment(ctx, req.(*ArchiveExperimentRequest))
@ -1137,7 +1143,7 @@ func _ExperimentService_UnarchiveExperiment_Handler(srv interface{}, ctx context
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ExperimentService/UnarchiveExperiment",
FullMethod: "/v1beta1.ExperimentService/UnarchiveExperiment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ExperimentServiceServer).UnarchiveExperiment(ctx, req.(*UnarchiveExperimentRequest))
@ -1146,7 +1152,7 @@ func _ExperimentService_UnarchiveExperiment_Handler(srv interface{}, ctx context
}
var _ExperimentService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.ExperimentService",
ServiceName: "v1beta1.ExperimentService",
HandlerType: (*ExperimentServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -1175,5 +1181,5 @@ var _ExperimentService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/experiment.proto",
Metadata: "backend/api/v1beta1/experiment.proto",
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/experiment.proto
// source: backend/api/v1beta1/experiment.proto
/*
Package go_client is a reverse proxy.
@ -80,7 +80,10 @@ func request_ExperimentService_ListExperiment_0(ctx context.Context, marshaler r
var protoReq ListExperimentsRequest
var metadata runtime.ServerMetadata
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ExperimentService_ListExperiment_0); err != nil {
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ExperimentService_ListExperiment_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@ -332,17 +335,17 @@ func RegisterExperimentServiceHandlerClient(ctx context.Context, mux *runtime.Se
}
var (
pattern_ExperimentService_CreateExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "experiments"}, ""))
pattern_ExperimentService_CreateExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "experiments"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_ExperimentService_GetExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, ""))
pattern_ExperimentService_GetExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_ExperimentService_ListExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "experiments"}, ""))
pattern_ExperimentService_ListExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "experiments"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_ExperimentService_DeleteExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, ""))
pattern_ExperimentService_DeleteExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_ExperimentService_ArchiveExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, "archive"))
pattern_ExperimentService_ArchiveExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, "archive", runtime.AssumeColonVerbOpt(true)))
pattern_ExperimentService_UnarchiveExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, "unarchive"))
pattern_ExperimentService_UnarchiveExperiment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "experiments", "id"}, "unarchive", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/filter.proto
// source: backend/api/v1beta1/filter.proto
package go_client
@ -98,11 +98,11 @@ func (x Predicate_Op) String() string {
}
func (Predicate_Op) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_filter_proto_enumTypes[0].Descriptor()
return file_backend_api_v1beta1_filter_proto_enumTypes[0].Descriptor()
}
func (Predicate_Op) Type() protoreflect.EnumType {
return &file_backend_api_filter_proto_enumTypes[0]
return &file_backend_api_v1beta1_filter_proto_enumTypes[0]
}
func (x Predicate_Op) Number() protoreflect.EnumNumber {
@ -111,7 +111,7 @@ func (x Predicate_Op) Number() protoreflect.EnumNumber {
// Deprecated: Use Predicate_Op.Descriptor instead.
func (Predicate_Op) EnumDescriptor() ([]byte, []int) {
return file_backend_api_filter_proto_rawDescGZIP(), []int{0, 0}
return file_backend_api_v1beta1_filter_proto_rawDescGZIP(), []int{0, 0}
}
// Predicate captures individual conditions that must be true for a resource
@ -121,7 +121,7 @@ type Predicate struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Op Predicate_Op `protobuf:"varint,1,opt,name=op,proto3,enum=api.Predicate_Op" json:"op,omitempty"`
Op Predicate_Op `protobuf:"varint,1,opt,name=op,proto3,enum=v1beta1.Predicate_Op" json:"op,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Types that are assignable to Value:
// *Predicate_IntValue
@ -137,7 +137,7 @@ type Predicate struct {
func (x *Predicate) Reset() {
*x = Predicate{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_filter_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -150,7 +150,7 @@ func (x *Predicate) String() string {
func (*Predicate) ProtoMessage() {}
func (x *Predicate) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_filter_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -163,7 +163,7 @@ func (x *Predicate) ProtoReflect() protoreflect.Message {
// Deprecated: Use Predicate.ProtoReflect.Descriptor instead.
func (*Predicate) Descriptor() ([]byte, []int) {
return file_backend_api_filter_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_filter_proto_rawDescGZIP(), []int{0}
}
func (x *Predicate) GetOp() Predicate_Op {
@ -296,7 +296,7 @@ type IntValues struct {
func (x *IntValues) Reset() {
*x = IntValues{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_filter_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -309,7 +309,7 @@ func (x *IntValues) String() string {
func (*IntValues) ProtoMessage() {}
func (x *IntValues) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_filter_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -322,7 +322,7 @@ func (x *IntValues) ProtoReflect() protoreflect.Message {
// Deprecated: Use IntValues.ProtoReflect.Descriptor instead.
func (*IntValues) Descriptor() ([]byte, []int) {
return file_backend_api_filter_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_filter_proto_rawDescGZIP(), []int{1}
}
func (x *IntValues) GetValues() []int32 {
@ -343,7 +343,7 @@ type StringValues struct {
func (x *StringValues) Reset() {
*x = StringValues{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_filter_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -356,7 +356,7 @@ func (x *StringValues) String() string {
func (*StringValues) ProtoMessage() {}
func (x *StringValues) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_filter_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -369,7 +369,7 @@ func (x *StringValues) ProtoReflect() protoreflect.Message {
// Deprecated: Use StringValues.ProtoReflect.Descriptor instead.
func (*StringValues) Descriptor() ([]byte, []int) {
return file_backend_api_filter_proto_rawDescGZIP(), []int{2}
return file_backend_api_v1beta1_filter_proto_rawDescGZIP(), []int{2}
}
func (x *StringValues) GetValues() []string {
@ -390,7 +390,7 @@ type LongValues struct {
func (x *LongValues) Reset() {
*x = LongValues{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_filter_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -403,7 +403,7 @@ func (x *LongValues) String() string {
func (*LongValues) ProtoMessage() {}
func (x *LongValues) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_filter_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -416,7 +416,7 @@ func (x *LongValues) ProtoReflect() protoreflect.Message {
// Deprecated: Use LongValues.ProtoReflect.Descriptor instead.
func (*LongValues) Descriptor() ([]byte, []int) {
return file_backend_api_filter_proto_rawDescGZIP(), []int{3}
return file_backend_api_v1beta1_filter_proto_rawDescGZIP(), []int{3}
}
func (x *LongValues) GetValues() []int64 {
@ -478,7 +478,7 @@ type Filter struct {
func (x *Filter) Reset() {
*x = Filter{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_filter_proto_msgTypes[4]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -491,7 +491,7 @@ func (x *Filter) String() string {
func (*Filter) ProtoMessage() {}
func (x *Filter) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_filter_proto_msgTypes[4]
mi := &file_backend_api_v1beta1_filter_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -504,7 +504,7 @@ func (x *Filter) ProtoReflect() protoreflect.Message {
// Deprecated: Use Filter.ProtoReflect.Descriptor instead.
func (*Filter) Descriptor() ([]byte, []int) {
return file_backend_api_filter_proto_rawDescGZIP(), []int{4}
return file_backend_api_v1beta1_filter_proto_rawDescGZIP(), []int{4}
}
func (x *Filter) GetPredicates() []*Predicate {
@ -514,17 +514,18 @@ func (x *Filter) GetPredicates() []*Predicate {
return nil
}
var File_backend_api_filter_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_filter_proto protoreflect.FileDescriptor
var file_backend_api_filter_proto_rawDesc = []byte{
0x0a, 0x18, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a,
0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae,
0x04, 0x0a, 0x09, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x02,
0x6f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50,
var file_backend_api_v1beta1_filter_proto_rawDesc = []byte{
0x0a, 0x20, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x04, 0x0a, 0x09, 0x50,
0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50,
0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4f, 0x70, 0x52, 0x02, 0x6f, 0x70, 0x12,
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
0x79, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03,
@ -537,80 +538,82 @@ var file_backend_api_filter_proto_rawDesc = []byte{
0x61, 0x6d, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0e, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2f, 0x0a,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x33, 0x0a,
0x0a, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x32,
0x0a, 0x0b, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x08, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x6f, 0x6e, 0x67, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x6c, 0x6f, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0c,
0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x97, 0x01, 0x0a,
0x02, 0x4f, 0x70, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00,
0x12, 0x0a, 0x0a, 0x06, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a,
0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c,
0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x17,
0x0a, 0x13, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x45,
0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x45, 0x53, 0x53, 0x5f,
0x54, 0x48, 0x41, 0x4e, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54,
0x48, 0x41, 0x4e, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x07, 0x12, 0x06, 0x0a, 0x02,
0x49, 0x4e, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x53, 0x5f, 0x53, 0x55, 0x42, 0x53, 0x54,
0x52, 0x49, 0x4e, 0x47, 0x10, 0x09, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
0x23, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x22, 0x26, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02,
0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x24, 0x0a, 0x0a,
0x4c, 0x6f, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x22, 0x38, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x0a,
0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65,
0x52, 0x0a, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x32, 0x3d, 0x0a, 0x12,
0x0b, 0x32, 0x12, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x12, 0x36, 0x0a, 0x0b, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x4c, 0x6f, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0a,
0x6c, 0x6f, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74,
0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x15, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69,
0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69,
0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x97, 0x01, 0x0a, 0x02, 0x4f, 0x70, 0x12,
0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x54, 0x5f,
0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x52, 0x45, 0x41,
0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x47, 0x52,
0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c,
0x53, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e,
0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f,
0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x07, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x08,
0x12, 0x10, 0x0a, 0x0c, 0x49, 0x53, 0x5f, 0x53, 0x55, 0x42, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47,
0x10, 0x09, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x09, 0x49,
0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x22, 0x26, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x24, 0x0a, 0x0a, 0x4c, 0x6f, 0x6e, 0x67,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x3c,
0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x64,
0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65,
0x52, 0x0a, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x32, 0x45, 0x0a, 0x12,
0x44, 0x75, 0x6d, 0x6d, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x0b, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x00, 0x42, 0x35, 0x5a, 0x33, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c,
0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63,
0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65,
0x63, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
0x0f, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
0x1a, 0x0f, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65,
0x72, 0x22, 0x00, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c,
0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65,
0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_filter_proto_rawDescOnce sync.Once
file_backend_api_filter_proto_rawDescData = file_backend_api_filter_proto_rawDesc
file_backend_api_v1beta1_filter_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_filter_proto_rawDescData = file_backend_api_v1beta1_filter_proto_rawDesc
)
func file_backend_api_filter_proto_rawDescGZIP() []byte {
file_backend_api_filter_proto_rawDescOnce.Do(func() {
file_backend_api_filter_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_filter_proto_rawDescData)
func file_backend_api_v1beta1_filter_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_filter_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_filter_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_filter_proto_rawDescData)
})
return file_backend_api_filter_proto_rawDescData
return file_backend_api_v1beta1_filter_proto_rawDescData
}
var file_backend_api_filter_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_filter_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_backend_api_filter_proto_goTypes = []interface{}{
(Predicate_Op)(0), // 0: api.Predicate.Op
(*Predicate)(nil), // 1: api.Predicate
(*IntValues)(nil), // 2: api.IntValues
(*StringValues)(nil), // 3: api.StringValues
(*LongValues)(nil), // 4: api.LongValues
(*Filter)(nil), // 5: api.Filter
var file_backend_api_v1beta1_filter_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_v1beta1_filter_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_backend_api_v1beta1_filter_proto_goTypes = []interface{}{
(Predicate_Op)(0), // 0: v1beta1.Predicate.Op
(*Predicate)(nil), // 1: v1beta1.Predicate
(*IntValues)(nil), // 2: v1beta1.IntValues
(*StringValues)(nil), // 3: v1beta1.StringValues
(*LongValues)(nil), // 4: v1beta1.LongValues
(*Filter)(nil), // 5: v1beta1.Filter
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
var file_backend_api_filter_proto_depIdxs = []int32{
0, // 0: api.Predicate.op:type_name -> api.Predicate.Op
6, // 1: api.Predicate.timestamp_value:type_name -> google.protobuf.Timestamp
2, // 2: api.Predicate.int_values:type_name -> api.IntValues
4, // 3: api.Predicate.long_values:type_name -> api.LongValues
3, // 4: api.Predicate.string_values:type_name -> api.StringValues
1, // 5: api.Filter.predicates:type_name -> api.Predicate
5, // 6: api.DummyFilterService.GetFilter:input_type -> api.Filter
5, // 7: api.DummyFilterService.GetFilter:output_type -> api.Filter
var file_backend_api_v1beta1_filter_proto_depIdxs = []int32{
0, // 0: v1beta1.Predicate.op:type_name -> v1beta1.Predicate.Op
6, // 1: v1beta1.Predicate.timestamp_value:type_name -> google.protobuf.Timestamp
2, // 2: v1beta1.Predicate.int_values:type_name -> v1beta1.IntValues
4, // 3: v1beta1.Predicate.long_values:type_name -> v1beta1.LongValues
3, // 4: v1beta1.Predicate.string_values:type_name -> v1beta1.StringValues
1, // 5: v1beta1.Filter.predicates:type_name -> v1beta1.Predicate
5, // 6: v1beta1.DummyFilterService.GetFilter:input_type -> v1beta1.Filter
5, // 7: v1beta1.DummyFilterService.GetFilter:output_type -> v1beta1.Filter
7, // [7:8] is the sub-list for method output_type
6, // [6:7] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
@ -618,13 +621,13 @@ var file_backend_api_filter_proto_depIdxs = []int32{
0, // [0:6] is the sub-list for field type_name
}
func init() { file_backend_api_filter_proto_init() }
func file_backend_api_filter_proto_init() {
if File_backend_api_filter_proto != nil {
func init() { file_backend_api_v1beta1_filter_proto_init() }
func file_backend_api_v1beta1_filter_proto_init() {
if File_backend_api_v1beta1_filter_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_backend_api_filter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_filter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Predicate); i {
case 0:
return &v.state
@ -636,7 +639,7 @@ func file_backend_api_filter_proto_init() {
return nil
}
}
file_backend_api_filter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_filter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IntValues); i {
case 0:
return &v.state
@ -648,7 +651,7 @@ func file_backend_api_filter_proto_init() {
return nil
}
}
file_backend_api_filter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_filter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StringValues); i {
case 0:
return &v.state
@ -660,7 +663,7 @@ func file_backend_api_filter_proto_init() {
return nil
}
}
file_backend_api_filter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_filter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LongValues); i {
case 0:
return &v.state
@ -672,7 +675,7 @@ func file_backend_api_filter_proto_init() {
return nil
}
}
file_backend_api_filter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_filter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Filter); i {
case 0:
return &v.state
@ -685,7 +688,7 @@ func file_backend_api_filter_proto_init() {
}
}
}
file_backend_api_filter_proto_msgTypes[0].OneofWrappers = []interface{}{
file_backend_api_v1beta1_filter_proto_msgTypes[0].OneofWrappers = []interface{}{
(*Predicate_IntValue)(nil),
(*Predicate_LongValue)(nil),
(*Predicate_StringValue)(nil),
@ -698,21 +701,21 @@ func file_backend_api_filter_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_filter_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_filter_proto_rawDesc,
NumEnums: 1,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_filter_proto_goTypes,
DependencyIndexes: file_backend_api_filter_proto_depIdxs,
EnumInfos: file_backend_api_filter_proto_enumTypes,
MessageInfos: file_backend_api_filter_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_filter_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_filter_proto_depIdxs,
EnumInfos: file_backend_api_v1beta1_filter_proto_enumTypes,
MessageInfos: file_backend_api_v1beta1_filter_proto_msgTypes,
}.Build()
File_backend_api_filter_proto = out.File
file_backend_api_filter_proto_rawDesc = nil
file_backend_api_filter_proto_goTypes = nil
file_backend_api_filter_proto_depIdxs = nil
File_backend_api_v1beta1_filter_proto = out.File
file_backend_api_v1beta1_filter_proto_rawDesc = nil
file_backend_api_v1beta1_filter_proto_goTypes = nil
file_backend_api_v1beta1_filter_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -740,7 +743,7 @@ func NewDummyFilterServiceClient(cc grpc.ClientConnInterface) DummyFilterService
func (c *dummyFilterServiceClient) GetFilter(ctx context.Context, in *Filter, opts ...grpc.CallOption) (*Filter, error) {
out := new(Filter)
err := c.cc.Invoke(ctx, "/api.DummyFilterService/GetFilter", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.DummyFilterService/GetFilter", in, out, opts...)
if err != nil {
return nil, err
}
@ -774,7 +777,7 @@ func _DummyFilterService_GetFilter_Handler(srv interface{}, ctx context.Context,
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.DummyFilterService/GetFilter",
FullMethod: "/v1beta1.DummyFilterService/GetFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DummyFilterServiceServer).GetFilter(ctx, req.(*Filter))
@ -783,7 +786,7 @@ func _DummyFilterService_GetFilter_Handler(srv interface{}, ctx context.Context,
}
var _DummyFilterService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.DummyFilterService",
ServiceName: "v1beta1.DummyFilterService",
HandlerType: (*DummyFilterServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -792,5 +795,5 @@ var _DummyFilterService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/filter.proto",
Metadata: "backend/api/v1beta1/filter.proto",
}

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/healthz.proto
// source: backend/api/v1beta1/healthz.proto
package go_client
@ -53,7 +53,7 @@ type GetHealthzResponse struct {
func (x *GetHealthzResponse) Reset() {
*x = GetHealthzResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_healthz_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_healthz_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -66,7 +66,7 @@ func (x *GetHealthzResponse) String() string {
func (*GetHealthzResponse) ProtoMessage() {}
func (x *GetHealthzResponse) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_healthz_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_healthz_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -79,7 +79,7 @@ func (x *GetHealthzResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetHealthzResponse.ProtoReflect.Descriptor instead.
func (*GetHealthzResponse) Descriptor() ([]byte, []int) {
return file_backend_api_healthz_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_healthz_proto_rawDescGZIP(), []int{0}
}
func (x *GetHealthzResponse) GetMultiUser() bool {
@ -89,61 +89,63 @@ func (x *GetHealthzResponse) GetMultiUser() bool {
return false
}
var File_backend_api_healthz_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_healthz_proto protoreflect.FileDescriptor
var file_backend_api_healthz_proto_rawDesc = []byte{
0x0a, 0x19, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x65,
0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69,
0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f,
0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x62, 0x61, 0x63, 0x6b, 0x65,
0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x33, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x75, 0x6c, 0x74,
0x69, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6d, 0x75,
0x6c, 0x74, 0x69, 0x55, 0x73, 0x65, 0x72, 0x32, 0x6e, 0x0a, 0x0e, 0x48, 0x65, 0x61, 0x6c, 0x74,
0x68, 0x7a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x47, 0x65, 0x74,
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a,
0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17,
0x12, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x42, 0x85, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f,
0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x92,
0x41, 0x4d, 0x52, 0x1c, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x11, 0x12,
0x0f, 0x0a, 0x0d, 0x1a, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x5a, 0x1f, 0x0a, 0x1d, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x13, 0x08, 0x02,
0x1a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20,
0x02, 0x62, 0x0c, 0x0a, 0x0a, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x00, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
var file_backend_api_v1beta1_healthz_proto_rawDesc = []byte{
0x0a, 0x21, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74,
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d,
0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61,
0x6c, 0x74, 0x68, 0x7a, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
0x52, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x55, 0x73, 0x65, 0x72, 0x32, 0x72, 0x0a, 0x0e, 0x48,
0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x60, 0x0a,
0x0a, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x16, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65,
0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x42,
0x91, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b,
0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65,
0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x92,
0x41, 0x51, 0x52, 0x20, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x12,
0x13, 0x0a, 0x11, 0x1a, 0x0f, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x5a, 0x1f, 0x0a, 0x1d, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72,
0x12, 0x13, 0x08, 0x02, 0x1a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x20, 0x02, 0x62, 0x0c, 0x0a, 0x0a, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65,
0x72, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_healthz_proto_rawDescOnce sync.Once
file_backend_api_healthz_proto_rawDescData = file_backend_api_healthz_proto_rawDesc
file_backend_api_v1beta1_healthz_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_healthz_proto_rawDescData = file_backend_api_v1beta1_healthz_proto_rawDesc
)
func file_backend_api_healthz_proto_rawDescGZIP() []byte {
file_backend_api_healthz_proto_rawDescOnce.Do(func() {
file_backend_api_healthz_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_healthz_proto_rawDescData)
func file_backend_api_v1beta1_healthz_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_healthz_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_healthz_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_healthz_proto_rawDescData)
})
return file_backend_api_healthz_proto_rawDescData
return file_backend_api_v1beta1_healthz_proto_rawDescData
}
var file_backend_api_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_backend_api_healthz_proto_goTypes = []interface{}{
(*GetHealthzResponse)(nil), // 0: api.GetHealthzResponse
var file_backend_api_v1beta1_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_backend_api_v1beta1_healthz_proto_goTypes = []interface{}{
(*GetHealthzResponse)(nil), // 0: v1beta1.GetHealthzResponse
(*emptypb.Empty)(nil), // 1: google.protobuf.Empty
}
var file_backend_api_healthz_proto_depIdxs = []int32{
1, // 0: api.HealthzService.GetHealthz:input_type -> google.protobuf.Empty
0, // 1: api.HealthzService.GetHealthz:output_type -> api.GetHealthzResponse
var file_backend_api_v1beta1_healthz_proto_depIdxs = []int32{
1, // 0: v1beta1.HealthzService.GetHealthz:input_type -> google.protobuf.Empty
0, // 1: v1beta1.HealthzService.GetHealthz:output_type -> v1beta1.GetHealthzResponse
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
@ -151,14 +153,14 @@ var file_backend_api_healthz_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name
}
func init() { file_backend_api_healthz_proto_init() }
func file_backend_api_healthz_proto_init() {
if File_backend_api_healthz_proto != nil {
func init() { file_backend_api_v1beta1_healthz_proto_init() }
func file_backend_api_v1beta1_healthz_proto_init() {
if File_backend_api_v1beta1_healthz_proto != nil {
return
}
file_backend_api_error_proto_init()
file_backend_api_v1beta1_error_proto_init()
if !protoimpl.UnsafeEnabled {
file_backend_api_healthz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_healthz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetHealthzResponse); i {
case 0:
return &v.state
@ -175,20 +177,20 @@ func file_backend_api_healthz_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_healthz_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_healthz_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_healthz_proto_goTypes,
DependencyIndexes: file_backend_api_healthz_proto_depIdxs,
MessageInfos: file_backend_api_healthz_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_healthz_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_healthz_proto_depIdxs,
MessageInfos: file_backend_api_v1beta1_healthz_proto_msgTypes,
}.Build()
File_backend_api_healthz_proto = out.File
file_backend_api_healthz_proto_rawDesc = nil
file_backend_api_healthz_proto_goTypes = nil
file_backend_api_healthz_proto_depIdxs = nil
File_backend_api_v1beta1_healthz_proto = out.File
file_backend_api_v1beta1_healthz_proto_rawDesc = nil
file_backend_api_v1beta1_healthz_proto_goTypes = nil
file_backend_api_v1beta1_healthz_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -217,7 +219,7 @@ func NewHealthzServiceClient(cc grpc.ClientConnInterface) HealthzServiceClient {
func (c *healthzServiceClient) GetHealthz(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetHealthzResponse, error) {
out := new(GetHealthzResponse)
err := c.cc.Invoke(ctx, "/api.HealthzService/GetHealthz", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.HealthzService/GetHealthz", in, out, opts...)
if err != nil {
return nil, err
}
@ -252,7 +254,7 @@ func _HealthzService_GetHealthz_Handler(srv interface{}, ctx context.Context, de
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.HealthzService/GetHealthz",
FullMethod: "/v1beta1.HealthzService/GetHealthz",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HealthzServiceServer).GetHealthz(ctx, req.(*emptypb.Empty))
@ -261,7 +263,7 @@ func _HealthzService_GetHealthz_Handler(srv interface{}, ctx context.Context, de
}
var _HealthzService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.HealthzService",
ServiceName: "v1beta1.HealthzService",
HandlerType: (*HealthzServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -270,5 +272,5 @@ var _HealthzService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/healthz.proto",
Metadata: "backend/api/v1beta1/healthz.proto",
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/healthz.proto
// source: backend/api/v1beta1/healthz.proto
/*
Package go_client is a reverse proxy.
@ -100,7 +100,7 @@ func RegisterHealthzServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
var (
pattern_HealthzService_GetHealthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "healthz"}, ""))
pattern_HealthzService_GetHealthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "healthz"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/job.proto
// source: backend/api/v1beta1/job.proto
package go_client
@ -77,11 +77,11 @@ func (x Job_Mode) String() string {
}
func (Job_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_job_proto_enumTypes[0].Descriptor()
return file_backend_api_v1beta1_job_proto_enumTypes[0].Descriptor()
}
func (Job_Mode) Type() protoreflect.EnumType {
return &file_backend_api_job_proto_enumTypes[0]
return &file_backend_api_v1beta1_job_proto_enumTypes[0]
}
func (x Job_Mode) Number() protoreflect.EnumNumber {
@ -90,7 +90,7 @@ func (x Job_Mode) Number() protoreflect.EnumNumber {
// Deprecated: Use Job_Mode.Descriptor instead.
func (Job_Mode) EnumDescriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{10, 0}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{10, 0}
}
type CreateJobRequest struct {
@ -105,7 +105,7 @@ type CreateJobRequest struct {
func (x *CreateJobRequest) Reset() {
*x = CreateJobRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -118,7 +118,7 @@ func (x *CreateJobRequest) String() string {
func (*CreateJobRequest) ProtoMessage() {}
func (x *CreateJobRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -131,7 +131,7 @@ func (x *CreateJobRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.
func (*CreateJobRequest) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{0}
}
func (x *CreateJobRequest) GetJob() *Job {
@ -153,7 +153,7 @@ type GetJobRequest struct {
func (x *GetJobRequest) Reset() {
*x = GetJobRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -166,7 +166,7 @@ func (x *GetJobRequest) String() string {
func (*GetJobRequest) ProtoMessage() {}
func (x *GetJobRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -179,7 +179,7 @@ func (x *GetJobRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.
func (*GetJobRequest) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{1}
}
func (x *GetJobRequest) GetId() string {
@ -217,7 +217,7 @@ type ListJobsRequest struct {
func (x *ListJobsRequest) Reset() {
*x = ListJobsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -230,7 +230,7 @@ func (x *ListJobsRequest) String() string {
func (*ListJobsRequest) ProtoMessage() {}
func (x *ListJobsRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -243,7 +243,7 @@ func (x *ListJobsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.
func (*ListJobsRequest) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{2}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{2}
}
func (x *ListJobsRequest) GetPageToken() string {
@ -297,7 +297,7 @@ type ListJobsResponse struct {
func (x *ListJobsResponse) Reset() {
*x = ListJobsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -310,7 +310,7 @@ func (x *ListJobsResponse) String() string {
func (*ListJobsResponse) ProtoMessage() {}
func (x *ListJobsResponse) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -323,7 +323,7 @@ func (x *ListJobsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.
func (*ListJobsResponse) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{3}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{3}
}
func (x *ListJobsResponse) GetJobs() []*Job {
@ -359,7 +359,7 @@ type DeleteJobRequest struct {
func (x *DeleteJobRequest) Reset() {
*x = DeleteJobRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[4]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -372,7 +372,7 @@ func (x *DeleteJobRequest) String() string {
func (*DeleteJobRequest) ProtoMessage() {}
func (x *DeleteJobRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[4]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -385,7 +385,7 @@ func (x *DeleteJobRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.
func (*DeleteJobRequest) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{4}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{4}
}
func (x *DeleteJobRequest) GetId() string {
@ -407,7 +407,7 @@ type EnableJobRequest struct {
func (x *EnableJobRequest) Reset() {
*x = EnableJobRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[5]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -420,7 +420,7 @@ func (x *EnableJobRequest) String() string {
func (*EnableJobRequest) ProtoMessage() {}
func (x *EnableJobRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[5]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -433,7 +433,7 @@ func (x *EnableJobRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use EnableJobRequest.ProtoReflect.Descriptor instead.
func (*EnableJobRequest) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{5}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{5}
}
func (x *EnableJobRequest) GetId() string {
@ -455,7 +455,7 @@ type DisableJobRequest struct {
func (x *DisableJobRequest) Reset() {
*x = DisableJobRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[6]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -468,7 +468,7 @@ func (x *DisableJobRequest) String() string {
func (*DisableJobRequest) ProtoMessage() {}
func (x *DisableJobRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[6]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -481,7 +481,7 @@ func (x *DisableJobRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DisableJobRequest.ProtoReflect.Descriptor instead.
func (*DisableJobRequest) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{6}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{6}
}
func (x *DisableJobRequest) GetId() string {
@ -509,7 +509,7 @@ type CronSchedule struct {
func (x *CronSchedule) Reset() {
*x = CronSchedule{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[7]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -522,7 +522,7 @@ func (x *CronSchedule) String() string {
func (*CronSchedule) ProtoMessage() {}
func (x *CronSchedule) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[7]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -535,7 +535,7 @@ func (x *CronSchedule) ProtoReflect() protoreflect.Message {
// Deprecated: Use CronSchedule.ProtoReflect.Descriptor instead.
func (*CronSchedule) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{7}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{7}
}
func (x *CronSchedule) GetStartTime() *timestamppb.Timestamp {
@ -576,7 +576,7 @@ type PeriodicSchedule struct {
func (x *PeriodicSchedule) Reset() {
*x = PeriodicSchedule{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[8]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -589,7 +589,7 @@ func (x *PeriodicSchedule) String() string {
func (*PeriodicSchedule) ProtoMessage() {}
func (x *PeriodicSchedule) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[8]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -602,7 +602,7 @@ func (x *PeriodicSchedule) ProtoReflect() protoreflect.Message {
// Deprecated: Use PeriodicSchedule.ProtoReflect.Descriptor instead.
func (*PeriodicSchedule) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{8}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{8}
}
func (x *PeriodicSchedule) GetStartTime() *timestamppb.Timestamp {
@ -641,7 +641,7 @@ type Trigger struct {
func (x *Trigger) Reset() {
*x = Trigger{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[9]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -654,7 +654,7 @@ func (x *Trigger) String() string {
func (*Trigger) ProtoMessage() {}
func (x *Trigger) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[9]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -667,7 +667,7 @@ func (x *Trigger) ProtoReflect() protoreflect.Message {
// Deprecated: Use Trigger.ProtoReflect.Descriptor instead.
func (*Trigger) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{9}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{9}
}
func (m *Trigger) GetTrigger() isTrigger_Trigger {
@ -732,7 +732,7 @@ type Job struct {
// Required input field.
// Specify how a run is triggered. Support cron mode or periodic mode.
Trigger *Trigger `protobuf:"bytes,7,opt,name=trigger,proto3" json:"trigger,omitempty"`
Mode Job_Mode `protobuf:"varint,8,opt,name=mode,proto3,enum=api.Job_Mode" json:"mode,omitempty"`
Mode Job_Mode `protobuf:"varint,8,opt,name=mode,proto3,enum=v1beta1.Job_Mode" json:"mode,omitempty"`
// Output. The time this job is created.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Output. The last time this job is updated.
@ -755,7 +755,7 @@ type Job struct {
func (x *Job) Reset() {
*x = Job{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_job_proto_msgTypes[10]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -768,7 +768,7 @@ func (x *Job) String() string {
func (*Job) ProtoMessage() {}
func (x *Job) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_job_proto_msgTypes[10]
mi := &file_backend_api_v1beta1_job_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -781,7 +781,7 @@ func (x *Job) ProtoReflect() protoreflect.Message {
// Deprecated: Use Job.ProtoReflect.Descriptor instead.
func (*Job) Descriptor() ([]byte, []int) {
return file_backend_api_job_proto_rawDescGZIP(), []int{10}
return file_backend_api_v1beta1_job_proto_rawDescGZIP(), []int{10}
}
func (x *Job) GetId() string {
@ -889,46 +889,49 @@ func (x *Job) GetNoCatchup() bool {
return false
}
var File_backend_api_job_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_job_proto protoreflect.FileDescriptor
var file_backend_api_job_proto_rawDesc = []byte{
0x0a, 0x15, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x6f,
0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70,
0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73,
0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x62, 0x61, 0x63, 0x6b, 0x65,
0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67,
0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x62,
0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x03, 0x6a, 0x6f,
0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f,
0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x1f, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xc6, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74,
0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,
0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f,
0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79,
0x12, 0x46, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66,
0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b,
0x65, 0x79, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65,
0x72, 0x65, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74,
0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
0x22, 0x77, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x08, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x04, 0x6a, 0x6f,
var file_backend_api_v1beta1_job_proto_rawDesc = []byte{
0x0a, 0x1d, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69,
0x6e, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x62,
0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65,
0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f,
0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65,
0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x10, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e,
0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x1f,
0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22,
0xca, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x4a, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6b,
0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x14,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
0x65, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x7b, 0x0a, 0x10,
0x4c, 0x69, 0x73, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x20, 0x0a, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x04, 0x6a, 0x6f,
0x62, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a,
0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
@ -960,27 +963,28 @@ var file_backend_api_job_proto_rawDesc = []byte{
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64,
0x54, 0x69, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x94, 0x01,
0x0a, 0x07, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0d, 0x63, 0x72, 0x6f,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x9c, 0x01,
0x0a, 0x07, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x72, 0x6f,
0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64,
0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64,
0x75, 0x6c, 0x65, 0x12, 0x44, 0x0a, 0x11, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69, 0x63, 0x5f,
0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69, 0x63, 0x53, 0x63, 0x68,
0x65, 0x64, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x10, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69,
0x63, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x74, 0x72, 0x69,
0x67, 0x67, 0x65, 0x72, 0x22, 0xfb, 0x04, 0x0a, 0x03, 0x4a, 0x6f, 0x62, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x0d, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73,
0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x50, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0c, 0x70, 0x69,
0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x47, 0x0a, 0x13, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65,
0x32, 0x15, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x53,
0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53,
0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x65, 0x72, 0x69, 0x6f,
0x64, 0x69, 0x63, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x65, 0x72,
0x69, 0x6f, 0x64, 0x69, 0x63, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52,
0x10, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69, 0x63, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
0x65, 0x42, 0x09, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x22, 0x8b, 0x05, 0x0a,
0x03, 0x4a, 0x6f, 0x62, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x0d, 0x70, 0x69,
0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x15, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x69, 0x70, 0x65,
0x6c, 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0c, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69,
0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4b, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52,
0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
0x63, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61,
@ -988,135 +992,138 @@ var file_backend_api_job_proto_rawDesc = []byte{
0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f,
0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18,
0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72,
0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x26, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72,
0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x72, 0x69,
0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x21, 0x0a,
0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65,
0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14,
0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18,
0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1d,
0x0a, 0x0a, 0x6e, 0x6f, 0x5f, 0x63, 0x61, 0x74, 0x63, 0x68, 0x75, 0x70, 0x18, 0x11, 0x20, 0x01,
0x28, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x43, 0x61, 0x74, 0x63, 0x68, 0x75, 0x70, 0x22, 0x33, 0x0a,
0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c,
0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44,
0x10, 0x02, 0x32, 0xa1, 0x04, 0x0a, 0x0a, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x4d, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x15,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x08, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x22,
0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x2a, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72,
0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65,
0x72, 0x12, 0x25, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x11, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4d, 0x6f,
0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16,
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07,
0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x6f, 0x5f, 0x63, 0x61, 0x74,
0x63, 0x68, 0x75, 0x70, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x43, 0x61,
0x74, 0x63, 0x68, 0x75, 0x70, 0x22, 0x33, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a,
0x0c, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x10, 0x00, 0x12,
0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x32, 0xc5, 0x04, 0x0a, 0x0a, 0x4a,
0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x09, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x19, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x0c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x22,
0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x3a, 0x03, 0x6a, 0x6f, 0x62,
0x12, 0x47, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x08,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19,
0x12, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x6a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x53, 0x0a, 0x08, 0x4c, 0x69, 0x73,
0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x61, 0x70, 0x69,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x12, 0x62,
0x0a, 0x09, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x15, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x20, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x65, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4a, 0x6f, 0x62,
0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4a, 0x6f,
0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f,
0x12, 0x4f, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x16, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4a, 0x6f, 0x62,
0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x69, 0x64,
0x7d, 0x2f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x5b, 0x0a, 0x09, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x2a, 0x17, 0x2f,
0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62,
0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0x85, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70,
0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x92, 0x41,
0x4d, 0x52, 0x1c, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x11, 0x12, 0x0f,
0x0a, 0x0d, 0x1a, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5a,
0x1f, 0x0a, 0x1d, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x13, 0x08, 0x02, 0x1a,
0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x02,
0x62, 0x0c, 0x0a, 0x0a, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x00, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x7d, 0x12, 0x5b, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x18, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x6f, 0x62, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x61, 0x70, 0x69,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x12, 0x66,
0x0a, 0x09, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x19, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x26,
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f,
0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x69, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c,
0x65, 0x4a, 0x6f, 0x62, 0x12, 0x1a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44,
0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21,
0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x6a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
0x65, 0x12, 0x5f, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x19,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a,
0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x2a, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x73,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x69,
0x64, 0x7d, 0x42, 0x91, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c,
0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65,
0x6e, 0x74, 0x92, 0x41, 0x51, 0x52, 0x20, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x12, 0x15, 0x12, 0x13, 0x0a, 0x11, 0x1a, 0x0f, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5a, 0x1f, 0x0a, 0x1d, 0x0a, 0x06, 0x42, 0x65, 0x61,
0x72, 0x65, 0x72, 0x12, 0x13, 0x08, 0x02, 0x1a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x02, 0x62, 0x0c, 0x0a, 0x0a, 0x0a, 0x06, 0x42, 0x65,
0x61, 0x72, 0x65, 0x72, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_job_proto_rawDescOnce sync.Once
file_backend_api_job_proto_rawDescData = file_backend_api_job_proto_rawDesc
file_backend_api_v1beta1_job_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_job_proto_rawDescData = file_backend_api_v1beta1_job_proto_rawDesc
)
func file_backend_api_job_proto_rawDescGZIP() []byte {
file_backend_api_job_proto_rawDescOnce.Do(func() {
file_backend_api_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_job_proto_rawDescData)
func file_backend_api_v1beta1_job_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_job_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_job_proto_rawDescData)
})
return file_backend_api_job_proto_rawDescData
return file_backend_api_v1beta1_job_proto_rawDescData
}
var file_backend_api_job_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_job_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_backend_api_job_proto_goTypes = []interface{}{
(Job_Mode)(0), // 0: api.Job.Mode
(*CreateJobRequest)(nil), // 1: api.CreateJobRequest
(*GetJobRequest)(nil), // 2: api.GetJobRequest
(*ListJobsRequest)(nil), // 3: api.ListJobsRequest
(*ListJobsResponse)(nil), // 4: api.ListJobsResponse
(*DeleteJobRequest)(nil), // 5: api.DeleteJobRequest
(*EnableJobRequest)(nil), // 6: api.EnableJobRequest
(*DisableJobRequest)(nil), // 7: api.DisableJobRequest
(*CronSchedule)(nil), // 8: api.CronSchedule
(*PeriodicSchedule)(nil), // 9: api.PeriodicSchedule
(*Trigger)(nil), // 10: api.Trigger
(*Job)(nil), // 11: api.Job
(*ResourceKey)(nil), // 12: api.ResourceKey
var file_backend_api_v1beta1_job_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_v1beta1_job_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_backend_api_v1beta1_job_proto_goTypes = []interface{}{
(Job_Mode)(0), // 0: v1beta1.Job.Mode
(*CreateJobRequest)(nil), // 1: v1beta1.CreateJobRequest
(*GetJobRequest)(nil), // 2: v1beta1.GetJobRequest
(*ListJobsRequest)(nil), // 3: v1beta1.ListJobsRequest
(*ListJobsResponse)(nil), // 4: v1beta1.ListJobsResponse
(*DeleteJobRequest)(nil), // 5: v1beta1.DeleteJobRequest
(*EnableJobRequest)(nil), // 6: v1beta1.EnableJobRequest
(*DisableJobRequest)(nil), // 7: v1beta1.DisableJobRequest
(*CronSchedule)(nil), // 8: v1beta1.CronSchedule
(*PeriodicSchedule)(nil), // 9: v1beta1.PeriodicSchedule
(*Trigger)(nil), // 10: v1beta1.Trigger
(*Job)(nil), // 11: v1beta1.Job
(*ResourceKey)(nil), // 12: v1beta1.ResourceKey
(*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
(*PipelineSpec)(nil), // 14: api.PipelineSpec
(*ResourceReference)(nil), // 15: api.ResourceReference
(*PipelineSpec)(nil), // 14: v1beta1.PipelineSpec
(*ResourceReference)(nil), // 15: v1beta1.ResourceReference
(*emptypb.Empty)(nil), // 16: google.protobuf.Empty
}
var file_backend_api_job_proto_depIdxs = []int32{
11, // 0: api.CreateJobRequest.job:type_name -> api.Job
12, // 1: api.ListJobsRequest.resource_reference_key:type_name -> api.ResourceKey
11, // 2: api.ListJobsResponse.jobs:type_name -> api.Job
13, // 3: api.CronSchedule.start_time:type_name -> google.protobuf.Timestamp
13, // 4: api.CronSchedule.end_time:type_name -> google.protobuf.Timestamp
13, // 5: api.PeriodicSchedule.start_time:type_name -> google.protobuf.Timestamp
13, // 6: api.PeriodicSchedule.end_time:type_name -> google.protobuf.Timestamp
8, // 7: api.Trigger.cron_schedule:type_name -> api.CronSchedule
9, // 8: api.Trigger.periodic_schedule:type_name -> api.PeriodicSchedule
14, // 9: api.Job.pipeline_spec:type_name -> api.PipelineSpec
15, // 10: api.Job.resource_references:type_name -> api.ResourceReference
10, // 11: api.Job.trigger:type_name -> api.Trigger
0, // 12: api.Job.mode:type_name -> api.Job.Mode
13, // 13: api.Job.created_at:type_name -> google.protobuf.Timestamp
13, // 14: api.Job.updated_at:type_name -> google.protobuf.Timestamp
1, // 15: api.JobService.CreateJob:input_type -> api.CreateJobRequest
2, // 16: api.JobService.GetJob:input_type -> api.GetJobRequest
3, // 17: api.JobService.ListJobs:input_type -> api.ListJobsRequest
6, // 18: api.JobService.EnableJob:input_type -> api.EnableJobRequest
7, // 19: api.JobService.DisableJob:input_type -> api.DisableJobRequest
5, // 20: api.JobService.DeleteJob:input_type -> api.DeleteJobRequest
11, // 21: api.JobService.CreateJob:output_type -> api.Job
11, // 22: api.JobService.GetJob:output_type -> api.Job
4, // 23: api.JobService.ListJobs:output_type -> api.ListJobsResponse
16, // 24: api.JobService.EnableJob:output_type -> google.protobuf.Empty
16, // 25: api.JobService.DisableJob:output_type -> google.protobuf.Empty
16, // 26: api.JobService.DeleteJob:output_type -> google.protobuf.Empty
var file_backend_api_v1beta1_job_proto_depIdxs = []int32{
11, // 0: v1beta1.CreateJobRequest.job:type_name -> v1beta1.Job
12, // 1: v1beta1.ListJobsRequest.resource_reference_key:type_name -> v1beta1.ResourceKey
11, // 2: v1beta1.ListJobsResponse.jobs:type_name -> v1beta1.Job
13, // 3: v1beta1.CronSchedule.start_time:type_name -> google.protobuf.Timestamp
13, // 4: v1beta1.CronSchedule.end_time:type_name -> google.protobuf.Timestamp
13, // 5: v1beta1.PeriodicSchedule.start_time:type_name -> google.protobuf.Timestamp
13, // 6: v1beta1.PeriodicSchedule.end_time:type_name -> google.protobuf.Timestamp
8, // 7: v1beta1.Trigger.cron_schedule:type_name -> v1beta1.CronSchedule
9, // 8: v1beta1.Trigger.periodic_schedule:type_name -> v1beta1.PeriodicSchedule
14, // 9: v1beta1.Job.pipeline_spec:type_name -> v1beta1.PipelineSpec
15, // 10: v1beta1.Job.resource_references:type_name -> v1beta1.ResourceReference
10, // 11: v1beta1.Job.trigger:type_name -> v1beta1.Trigger
0, // 12: v1beta1.Job.mode:type_name -> v1beta1.Job.Mode
13, // 13: v1beta1.Job.created_at:type_name -> google.protobuf.Timestamp
13, // 14: v1beta1.Job.updated_at:type_name -> google.protobuf.Timestamp
1, // 15: v1beta1.JobService.CreateJob:input_type -> v1beta1.CreateJobRequest
2, // 16: v1beta1.JobService.GetJob:input_type -> v1beta1.GetJobRequest
3, // 17: v1beta1.JobService.ListJobs:input_type -> v1beta1.ListJobsRequest
6, // 18: v1beta1.JobService.EnableJob:input_type -> v1beta1.EnableJobRequest
7, // 19: v1beta1.JobService.DisableJob:input_type -> v1beta1.DisableJobRequest
5, // 20: v1beta1.JobService.DeleteJob:input_type -> v1beta1.DeleteJobRequest
11, // 21: v1beta1.JobService.CreateJob:output_type -> v1beta1.Job
11, // 22: v1beta1.JobService.GetJob:output_type -> v1beta1.Job
4, // 23: v1beta1.JobService.ListJobs:output_type -> v1beta1.ListJobsResponse
16, // 24: v1beta1.JobService.EnableJob:output_type -> google.protobuf.Empty
16, // 25: v1beta1.JobService.DisableJob:output_type -> google.protobuf.Empty
16, // 26: v1beta1.JobService.DeleteJob:output_type -> google.protobuf.Empty
21, // [21:27] is the sub-list for method output_type
15, // [15:21] is the sub-list for method input_type
15, // [15:15] is the sub-list for extension type_name
@ -1124,16 +1131,16 @@ var file_backend_api_job_proto_depIdxs = []int32{
0, // [0:15] is the sub-list for field type_name
}
func init() { file_backend_api_job_proto_init() }
func file_backend_api_job_proto_init() {
if File_backend_api_job_proto != nil {
func init() { file_backend_api_v1beta1_job_proto_init() }
func file_backend_api_v1beta1_job_proto_init() {
if File_backend_api_v1beta1_job_proto != nil {
return
}
file_backend_api_pipeline_spec_proto_init()
file_backend_api_resource_reference_proto_init()
file_backend_api_error_proto_init()
file_backend_api_v1beta1_pipeline_spec_proto_init()
file_backend_api_v1beta1_resource_reference_proto_init()
file_backend_api_v1beta1_error_proto_init()
if !protoimpl.UnsafeEnabled {
file_backend_api_job_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateJobRequest); i {
case 0:
return &v.state
@ -1145,7 +1152,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetJobRequest); i {
case 0:
return &v.state
@ -1157,7 +1164,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListJobsRequest); i {
case 0:
return &v.state
@ -1169,7 +1176,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListJobsResponse); i {
case 0:
return &v.state
@ -1181,7 +1188,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteJobRequest); i {
case 0:
return &v.state
@ -1193,7 +1200,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*EnableJobRequest); i {
case 0:
return &v.state
@ -1205,7 +1212,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DisableJobRequest); i {
case 0:
return &v.state
@ -1217,7 +1224,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CronSchedule); i {
case 0:
return &v.state
@ -1229,7 +1236,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PeriodicSchedule); i {
case 0:
return &v.state
@ -1241,7 +1248,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Trigger); i {
case 0:
return &v.state
@ -1253,7 +1260,7 @@ func file_backend_api_job_proto_init() {
return nil
}
}
file_backend_api_job_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_job_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Job); i {
case 0:
return &v.state
@ -1266,7 +1273,7 @@ func file_backend_api_job_proto_init() {
}
}
}
file_backend_api_job_proto_msgTypes[9].OneofWrappers = []interface{}{
file_backend_api_v1beta1_job_proto_msgTypes[9].OneofWrappers = []interface{}{
(*Trigger_CronSchedule)(nil),
(*Trigger_PeriodicSchedule)(nil),
}
@ -1274,21 +1281,21 @@ func file_backend_api_job_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_job_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_job_proto_rawDesc,
NumEnums: 1,
NumMessages: 11,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_job_proto_goTypes,
DependencyIndexes: file_backend_api_job_proto_depIdxs,
EnumInfos: file_backend_api_job_proto_enumTypes,
MessageInfos: file_backend_api_job_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_job_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_job_proto_depIdxs,
EnumInfos: file_backend_api_v1beta1_job_proto_enumTypes,
MessageInfos: file_backend_api_v1beta1_job_proto_msgTypes,
}.Build()
File_backend_api_job_proto = out.File
file_backend_api_job_proto_rawDesc = nil
file_backend_api_job_proto_goTypes = nil
file_backend_api_job_proto_depIdxs = nil
File_backend_api_v1beta1_job_proto = out.File
file_backend_api_v1beta1_job_proto_rawDesc = nil
file_backend_api_v1beta1_job_proto_goTypes = nil
file_backend_api_v1beta1_job_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -1327,7 +1334,7 @@ func NewJobServiceClient(cc grpc.ClientConnInterface) JobServiceClient {
func (c *jobServiceClient) CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*Job, error) {
out := new(Job)
err := c.cc.Invoke(ctx, "/api.JobService/CreateJob", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.JobService/CreateJob", in, out, opts...)
if err != nil {
return nil, err
}
@ -1336,7 +1343,7 @@ func (c *jobServiceClient) CreateJob(ctx context.Context, in *CreateJobRequest,
func (c *jobServiceClient) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) {
out := new(Job)
err := c.cc.Invoke(ctx, "/api.JobService/GetJob", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.JobService/GetJob", in, out, opts...)
if err != nil {
return nil, err
}
@ -1345,7 +1352,7 @@ func (c *jobServiceClient) GetJob(ctx context.Context, in *GetJobRequest, opts .
func (c *jobServiceClient) ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error) {
out := new(ListJobsResponse)
err := c.cc.Invoke(ctx, "/api.JobService/ListJobs", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.JobService/ListJobs", in, out, opts...)
if err != nil {
return nil, err
}
@ -1354,7 +1361,7 @@ func (c *jobServiceClient) ListJobs(ctx context.Context, in *ListJobsRequest, op
func (c *jobServiceClient) EnableJob(ctx context.Context, in *EnableJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.JobService/EnableJob", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.JobService/EnableJob", in, out, opts...)
if err != nil {
return nil, err
}
@ -1363,7 +1370,7 @@ func (c *jobServiceClient) EnableJob(ctx context.Context, in *EnableJobRequest,
func (c *jobServiceClient) DisableJob(ctx context.Context, in *DisableJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.JobService/DisableJob", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.JobService/DisableJob", in, out, opts...)
if err != nil {
return nil, err
}
@ -1372,7 +1379,7 @@ func (c *jobServiceClient) DisableJob(ctx context.Context, in *DisableJobRequest
func (c *jobServiceClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.JobService/DeleteJob", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.JobService/DeleteJob", in, out, opts...)
if err != nil {
return nil, err
}
@ -1432,7 +1439,7 @@ func _JobService_CreateJob_Handler(srv interface{}, ctx context.Context, dec fun
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.JobService/CreateJob",
FullMethod: "/v1beta1.JobService/CreateJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobServiceServer).CreateJob(ctx, req.(*CreateJobRequest))
@ -1450,7 +1457,7 @@ func _JobService_GetJob_Handler(srv interface{}, ctx context.Context, dec func(i
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.JobService/GetJob",
FullMethod: "/v1beta1.JobService/GetJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobServiceServer).GetJob(ctx, req.(*GetJobRequest))
@ -1468,7 +1475,7 @@ func _JobService_ListJobs_Handler(srv interface{}, ctx context.Context, dec func
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.JobService/ListJobs",
FullMethod: "/v1beta1.JobService/ListJobs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobServiceServer).ListJobs(ctx, req.(*ListJobsRequest))
@ -1486,7 +1493,7 @@ func _JobService_EnableJob_Handler(srv interface{}, ctx context.Context, dec fun
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.JobService/EnableJob",
FullMethod: "/v1beta1.JobService/EnableJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobServiceServer).EnableJob(ctx, req.(*EnableJobRequest))
@ -1504,7 +1511,7 @@ func _JobService_DisableJob_Handler(srv interface{}, ctx context.Context, dec fu
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.JobService/DisableJob",
FullMethod: "/v1beta1.JobService/DisableJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobServiceServer).DisableJob(ctx, req.(*DisableJobRequest))
@ -1522,7 +1529,7 @@ func _JobService_DeleteJob_Handler(srv interface{}, ctx context.Context, dec fun
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.JobService/DeleteJob",
FullMethod: "/v1beta1.JobService/DeleteJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobServiceServer).DeleteJob(ctx, req.(*DeleteJobRequest))
@ -1531,7 +1538,7 @@ func _JobService_DeleteJob_Handler(srv interface{}, ctx context.Context, dec fun
}
var _JobService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.JobService",
ServiceName: "v1beta1.JobService",
HandlerType: (*JobServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -1560,5 +1567,5 @@ var _JobService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/job.proto",
Metadata: "backend/api/v1beta1/job.proto",
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/job.proto
// source: backend/api/v1beta1/job.proto
/*
Package go_client is a reverse proxy.
@ -80,7 +80,10 @@ func request_JobService_ListJobs_0(ctx context.Context, marshaler runtime.Marsha
var protoReq ListJobsRequest
var metadata runtime.ServerMetadata
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_JobService_ListJobs_0); err != nil {
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_JobService_ListJobs_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@ -332,17 +335,17 @@ func RegisterJobServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux,
}
var (
pattern_JobService_CreateJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "jobs"}, ""))
pattern_JobService_CreateJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "jobs"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_JobService_GetJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "jobs", "id"}, ""))
pattern_JobService_GetJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "jobs", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_JobService_ListJobs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "jobs"}, ""))
pattern_JobService_ListJobs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "jobs"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_JobService_EnableJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "jobs", "id", "enable"}, ""))
pattern_JobService_EnableJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "jobs", "id", "enable"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_JobService_DisableJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "jobs", "id", "disable"}, ""))
pattern_JobService_DisableJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "jobs", "id", "disable"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_JobService_DeleteJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "jobs", "id"}, ""))
pattern_JobService_DeleteJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "jobs", "id"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/parameter.proto
// source: backend/api/v1beta1/parameter.proto
package go_client
@ -46,7 +46,7 @@ type Parameter struct {
func (x *Parameter) Reset() {
*x = Parameter{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_parameter_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_parameter_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -59,7 +59,7 @@ func (x *Parameter) String() string {
func (*Parameter) ProtoMessage() {}
func (x *Parameter) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_parameter_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_parameter_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -72,7 +72,7 @@ func (x *Parameter) ProtoReflect() protoreflect.Message {
// Deprecated: Use Parameter.ProtoReflect.Descriptor instead.
func (*Parameter) Descriptor() ([]byte, []int) {
return file_backend_api_parameter_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_parameter_proto_rawDescGZIP(), []int{0}
}
func (x *Parameter) GetName() string {
@ -89,38 +89,39 @@ func (x *Parameter) GetValue() string {
return ""
}
var File_backend_api_parameter_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_parameter_proto protoreflect.FileDescriptor
var file_backend_api_parameter_proto_rawDesc = []byte{
0x0a, 0x1b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61,
0x70, 0x69, 0x22, 0x35, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77,
0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65,
0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
var file_backend_api_v1beta1_parameter_proto_rawDesc = []byte{
0x0a, 0x23, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x35,
0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70,
0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c,
0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_parameter_proto_rawDescOnce sync.Once
file_backend_api_parameter_proto_rawDescData = file_backend_api_parameter_proto_rawDesc
file_backend_api_v1beta1_parameter_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_parameter_proto_rawDescData = file_backend_api_v1beta1_parameter_proto_rawDesc
)
func file_backend_api_parameter_proto_rawDescGZIP() []byte {
file_backend_api_parameter_proto_rawDescOnce.Do(func() {
file_backend_api_parameter_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_parameter_proto_rawDescData)
func file_backend_api_v1beta1_parameter_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_parameter_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_parameter_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_parameter_proto_rawDescData)
})
return file_backend_api_parameter_proto_rawDescData
return file_backend_api_v1beta1_parameter_proto_rawDescData
}
var file_backend_api_parameter_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_backend_api_parameter_proto_goTypes = []interface{}{
(*Parameter)(nil), // 0: api.Parameter
var file_backend_api_v1beta1_parameter_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_backend_api_v1beta1_parameter_proto_goTypes = []interface{}{
(*Parameter)(nil), // 0: v1beta1.Parameter
}
var file_backend_api_parameter_proto_depIdxs = []int32{
var file_backend_api_v1beta1_parameter_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
@ -128,13 +129,13 @@ var file_backend_api_parameter_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name
}
func init() { file_backend_api_parameter_proto_init() }
func file_backend_api_parameter_proto_init() {
if File_backend_api_parameter_proto != nil {
func init() { file_backend_api_v1beta1_parameter_proto_init() }
func file_backend_api_v1beta1_parameter_proto_init() {
if File_backend_api_v1beta1_parameter_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_backend_api_parameter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_parameter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Parameter); i {
case 0:
return &v.state
@ -151,18 +152,18 @@ func file_backend_api_parameter_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_parameter_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_parameter_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_backend_api_parameter_proto_goTypes,
DependencyIndexes: file_backend_api_parameter_proto_depIdxs,
MessageInfos: file_backend_api_parameter_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_parameter_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_parameter_proto_depIdxs,
MessageInfos: file_backend_api_v1beta1_parameter_proto_msgTypes,
}.Build()
File_backend_api_parameter_proto = out.File
file_backend_api_parameter_proto_rawDesc = nil
file_backend_api_parameter_proto_goTypes = nil
file_backend_api_parameter_proto_depIdxs = nil
File_backend_api_v1beta1_parameter_proto = out.File
file_backend_api_v1beta1_parameter_proto_rawDesc = nil
file_backend_api_v1beta1_parameter_proto_goTypes = nil
file_backend_api_v1beta1_parameter_proto_depIdxs = nil
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/pipeline.proto
// source: backend/api/v1beta1/pipeline.proto
/*
Package go_client is a reverse proxy.
@ -118,7 +118,10 @@ func request_PipelineService_ListPipelines_0(ctx context.Context, marshaler runt
var protoReq ListPipelinesRequest
var metadata runtime.ServerMetadata
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_PipelineService_ListPipelines_0); err != nil {
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PipelineService_ListPipelines_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@ -233,7 +236,10 @@ func request_PipelineService_ListPipelineVersions_0(ctx context.Context, marshal
var protoReq ListPipelineVersionsRequest
var metadata runtime.ServerMetadata
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_PipelineService_ListPipelineVersions_0); err != nil {
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PipelineService_ListPipelineVersions_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@ -616,29 +622,29 @@ func RegisterPipelineServiceHandlerClient(ctx context.Context, mux *runtime.Serv
}
var (
pattern_PipelineService_CreatePipeline_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipelines"}, ""))
pattern_PipelineService_CreatePipeline_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipelines"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_GetPipeline_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipelines", "id"}, ""))
pattern_PipelineService_GetPipeline_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipelines", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_GetPipelineByName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"apis", "v1beta1", "namespaces", "namespace", "pipelines", "name"}, ""))
pattern_PipelineService_GetPipelineByName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"apis", "v1beta1", "namespaces", "namespace", "pipelines", "name"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_ListPipelines_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipelines"}, ""))
pattern_PipelineService_ListPipelines_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipelines"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_DeletePipeline_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipelines", "id"}, ""))
pattern_PipelineService_DeletePipeline_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipelines", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_GetTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "pipelines", "id", "templates"}, ""))
pattern_PipelineService_GetTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "pipelines", "id", "templates"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_CreatePipelineVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipeline_versions"}, ""))
pattern_PipelineService_CreatePipelineVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipeline_versions"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_GetPipelineVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipeline_versions", "version_id"}, ""))
pattern_PipelineService_GetPipelineVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipeline_versions", "version_id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_ListPipelineVersions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipeline_versions"}, ""))
pattern_PipelineService_ListPipelineVersions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "pipeline_versions"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_DeletePipelineVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipeline_versions", "version_id"}, ""))
pattern_PipelineService_DeletePipelineVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "pipeline_versions", "version_id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_GetPipelineVersionTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "pipeline_versions", "version_id", "templates"}, ""))
pattern_PipelineService_GetPipelineVersionTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "pipeline_versions", "version_id", "templates"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_PipelineService_UpdatePipelineDefaultVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"apis", "v1beta1", "pipelines", "pipeline_id", "default_version", "version_id"}, ""))
pattern_PipelineService_UpdatePipelineDefaultVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"apis", "v1beta1", "pipelines", "pipeline_id", "default_version", "version_id"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/pipeline_spec.proto
// source: backend/api/v1beta1/pipeline_spec.proto
package go_client
@ -61,7 +61,7 @@ type PipelineSpec struct {
func (x *PipelineSpec) Reset() {
*x = PipelineSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_pipeline_spec_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_pipeline_spec_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -74,7 +74,7 @@ func (x *PipelineSpec) String() string {
func (*PipelineSpec) ProtoMessage() {}
func (x *PipelineSpec) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_pipeline_spec_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_pipeline_spec_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -87,7 +87,7 @@ func (x *PipelineSpec) ProtoReflect() protoreflect.Message {
// Deprecated: Use PipelineSpec.ProtoReflect.Descriptor instead.
func (*PipelineSpec) Descriptor() ([]byte, []int) {
return file_backend_api_pipeline_spec_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_pipeline_spec_proto_rawDescGZIP(), []int{0}
}
func (x *PipelineSpec) GetPipelineId() string {
@ -151,7 +151,7 @@ type PipelineSpec_RuntimeConfig struct {
func (x *PipelineSpec_RuntimeConfig) Reset() {
*x = PipelineSpec_RuntimeConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_pipeline_spec_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_pipeline_spec_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -164,7 +164,7 @@ func (x *PipelineSpec_RuntimeConfig) String() string {
func (*PipelineSpec_RuntimeConfig) ProtoMessage() {}
func (x *PipelineSpec_RuntimeConfig) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_pipeline_spec_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_pipeline_spec_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -177,7 +177,7 @@ func (x *PipelineSpec_RuntimeConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use PipelineSpec_RuntimeConfig.ProtoReflect.Descriptor instead.
func (*PipelineSpec_RuntimeConfig) Descriptor() ([]byte, []int) {
return file_backend_api_pipeline_spec_proto_rawDescGZIP(), []int{0, 0}
return file_backend_api_v1beta1_pipeline_spec_proto_rawDescGZIP(), []int{0, 0}
}
func (x *PipelineSpec_RuntimeConfig) GetParameters() map[string]*structpb.Value {
@ -194,37 +194,39 @@ func (x *PipelineSpec_RuntimeConfig) GetPipelineRoot() string {
return ""
}
var File_backend_api_pipeline_spec_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_pipeline_spec_proto protoreflect.FileDescriptor
var file_backend_api_pipeline_spec_proto_rawDesc = []byte{
0x0a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x69,
0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x85, 0x04, 0x0a, 0x0c, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x70,
0x65, 0x63, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e,
0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x69, 0x70, 0x65,
0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x77, 0x6f, 0x72, 0x6b,
0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x61, 0x6e,
0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e,
0x65, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x10, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65,
0x73, 0x74, 0x12, 0x2e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73,
0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65,
0x72, 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x63, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x52, 0x75,
0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x72, 0x75, 0x6e,
0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xdc, 0x01, 0x0a, 0x0d, 0x52,
0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4f, 0x0a, 0x0a,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53,
var file_backend_api_v1beta1_pipeline_spec_proto_rawDesc = []byte{
0x0a, 0x27, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73,
0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x1a, 0x23, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65,
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x04, 0x0a, 0x0c, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69,
0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69,
0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x69, 0x70,
0x65, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x69, 0x70, 0x65, 0x6c,
0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11,
0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73,
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f,
0x77, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x69, 0x70,
0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x4d, 0x61,
0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65,
0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4a, 0x0a, 0x0e, 0x72, 0x75,
0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x69, 0x70,
0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d,
0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xe0, 0x01, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x74, 0x69,
0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x53, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53,
0x70, 0x65, 0x63, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,
0x67, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x23, 0x0a,
@ -235,38 +237,38 @@ var file_backend_api_pipeline_spec_proto_rawDesc = []byte{
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77,
0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65,
0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67,
0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_pipeline_spec_proto_rawDescOnce sync.Once
file_backend_api_pipeline_spec_proto_rawDescData = file_backend_api_pipeline_spec_proto_rawDesc
file_backend_api_v1beta1_pipeline_spec_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_pipeline_spec_proto_rawDescData = file_backend_api_v1beta1_pipeline_spec_proto_rawDesc
)
func file_backend_api_pipeline_spec_proto_rawDescGZIP() []byte {
file_backend_api_pipeline_spec_proto_rawDescOnce.Do(func() {
file_backend_api_pipeline_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_pipeline_spec_proto_rawDescData)
func file_backend_api_v1beta1_pipeline_spec_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_pipeline_spec_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_pipeline_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_pipeline_spec_proto_rawDescData)
})
return file_backend_api_pipeline_spec_proto_rawDescData
return file_backend_api_v1beta1_pipeline_spec_proto_rawDescData
}
var file_backend_api_pipeline_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_backend_api_pipeline_spec_proto_goTypes = []interface{}{
(*PipelineSpec)(nil), // 0: api.PipelineSpec
(*PipelineSpec_RuntimeConfig)(nil), // 1: api.PipelineSpec.RuntimeConfig
nil, // 2: api.PipelineSpec.RuntimeConfig.ParametersEntry
(*Parameter)(nil), // 3: api.Parameter
var file_backend_api_v1beta1_pipeline_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_backend_api_v1beta1_pipeline_spec_proto_goTypes = []interface{}{
(*PipelineSpec)(nil), // 0: v1beta1.PipelineSpec
(*PipelineSpec_RuntimeConfig)(nil), // 1: v1beta1.PipelineSpec.RuntimeConfig
nil, // 2: v1beta1.PipelineSpec.RuntimeConfig.ParametersEntry
(*Parameter)(nil), // 3: v1beta1.Parameter
(*structpb.Value)(nil), // 4: google.protobuf.Value
}
var file_backend_api_pipeline_spec_proto_depIdxs = []int32{
3, // 0: api.PipelineSpec.parameters:type_name -> api.Parameter
1, // 1: api.PipelineSpec.runtime_config:type_name -> api.PipelineSpec.RuntimeConfig
2, // 2: api.PipelineSpec.RuntimeConfig.parameters:type_name -> api.PipelineSpec.RuntimeConfig.ParametersEntry
4, // 3: api.PipelineSpec.RuntimeConfig.ParametersEntry.value:type_name -> google.protobuf.Value
var file_backend_api_v1beta1_pipeline_spec_proto_depIdxs = []int32{
3, // 0: v1beta1.PipelineSpec.parameters:type_name -> v1beta1.Parameter
1, // 1: v1beta1.PipelineSpec.runtime_config:type_name -> v1beta1.PipelineSpec.RuntimeConfig
2, // 2: v1beta1.PipelineSpec.RuntimeConfig.parameters:type_name -> v1beta1.PipelineSpec.RuntimeConfig.ParametersEntry
4, // 3: v1beta1.PipelineSpec.RuntimeConfig.ParametersEntry.value:type_name -> google.protobuf.Value
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
@ -274,14 +276,14 @@ var file_backend_api_pipeline_spec_proto_depIdxs = []int32{
0, // [0:4] is the sub-list for field type_name
}
func init() { file_backend_api_pipeline_spec_proto_init() }
func file_backend_api_pipeline_spec_proto_init() {
if File_backend_api_pipeline_spec_proto != nil {
func init() { file_backend_api_v1beta1_pipeline_spec_proto_init() }
func file_backend_api_v1beta1_pipeline_spec_proto_init() {
if File_backend_api_v1beta1_pipeline_spec_proto != nil {
return
}
file_backend_api_parameter_proto_init()
file_backend_api_v1beta1_parameter_proto_init()
if !protoimpl.UnsafeEnabled {
file_backend_api_pipeline_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_pipeline_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PipelineSpec); i {
case 0:
return &v.state
@ -293,7 +295,7 @@ func file_backend_api_pipeline_spec_proto_init() {
return nil
}
}
file_backend_api_pipeline_spec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_pipeline_spec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PipelineSpec_RuntimeConfig); i {
case 0:
return &v.state
@ -310,18 +312,18 @@ func file_backend_api_pipeline_spec_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_pipeline_spec_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_pipeline_spec_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_backend_api_pipeline_spec_proto_goTypes,
DependencyIndexes: file_backend_api_pipeline_spec_proto_depIdxs,
MessageInfos: file_backend_api_pipeline_spec_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_pipeline_spec_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_pipeline_spec_proto_depIdxs,
MessageInfos: file_backend_api_v1beta1_pipeline_spec_proto_msgTypes,
}.Build()
File_backend_api_pipeline_spec_proto = out.File
file_backend_api_pipeline_spec_proto_rawDesc = nil
file_backend_api_pipeline_spec_proto_goTypes = nil
file_backend_api_pipeline_spec_proto_depIdxs = nil
File_backend_api_v1beta1_pipeline_spec_proto = out.File
file_backend_api_v1beta1_pipeline_spec_proto_rawDesc = nil
file_backend_api_v1beta1_pipeline_spec_proto_goTypes = nil
file_backend_api_v1beta1_pipeline_spec_proto_depIdxs = nil
}

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/report.proto
// source: backend/api/v1beta1/report.proto
package go_client
@ -52,7 +52,7 @@ type ReportWorkflowRequest struct {
func (x *ReportWorkflowRequest) Reset() {
*x = ReportWorkflowRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_report_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_report_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -65,7 +65,7 @@ func (x *ReportWorkflowRequest) String() string {
func (*ReportWorkflowRequest) ProtoMessage() {}
func (x *ReportWorkflowRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_report_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_report_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -78,7 +78,7 @@ func (x *ReportWorkflowRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ReportWorkflowRequest.ProtoReflect.Descriptor instead.
func (*ReportWorkflowRequest) Descriptor() ([]byte, []int) {
return file_backend_api_report_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_report_proto_rawDescGZIP(), []int{0}
}
func (x *ReportWorkflowRequest) GetWorkflow() string {
@ -100,7 +100,7 @@ type ReportScheduledWorkflowRequest struct {
func (x *ReportScheduledWorkflowRequest) Reset() {
*x = ReportScheduledWorkflowRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_report_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_report_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -113,7 +113,7 @@ func (x *ReportScheduledWorkflowRequest) String() string {
func (*ReportScheduledWorkflowRequest) ProtoMessage() {}
func (x *ReportScheduledWorkflowRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_report_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_report_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -126,7 +126,7 @@ func (x *ReportScheduledWorkflowRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ReportScheduledWorkflowRequest.ProtoReflect.Descriptor instead.
func (*ReportScheduledWorkflowRequest) Descriptor() ([]byte, []int) {
return file_backend_api_report_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_report_proto_rawDescGZIP(), []int{1}
}
func (x *ReportScheduledWorkflowRequest) GetScheduledWorkflow() string {
@ -136,70 +136,72 @@ func (x *ReportScheduledWorkflowRequest) GetScheduledWorkflow() string {
return ""
}
var File_backend_api_report_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_report_proto protoreflect.FileDescriptor
var file_backend_api_report_proto_rawDesc = []byte{
0x0a, 0x18, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65,
0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a,
0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65,
0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x15, 0x52, 0x65,
0x70, 0x6f, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22,
0x4f, 0x0a, 0x1e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x77,
0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73,
0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77,
0x32, 0x97, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x6f, 0x0a, 0x0e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b,
0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72,
var file_backend_api_v1beta1_report_proto_rawDesc = []byte{
0x0a, 0x20, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74,
0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0x4f, 0x0a, 0x1e, 0x52,
0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x57, 0x6f,
0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a,
0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66,
0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x63, 0x68, 0x65, 0x64,
0x75, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x32, 0x9f, 0x02, 0x0a,
0x0d, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73,
0x0a, 0x0e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77,
0x12, 0x1e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23,
0x22, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x3a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66,
0x6c, 0x6f, 0x77, 0x12, 0x94, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63,
0x6c, 0x6f, 0x77, 0x12, 0x98, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63,
0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12,
0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65,
0x64, 0x75, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3c, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x36, 0x22, 0x20, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x77, 0x6f, 0x72,
0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x3a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f,
0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b,
0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x27, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74,
0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f,
0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x22, 0x20, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
0x64, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x3a, 0x12, 0x73, 0x63, 0x68, 0x65,
0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x42, 0x3d,
0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62,
0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f,
0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_report_proto_rawDescOnce sync.Once
file_backend_api_report_proto_rawDescData = file_backend_api_report_proto_rawDesc
file_backend_api_v1beta1_report_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_report_proto_rawDescData = file_backend_api_v1beta1_report_proto_rawDesc
)
func file_backend_api_report_proto_rawDescGZIP() []byte {
file_backend_api_report_proto_rawDescOnce.Do(func() {
file_backend_api_report_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_report_proto_rawDescData)
func file_backend_api_v1beta1_report_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_report_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_report_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_report_proto_rawDescData)
})
return file_backend_api_report_proto_rawDescData
return file_backend_api_v1beta1_report_proto_rawDescData
}
var file_backend_api_report_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_report_proto_goTypes = []interface{}{
(*ReportWorkflowRequest)(nil), // 0: api.ReportWorkflowRequest
(*ReportScheduledWorkflowRequest)(nil), // 1: api.ReportScheduledWorkflowRequest
var file_backend_api_v1beta1_report_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_v1beta1_report_proto_goTypes = []interface{}{
(*ReportWorkflowRequest)(nil), // 0: v1beta1.ReportWorkflowRequest
(*ReportScheduledWorkflowRequest)(nil), // 1: v1beta1.ReportScheduledWorkflowRequest
(*emptypb.Empty)(nil), // 2: google.protobuf.Empty
}
var file_backend_api_report_proto_depIdxs = []int32{
0, // 0: api.ReportService.ReportWorkflow:input_type -> api.ReportWorkflowRequest
1, // 1: api.ReportService.ReportScheduledWorkflow:input_type -> api.ReportScheduledWorkflowRequest
2, // 2: api.ReportService.ReportWorkflow:output_type -> google.protobuf.Empty
2, // 3: api.ReportService.ReportScheduledWorkflow:output_type -> google.protobuf.Empty
var file_backend_api_v1beta1_report_proto_depIdxs = []int32{
0, // 0: v1beta1.ReportService.ReportWorkflow:input_type -> v1beta1.ReportWorkflowRequest
1, // 1: v1beta1.ReportService.ReportScheduledWorkflow:input_type -> v1beta1.ReportScheduledWorkflowRequest
2, // 2: v1beta1.ReportService.ReportWorkflow:output_type -> google.protobuf.Empty
2, // 3: v1beta1.ReportService.ReportScheduledWorkflow:output_type -> google.protobuf.Empty
2, // [2:4] is the sub-list for method output_type
0, // [0:2] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
@ -207,13 +209,13 @@ var file_backend_api_report_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name
}
func init() { file_backend_api_report_proto_init() }
func file_backend_api_report_proto_init() {
if File_backend_api_report_proto != nil {
func init() { file_backend_api_v1beta1_report_proto_init() }
func file_backend_api_v1beta1_report_proto_init() {
if File_backend_api_v1beta1_report_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_backend_api_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReportWorkflowRequest); i {
case 0:
return &v.state
@ -225,7 +227,7 @@ func file_backend_api_report_proto_init() {
return nil
}
}
file_backend_api_report_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_report_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReportScheduledWorkflowRequest); i {
case 0:
return &v.state
@ -242,20 +244,20 @@ func file_backend_api_report_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_report_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_report_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_report_proto_goTypes,
DependencyIndexes: file_backend_api_report_proto_depIdxs,
MessageInfos: file_backend_api_report_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_report_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_report_proto_depIdxs,
MessageInfos: file_backend_api_v1beta1_report_proto_msgTypes,
}.Build()
File_backend_api_report_proto = out.File
file_backend_api_report_proto_rawDesc = nil
file_backend_api_report_proto_goTypes = nil
file_backend_api_report_proto_depIdxs = nil
File_backend_api_v1beta1_report_proto = out.File
file_backend_api_v1beta1_report_proto_rawDesc = nil
file_backend_api_v1beta1_report_proto_goTypes = nil
file_backend_api_v1beta1_report_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -284,7 +286,7 @@ func NewReportServiceClient(cc grpc.ClientConnInterface) ReportServiceClient {
func (c *reportServiceClient) ReportWorkflow(ctx context.Context, in *ReportWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.ReportService/ReportWorkflow", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ReportService/ReportWorkflow", in, out, opts...)
if err != nil {
return nil, err
}
@ -293,7 +295,7 @@ func (c *reportServiceClient) ReportWorkflow(ctx context.Context, in *ReportWork
func (c *reportServiceClient) ReportScheduledWorkflow(ctx context.Context, in *ReportScheduledWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.ReportService/ReportScheduledWorkflow", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.ReportService/ReportScheduledWorkflow", in, out, opts...)
if err != nil {
return nil, err
}
@ -331,7 +333,7 @@ func _ReportService_ReportWorkflow_Handler(srv interface{}, ctx context.Context,
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ReportService/ReportWorkflow",
FullMethod: "/v1beta1.ReportService/ReportWorkflow",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReportServiceServer).ReportWorkflow(ctx, req.(*ReportWorkflowRequest))
@ -349,7 +351,7 @@ func _ReportService_ReportScheduledWorkflow_Handler(srv interface{}, ctx context
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.ReportService/ReportScheduledWorkflow",
FullMethod: "/v1beta1.ReportService/ReportScheduledWorkflow",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReportServiceServer).ReportScheduledWorkflow(ctx, req.(*ReportScheduledWorkflowRequest))
@ -358,7 +360,7 @@ func _ReportService_ReportScheduledWorkflow_Handler(srv interface{}, ctx context
}
var _ReportService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.ReportService",
ServiceName: "v1beta1.ReportService",
HandlerType: (*ReportServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -371,5 +373,5 @@ var _ReportService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/report.proto",
Metadata: "backend/api/v1beta1/report.proto",
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/report.proto
// source: backend/api/v1beta1/report.proto
/*
Package go_client is a reverse proxy.
@ -144,9 +144,9 @@ func RegisterReportServiceHandlerClient(ctx context.Context, mux *runtime.ServeM
}
var (
pattern_ReportService_ReportWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "workflows"}, ""))
pattern_ReportService_ReportWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "workflows"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_ReportService_ReportScheduledWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "scheduledworkflows"}, ""))
pattern_ReportService_ReportScheduledWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "scheduledworkflows"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/resource_reference.proto
// source: backend/api/v1beta1/resource_reference.proto
package go_client
@ -76,11 +76,11 @@ func (x ResourceType) String() string {
}
func (ResourceType) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_resource_reference_proto_enumTypes[0].Descriptor()
return file_backend_api_v1beta1_resource_reference_proto_enumTypes[0].Descriptor()
}
func (ResourceType) Type() protoreflect.EnumType {
return &file_backend_api_resource_reference_proto_enumTypes[0]
return &file_backend_api_v1beta1_resource_reference_proto_enumTypes[0]
}
func (x ResourceType) Number() protoreflect.EnumNumber {
@ -89,7 +89,7 @@ func (x ResourceType) Number() protoreflect.EnumNumber {
// Deprecated: Use ResourceType.Descriptor instead.
func (ResourceType) EnumDescriptor() ([]byte, []int) {
return file_backend_api_resource_reference_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_resource_reference_proto_rawDescGZIP(), []int{0}
}
type Relationship int32
@ -125,11 +125,11 @@ func (x Relationship) String() string {
}
func (Relationship) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_resource_reference_proto_enumTypes[1].Descriptor()
return file_backend_api_v1beta1_resource_reference_proto_enumTypes[1].Descriptor()
}
func (Relationship) Type() protoreflect.EnumType {
return &file_backend_api_resource_reference_proto_enumTypes[1]
return &file_backend_api_v1beta1_resource_reference_proto_enumTypes[1]
}
func (x Relationship) Number() protoreflect.EnumNumber {
@ -138,7 +138,7 @@ func (x Relationship) Number() protoreflect.EnumNumber {
// Deprecated: Use Relationship.Descriptor instead.
func (Relationship) EnumDescriptor() ([]byte, []int) {
return file_backend_api_resource_reference_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_resource_reference_proto_rawDescGZIP(), []int{1}
}
type ResourceKey struct {
@ -147,7 +147,7 @@ type ResourceKey struct {
unknownFields protoimpl.UnknownFields
// The type of the resource that referred to.
Type ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=api.ResourceType" json:"type,omitempty"`
Type ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=v1beta1.ResourceType" json:"type,omitempty"`
// The ID of the resource that referred to.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
}
@ -155,7 +155,7 @@ type ResourceKey struct {
func (x *ResourceKey) Reset() {
*x = ResourceKey{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_resource_reference_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_resource_reference_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -168,7 +168,7 @@ func (x *ResourceKey) String() string {
func (*ResourceKey) ProtoMessage() {}
func (x *ResourceKey) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_resource_reference_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_resource_reference_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -181,7 +181,7 @@ func (x *ResourceKey) ProtoReflect() protoreflect.Message {
// Deprecated: Use ResourceKey.ProtoReflect.Descriptor instead.
func (*ResourceKey) Descriptor() ([]byte, []int) {
return file_backend_api_resource_reference_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_resource_reference_proto_rawDescGZIP(), []int{0}
}
func (x *ResourceKey) GetType() ResourceType {
@ -207,13 +207,13 @@ type ResourceReference struct {
// The name of the resource that referred to.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Required field. The relationship from referred resource to the object.
Relationship Relationship `protobuf:"varint,2,opt,name=relationship,proto3,enum=api.Relationship" json:"relationship,omitempty"`
Relationship Relationship `protobuf:"varint,2,opt,name=relationship,proto3,enum=v1beta1.Relationship" json:"relationship,omitempty"`
}
func (x *ResourceReference) Reset() {
*x = ResourceReference{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_resource_reference_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_resource_reference_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -226,7 +226,7 @@ func (x *ResourceReference) String() string {
func (*ResourceReference) ProtoMessage() {}
func (x *ResourceReference) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_resource_reference_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_resource_reference_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -239,7 +239,7 @@ func (x *ResourceReference) ProtoReflect() protoreflect.Message {
// Deprecated: Use ResourceReference.ProtoReflect.Descriptor instead.
func (*ResourceReference) Descriptor() ([]byte, []int) {
return file_backend_api_resource_reference_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_resource_reference_proto_rawDescGZIP(), []int{1}
}
func (x *ResourceReference) GetKey() *ResourceKey {
@ -263,66 +263,68 @@ func (x *ResourceReference) GetRelationship() Relationship {
return Relationship_UNKNOWN_RELATIONSHIP
}
var File_backend_api_resource_reference_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_resource_reference_proto protoreflect.FileDescriptor
var file_backend_api_resource_reference_proto_rawDesc = []byte{
0x0a, 0x24, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x22, 0x44, 0x0a, 0x0b, 0x52,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79,
0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52,
var file_backend_api_v1beta1_resource_reference_proto_rawDesc = []byte{
0x0a, 0x2c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72,
0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x48, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
0x64, 0x22, 0x82, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,
0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x35, 0x0a, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x6c, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x2a, 0x75, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
0x4e, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10,
0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x58, 0x50, 0x45, 0x52, 0x49, 0x4d, 0x45, 0x4e, 0x54, 0x10,
0x01, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x4f, 0x42, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49,
0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x49, 0x50, 0x45,
0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0d,
0x0a, 0x09, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x05, 0x2a, 0x40, 0x0a,
0x0c, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x18, 0x0a,
0x14, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x49, 0x4f,
0x4e, 0x53, 0x48, 0x49, 0x50, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52,
0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x45, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42,
0x35, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75,
0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73,
0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f,
0x64, 0x22, 0x8a, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,
0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x68, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70,
0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x2a, 0x75,
0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19,
0x0a, 0x15, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52,
0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x58, 0x50,
0x45, 0x52, 0x49, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x4f, 0x42,
0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03,
0x12, 0x14, 0x0a, 0x10, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x56, 0x45, 0x52,
0x53, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50,
0x41, 0x43, 0x45, 0x10, 0x05, 0x2a, 0x40, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x18, 0x0a, 0x14, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x48, 0x49, 0x50, 0x10, 0x00, 0x12,
0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x52,
0x45, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70,
0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f,
0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_resource_reference_proto_rawDescOnce sync.Once
file_backend_api_resource_reference_proto_rawDescData = file_backend_api_resource_reference_proto_rawDesc
file_backend_api_v1beta1_resource_reference_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_resource_reference_proto_rawDescData = file_backend_api_v1beta1_resource_reference_proto_rawDesc
)
func file_backend_api_resource_reference_proto_rawDescGZIP() []byte {
file_backend_api_resource_reference_proto_rawDescOnce.Do(func() {
file_backend_api_resource_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_resource_reference_proto_rawDescData)
func file_backend_api_v1beta1_resource_reference_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_resource_reference_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_resource_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_resource_reference_proto_rawDescData)
})
return file_backend_api_resource_reference_proto_rawDescData
return file_backend_api_v1beta1_resource_reference_proto_rawDescData
}
var file_backend_api_resource_reference_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_backend_api_resource_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_resource_reference_proto_goTypes = []interface{}{
(ResourceType)(0), // 0: api.ResourceType
(Relationship)(0), // 1: api.Relationship
(*ResourceKey)(nil), // 2: api.ResourceKey
(*ResourceReference)(nil), // 3: api.ResourceReference
var file_backend_api_v1beta1_resource_reference_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_backend_api_v1beta1_resource_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_v1beta1_resource_reference_proto_goTypes = []interface{}{
(ResourceType)(0), // 0: v1beta1.ResourceType
(Relationship)(0), // 1: v1beta1.Relationship
(*ResourceKey)(nil), // 2: v1beta1.ResourceKey
(*ResourceReference)(nil), // 3: v1beta1.ResourceReference
}
var file_backend_api_resource_reference_proto_depIdxs = []int32{
0, // 0: api.ResourceKey.type:type_name -> api.ResourceType
2, // 1: api.ResourceReference.key:type_name -> api.ResourceKey
1, // 2: api.ResourceReference.relationship:type_name -> api.Relationship
var file_backend_api_v1beta1_resource_reference_proto_depIdxs = []int32{
0, // 0: v1beta1.ResourceKey.type:type_name -> v1beta1.ResourceType
2, // 1: v1beta1.ResourceReference.key:type_name -> v1beta1.ResourceKey
1, // 2: v1beta1.ResourceReference.relationship:type_name -> v1beta1.Relationship
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
@ -330,13 +332,13 @@ var file_backend_api_resource_reference_proto_depIdxs = []int32{
0, // [0:3] is the sub-list for field type_name
}
func init() { file_backend_api_resource_reference_proto_init() }
func file_backend_api_resource_reference_proto_init() {
if File_backend_api_resource_reference_proto != nil {
func init() { file_backend_api_v1beta1_resource_reference_proto_init() }
func file_backend_api_v1beta1_resource_reference_proto_init() {
if File_backend_api_v1beta1_resource_reference_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_backend_api_resource_reference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_resource_reference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceKey); i {
case 0:
return &v.state
@ -348,7 +350,7 @@ func file_backend_api_resource_reference_proto_init() {
return nil
}
}
file_backend_api_resource_reference_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_resource_reference_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceReference); i {
case 0:
return &v.state
@ -365,19 +367,19 @@ func file_backend_api_resource_reference_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_resource_reference_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_resource_reference_proto_rawDesc,
NumEnums: 2,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_backend_api_resource_reference_proto_goTypes,
DependencyIndexes: file_backend_api_resource_reference_proto_depIdxs,
EnumInfos: file_backend_api_resource_reference_proto_enumTypes,
MessageInfos: file_backend_api_resource_reference_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_resource_reference_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_resource_reference_proto_depIdxs,
EnumInfos: file_backend_api_v1beta1_resource_reference_proto_enumTypes,
MessageInfos: file_backend_api_v1beta1_resource_reference_proto_msgTypes,
}.Build()
File_backend_api_resource_reference_proto = out.File
file_backend_api_resource_reference_proto_rawDesc = nil
file_backend_api_resource_reference_proto_goTypes = nil
file_backend_api_resource_reference_proto_depIdxs = nil
File_backend_api_v1beta1_resource_reference_proto = out.File
file_backend_api_v1beta1_resource_reference_proto_rawDesc = nil
file_backend_api_v1beta1_resource_reference_proto_goTypes = nil
file_backend_api_v1beta1_resource_reference_proto_depIdxs = nil
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/run.proto
// source: backend/api/v1beta1/run.proto
/*
Package go_client is a reverse proxy.
@ -80,7 +80,10 @@ func request_RunService_ListRuns_0(ctx context.Context, marshaler runtime.Marsha
var protoReq ListRunsRequest
var metadata runtime.ServerMetadata
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RunService_ListRuns_0); err != nil {
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RunService_ListRuns_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@ -550,25 +553,25 @@ func RegisterRunServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux,
}
var (
pattern_RunService_CreateRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "runs"}, ""))
pattern_RunService_CreateRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "runs"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_GetRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "run_id"}, ""))
pattern_RunService_GetRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "run_id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_ListRuns_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "runs"}, ""))
pattern_RunService_ListRuns_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1beta1", "runs"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_ArchiveRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "id"}, "archive"))
pattern_RunService_ArchiveRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "id"}, "archive", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_UnarchiveRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "id"}, "unarchive"))
pattern_RunService_UnarchiveRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "id"}, "unarchive", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_DeleteRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "id"}, ""))
pattern_RunService_DeleteRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_ReportRunMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "run_id"}, "reportMetrics"))
pattern_RunService_ReportRunMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "runs", "run_id"}, "reportMetrics", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_ReadArtifact_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6, 1, 0, 4, 1, 5, 7}, []string{"apis", "v1beta1", "runs", "run_id", "nodes", "node_id", "artifacts", "artifact_name"}, "read"))
pattern_RunService_ReadArtifact_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6, 1, 0, 4, 1, 5, 7}, []string{"apis", "v1beta1", "runs", "run_id", "nodes", "node_id", "artifacts", "artifact_name"}, "read", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_TerminateRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "runs", "run_id", "terminate"}, ""))
pattern_RunService_TerminateRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "runs", "run_id", "terminate"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_RunService_RetryRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "runs", "run_id", "retry"}, ""))
pattern_RunService_RetryRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"apis", "v1beta1", "runs", "run_id", "retry"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/task.proto
// source: backend/api/v1beta1/task.proto
package go_client
@ -69,7 +69,7 @@ type Task struct {
func (x *Task) Reset() {
*x = Task{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_task_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -82,7 +82,7 @@ func (x *Task) String() string {
func (*Task) ProtoMessage() {}
func (x *Task) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_task_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -95,7 +95,7 @@ func (x *Task) ProtoReflect() protoreflect.Message {
// Deprecated: Use Task.ProtoReflect.Descriptor instead.
func (*Task) Descriptor() ([]byte, []int) {
return file_backend_api_task_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_task_proto_rawDescGZIP(), []int{0}
}
func (x *Task) GetId() string {
@ -165,7 +165,7 @@ type CreateTaskRequest struct {
func (x *CreateTaskRequest) Reset() {
*x = CreateTaskRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_task_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -178,7 +178,7 @@ func (x *CreateTaskRequest) String() string {
func (*CreateTaskRequest) ProtoMessage() {}
func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_task_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -191,7 +191,7 @@ func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead.
func (*CreateTaskRequest) Descriptor() ([]byte, []int) {
return file_backend_api_task_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_task_proto_rawDescGZIP(), []int{1}
}
func (x *CreateTaskRequest) GetTask() *Task {
@ -229,7 +229,7 @@ type ListTasksRequest struct {
func (x *ListTasksRequest) Reset() {
*x = ListTasksRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_task_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -242,7 +242,7 @@ func (x *ListTasksRequest) String() string {
func (*ListTasksRequest) ProtoMessage() {}
func (x *ListTasksRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_task_proto_msgTypes[2]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -255,7 +255,7 @@ func (x *ListTasksRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.
func (*ListTasksRequest) Descriptor() ([]byte, []int) {
return file_backend_api_task_proto_rawDescGZIP(), []int{2}
return file_backend_api_v1beta1_task_proto_rawDescGZIP(), []int{2}
}
func (x *ListTasksRequest) GetPageToken() string {
@ -309,7 +309,7 @@ type ListTasksResponse struct {
func (x *ListTasksResponse) Reset() {
*x = ListTasksResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_task_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -322,7 +322,7 @@ func (x *ListTasksResponse) String() string {
func (*ListTasksResponse) ProtoMessage() {}
func (x *ListTasksResponse) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_task_proto_msgTypes[3]
mi := &file_backend_api_v1beta1_task_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -335,7 +335,7 @@ func (x *ListTasksResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.
func (*ListTasksResponse) Descriptor() ([]byte, []int) {
return file_backend_api_task_proto_rawDescGZIP(), []int{3}
return file_backend_api_v1beta1_task_proto_rawDescGZIP(), []int{3}
}
func (x *ListTasksResponse) GetTasks() []*Task {
@ -359,109 +359,113 @@ func (x *ListTasksResponse) GetTotalSize() int32 {
return 0
}
var File_backend_api_task_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_task_proto protoreflect.FileDescriptor
var file_backend_api_task_proto_rawDesc = []byte{
0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x61,
0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x62, 0x61,
0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xb2, 0x02, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x69, 0x70,
0x65, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a,
0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75,
0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6d, 0x6c, 0x6d, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75,
0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x6c,
0x6d, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x39, 0x0a,
0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
var file_backend_api_v1beta1_task_proto_rawDesc = []byte{
0x0a, 0x1e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x02, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x22, 0x0a,
0x0c, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6d, 0x6c, 0x6d, 0x64, 0x45,
0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0f, 0x6d, 0x6c, 0x6d, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49,
0x44, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, 0x0a, 0x0b,
0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x69,
0x73, 0x68, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x66, 0x69, 0x6e, 0x69, 0x73,
0x68, 0x65, 0x64, 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70,
0x72, 0x69, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67,
0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x22, 0x32, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x04,
0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xc7, 0x01, 0x0a, 0x10,
0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x0a, 0x07,
0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,
0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x46, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18,
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a,
0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x7b, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73,
0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x74, 0x61,
0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x66,
0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x69, 0x6e,
0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x22, 0x36, 0x0a, 0x11, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x21, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x04, 0x74,
0x61, 0x73, 0x6b, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
0x53, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x4a, 0x0a,
0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
0x6e, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x4b, 0x65, 0x79, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66,
0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
0x72, 0x22, 0x7f, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69,
0x7a, 0x65, 0x32, 0xbc, 0x01, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73,
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x09, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54,
0x61, 0x73, 0x6b, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x14, 0x2f, 0x61, 0x70,
0x69, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b,
0x73, 0x3a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x54,
0x61, 0x73, 0x6b, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54,
0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x7a, 0x65, 0x32, 0xcc, 0x01, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x12, 0x1a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x22, 0x82, 0xd3, 0xe4,
0x93, 0x02, 0x1c, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
0x68, 0x61, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x12,
0x60, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x19, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70,
0x69, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b,
0x73, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x73, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e,
0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67,
0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_backend_api_task_proto_rawDescOnce sync.Once
file_backend_api_task_proto_rawDescData = file_backend_api_task_proto_rawDesc
file_backend_api_v1beta1_task_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_task_proto_rawDescData = file_backend_api_v1beta1_task_proto_rawDesc
)
func file_backend_api_task_proto_rawDescGZIP() []byte {
file_backend_api_task_proto_rawDescOnce.Do(func() {
file_backend_api_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_task_proto_rawDescData)
func file_backend_api_v1beta1_task_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_task_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_task_proto_rawDescData)
})
return file_backend_api_task_proto_rawDescData
return file_backend_api_v1beta1_task_proto_rawDescData
}
var file_backend_api_task_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_backend_api_task_proto_goTypes = []interface{}{
(*Task)(nil), // 0: api.Task
(*CreateTaskRequest)(nil), // 1: api.CreateTaskRequest
(*ListTasksRequest)(nil), // 2: api.ListTasksRequest
(*ListTasksResponse)(nil), // 3: api.ListTasksResponse
var file_backend_api_v1beta1_task_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_backend_api_v1beta1_task_proto_goTypes = []interface{}{
(*Task)(nil), // 0: v1beta1.Task
(*CreateTaskRequest)(nil), // 1: v1beta1.CreateTaskRequest
(*ListTasksRequest)(nil), // 2: v1beta1.ListTasksRequest
(*ListTasksResponse)(nil), // 3: v1beta1.ListTasksResponse
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*ResourceKey)(nil), // 5: api.ResourceKey
(*ResourceKey)(nil), // 5: v1beta1.ResourceKey
}
var file_backend_api_task_proto_depIdxs = []int32{
4, // 0: api.Task.created_at:type_name -> google.protobuf.Timestamp
4, // 1: api.Task.finished_at:type_name -> google.protobuf.Timestamp
0, // 2: api.CreateTaskRequest.task:type_name -> api.Task
5, // 3: api.ListTasksRequest.resource_reference_key:type_name -> api.ResourceKey
0, // 4: api.ListTasksResponse.tasks:type_name -> api.Task
1, // 5: api.TaskService.CreateTask:input_type -> api.CreateTaskRequest
2, // 6: api.TaskService.ListTasks:input_type -> api.ListTasksRequest
0, // 7: api.TaskService.CreateTask:output_type -> api.Task
3, // 8: api.TaskService.ListTasks:output_type -> api.ListTasksResponse
var file_backend_api_v1beta1_task_proto_depIdxs = []int32{
4, // 0: v1beta1.Task.created_at:type_name -> google.protobuf.Timestamp
4, // 1: v1beta1.Task.finished_at:type_name -> google.protobuf.Timestamp
0, // 2: v1beta1.CreateTaskRequest.task:type_name -> v1beta1.Task
5, // 3: v1beta1.ListTasksRequest.resource_reference_key:type_name -> v1beta1.ResourceKey
0, // 4: v1beta1.ListTasksResponse.tasks:type_name -> v1beta1.Task
1, // 5: v1beta1.TaskService.CreateTask:input_type -> v1beta1.CreateTaskRequest
2, // 6: v1beta1.TaskService.ListTasks:input_type -> v1beta1.ListTasksRequest
0, // 7: v1beta1.TaskService.CreateTask:output_type -> v1beta1.Task
3, // 8: v1beta1.TaskService.ListTasks:output_type -> v1beta1.ListTasksResponse
7, // [7:9] is the sub-list for method output_type
5, // [5:7] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
@ -469,14 +473,14 @@ var file_backend_api_task_proto_depIdxs = []int32{
0, // [0:5] is the sub-list for field type_name
}
func init() { file_backend_api_task_proto_init() }
func file_backend_api_task_proto_init() {
if File_backend_api_task_proto != nil {
func init() { file_backend_api_v1beta1_task_proto_init() }
func file_backend_api_v1beta1_task_proto_init() {
if File_backend_api_v1beta1_task_proto != nil {
return
}
file_backend_api_resource_reference_proto_init()
file_backend_api_v1beta1_resource_reference_proto_init()
if !protoimpl.UnsafeEnabled {
file_backend_api_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Task); i {
case 0:
return &v.state
@ -488,7 +492,7 @@ func file_backend_api_task_proto_init() {
return nil
}
}
file_backend_api_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateTaskRequest); i {
case 0:
return &v.state
@ -500,7 +504,7 @@ func file_backend_api_task_proto_init() {
return nil
}
}
file_backend_api_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListTasksRequest); i {
case 0:
return &v.state
@ -512,7 +516,7 @@ func file_backend_api_task_proto_init() {
return nil
}
}
file_backend_api_task_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_task_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListTasksResponse); i {
case 0:
return &v.state
@ -529,20 +533,20 @@ func file_backend_api_task_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_task_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_task_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_task_proto_goTypes,
DependencyIndexes: file_backend_api_task_proto_depIdxs,
MessageInfos: file_backend_api_task_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_task_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_task_proto_depIdxs,
MessageInfos: file_backend_api_v1beta1_task_proto_msgTypes,
}.Build()
File_backend_api_task_proto = out.File
file_backend_api_task_proto_rawDesc = nil
file_backend_api_task_proto_goTypes = nil
file_backend_api_task_proto_depIdxs = nil
File_backend_api_v1beta1_task_proto = out.File
file_backend_api_v1beta1_task_proto_rawDesc = nil
file_backend_api_v1beta1_task_proto_goTypes = nil
file_backend_api_v1beta1_task_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -573,7 +577,7 @@ func NewTaskServiceClient(cc grpc.ClientConnInterface) TaskServiceClient {
func (c *taskServiceClient) CreateTask(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*Task, error) {
out := new(Task)
err := c.cc.Invoke(ctx, "/api.TaskService/CreateTask", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.TaskService/CreateTask", in, out, opts...)
if err != nil {
return nil, err
}
@ -582,7 +586,7 @@ func (c *taskServiceClient) CreateTask(ctx context.Context, in *CreateTaskReques
func (c *taskServiceClient) ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) {
out := new(ListTasksResponse)
err := c.cc.Invoke(ctx, "/api.TaskService/ListTasks", in, out, opts...)
err := c.cc.Invoke(ctx, "/v1beta1.TaskService/ListTasks", in, out, opts...)
if err != nil {
return nil, err
}
@ -622,7 +626,7 @@ func _TaskService_CreateTask_Handler(srv interface{}, ctx context.Context, dec f
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.TaskService/CreateTask",
FullMethod: "/v1beta1.TaskService/CreateTask",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TaskServiceServer).CreateTask(ctx, req.(*CreateTaskRequest))
@ -640,7 +644,7 @@ func _TaskService_ListTasks_Handler(srv interface{}, ctx context.Context, dec fu
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.TaskService/ListTasks",
FullMethod: "/v1beta1.TaskService/ListTasks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TaskServiceServer).ListTasks(ctx, req.(*ListTasksRequest))
@ -649,7 +653,7 @@ func _TaskService_ListTasks_Handler(srv interface{}, ctx context.Context, dec fu
}
var _TaskService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.TaskService",
ServiceName: "v1beta1.TaskService",
HandlerType: (*TaskServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -662,5 +666,5 @@ var _TaskService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/task.proto",
Metadata: "backend/api/v1beta1/task.proto",
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/task.proto
// source: backend/api/v1beta1/task.proto
/*
Package go_client is a reverse proxy.
@ -53,7 +53,10 @@ func request_TaskService_ListTasks_0(ctx context.Context, marshaler runtime.Mars
var protoReq ListTasksRequest
var metadata runtime.ServerMetadata
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_TaskService_ListTasks_0); err != nil {
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_TaskService_ListTasks_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@ -144,9 +147,9 @@ func RegisterTaskServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
var (
pattern_TaskService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1alpha1", "tasks"}, ""))
pattern_TaskService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1alpha1", "tasks"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_TaskService_ListTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1alpha1", "tasks"}, ""))
pattern_TaskService_ListTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"apis", "v1alpha1", "tasks"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -16,7 +16,7 @@
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: backend/api/visualization.proto
// source: backend/api/v1beta1/visualization.proto
package go_client
@ -82,11 +82,11 @@ func (x Visualization_Type) String() string {
}
func (Visualization_Type) Descriptor() protoreflect.EnumDescriptor {
return file_backend_api_visualization_proto_enumTypes[0].Descriptor()
return file_backend_api_v1beta1_visualization_proto_enumTypes[0].Descriptor()
}
func (Visualization_Type) Type() protoreflect.EnumType {
return &file_backend_api_visualization_proto_enumTypes[0]
return &file_backend_api_v1beta1_visualization_proto_enumTypes[0]
}
func (x Visualization_Type) Number() protoreflect.EnumNumber {
@ -95,7 +95,7 @@ func (x Visualization_Type) Number() protoreflect.EnumNumber {
// Deprecated: Use Visualization_Type.Descriptor instead.
func (Visualization_Type) EnumDescriptor() ([]byte, []int) {
return file_backend_api_visualization_proto_rawDescGZIP(), []int{1, 0}
return file_backend_api_v1beta1_visualization_proto_rawDescGZIP(), []int{1, 0}
}
// Create visualization by providing the type of visualization that is desired
@ -113,7 +113,7 @@ type CreateVisualizationRequest struct {
func (x *CreateVisualizationRequest) Reset() {
*x = CreateVisualizationRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_visualization_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_visualization_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -126,7 +126,7 @@ func (x *CreateVisualizationRequest) String() string {
func (*CreateVisualizationRequest) ProtoMessage() {}
func (x *CreateVisualizationRequest) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_visualization_proto_msgTypes[0]
mi := &file_backend_api_v1beta1_visualization_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -139,7 +139,7 @@ func (x *CreateVisualizationRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateVisualizationRequest.ProtoReflect.Descriptor instead.
func (*CreateVisualizationRequest) Descriptor() ([]byte, []int) {
return file_backend_api_visualization_proto_rawDescGZIP(), []int{0}
return file_backend_api_v1beta1_visualization_proto_rawDescGZIP(), []int{0}
}
func (x *CreateVisualizationRequest) GetVisualization() *Visualization {
@ -161,7 +161,7 @@ type Visualization struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type Visualization_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api.Visualization_Type" json:"type,omitempty"`
Type Visualization_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v1beta1.Visualization_Type" json:"type,omitempty"`
// Path pattern of input data to be used during generation of visualizations.
// This is required when creating the pipeline through CreateVisualization
// API.
@ -182,7 +182,7 @@ type Visualization struct {
func (x *Visualization) Reset() {
*x = Visualization{}
if protoimpl.UnsafeEnabled {
mi := &file_backend_api_visualization_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_visualization_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -195,7 +195,7 @@ func (x *Visualization) String() string {
func (*Visualization) ProtoMessage() {}
func (x *Visualization) ProtoReflect() protoreflect.Message {
mi := &file_backend_api_visualization_proto_msgTypes[1]
mi := &file_backend_api_v1beta1_visualization_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -208,7 +208,7 @@ func (x *Visualization) ProtoReflect() protoreflect.Message {
// Deprecated: Use Visualization.ProtoReflect.Descriptor instead.
func (*Visualization) Descriptor() ([]byte, []int) {
return file_backend_api_visualization_proto_rawDescGZIP(), []int{1}
return file_backend_api_v1beta1_visualization_proto_rawDescGZIP(), []int{1}
}
func (x *Visualization) GetType() Visualization_Type {
@ -246,55 +246,58 @@ func (x *Visualization) GetError() string {
return ""
}
var File_backend_api_visualization_proto protoreflect.FileDescriptor
var File_backend_api_v1beta1_visualization_proto protoreflect.FileDescriptor
var file_backend_api_visualization_proto_rawDesc = []byte{
0x0a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x69,
0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65,
0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x1a, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0d, 0x76, 0x69, 0x73,
0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
0x65, 0x22, 0xde, 0x01, 0x0a, 0x0d, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x72, 0x67, 0x75,
0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x72, 0x67,
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x74, 0x6d, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x22, 0x40, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x4f, 0x43, 0x5f,
0x43, 0x55, 0x52, 0x56, 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x46, 0x44, 0x56, 0x10,
0x01, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x46, 0x4d, 0x41, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x54,
0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d,
0x10, 0x04, 0x32, 0xa4, 0x01, 0x0a, 0x14, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x13,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
var file_backend_api_v1beta1_visualization_proto_rawDesc = []byte{
0x0a, 0x27, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77,
0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e,
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x78, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69,
0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a,
0x0d, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56,
0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x76, 0x69,
0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xe2, 0x01, 0x0a, 0x0d, 0x56, 0x69,
0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x74,
0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e,
0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x68, 0x74, 0x6d, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x04,
0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x4f, 0x43, 0x5f, 0x43, 0x55, 0x52, 0x56,
0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x46, 0x44, 0x56, 0x10, 0x01, 0x12, 0x08, 0x0a,
0x04, 0x54, 0x46, 0x4d, 0x41, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x41, 0x42, 0x4c, 0x45,
0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x04, 0x32, 0xac,
0x01, 0x0a, 0x14, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x23, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x75, 0x61,
0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39,
0x22, 0x28, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x7d, 0x3a, 0x0d, 0x76, 0x69, 0x73, 0x75,
0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x85, 0x01, 0x5a, 0x33, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f,
0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x63, 0x6b,
0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
0x74, 0x92, 0x41, 0x4d, 0x52, 0x1c, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12,
0x11, 0x12, 0x0f, 0x0a, 0x0d, 0x1a, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56,
0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3f, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x39, 0x22, 0x28, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2f, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x7d, 0x3a, 0x0d,
0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x91, 0x01,
0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x62,
0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2f,
0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2f, 0x67, 0x6f, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x92, 0x41, 0x51,
0x52, 0x20, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x12, 0x13, 0x0a,
0x11, 0x1a, 0x0f, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x5a, 0x1f, 0x0a, 0x1d, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x13,
0x08, 0x02, 0x1a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x20, 0x02, 0x62, 0x0c, 0x0a, 0x0a, 0x0a, 0x06, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12,
@ -302,29 +305,29 @@ var file_backend_api_visualization_proto_rawDesc = []byte{
}
var (
file_backend_api_visualization_proto_rawDescOnce sync.Once
file_backend_api_visualization_proto_rawDescData = file_backend_api_visualization_proto_rawDesc
file_backend_api_v1beta1_visualization_proto_rawDescOnce sync.Once
file_backend_api_v1beta1_visualization_proto_rawDescData = file_backend_api_v1beta1_visualization_proto_rawDesc
)
func file_backend_api_visualization_proto_rawDescGZIP() []byte {
file_backend_api_visualization_proto_rawDescOnce.Do(func() {
file_backend_api_visualization_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_visualization_proto_rawDescData)
func file_backend_api_v1beta1_visualization_proto_rawDescGZIP() []byte {
file_backend_api_v1beta1_visualization_proto_rawDescOnce.Do(func() {
file_backend_api_v1beta1_visualization_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_api_v1beta1_visualization_proto_rawDescData)
})
return file_backend_api_visualization_proto_rawDescData
return file_backend_api_v1beta1_visualization_proto_rawDescData
}
var file_backend_api_visualization_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_visualization_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_visualization_proto_goTypes = []interface{}{
(Visualization_Type)(0), // 0: api.Visualization.Type
(*CreateVisualizationRequest)(nil), // 1: api.CreateVisualizationRequest
(*Visualization)(nil), // 2: api.Visualization
var file_backend_api_v1beta1_visualization_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_backend_api_v1beta1_visualization_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_backend_api_v1beta1_visualization_proto_goTypes = []interface{}{
(Visualization_Type)(0), // 0: v1beta1.Visualization.Type
(*CreateVisualizationRequest)(nil), // 1: v1beta1.CreateVisualizationRequest
(*Visualization)(nil), // 2: v1beta1.Visualization
}
var file_backend_api_visualization_proto_depIdxs = []int32{
2, // 0: api.CreateVisualizationRequest.visualization:type_name -> api.Visualization
0, // 1: api.Visualization.type:type_name -> api.Visualization.Type
1, // 2: api.VisualizationService.CreateVisualization:input_type -> api.CreateVisualizationRequest
2, // 3: api.VisualizationService.CreateVisualization:output_type -> api.Visualization
var file_backend_api_v1beta1_visualization_proto_depIdxs = []int32{
2, // 0: v1beta1.CreateVisualizationRequest.visualization:type_name -> v1beta1.Visualization
0, // 1: v1beta1.Visualization.type:type_name -> v1beta1.Visualization.Type
1, // 2: v1beta1.VisualizationService.CreateVisualization:input_type -> v1beta1.CreateVisualizationRequest
2, // 3: v1beta1.VisualizationService.CreateVisualization:output_type -> v1beta1.Visualization
3, // [3:4] is the sub-list for method output_type
2, // [2:3] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
@ -332,14 +335,14 @@ var file_backend_api_visualization_proto_depIdxs = []int32{
0, // [0:2] is the sub-list for field type_name
}
func init() { file_backend_api_visualization_proto_init() }
func file_backend_api_visualization_proto_init() {
if File_backend_api_visualization_proto != nil {
func init() { file_backend_api_v1beta1_visualization_proto_init() }
func file_backend_api_v1beta1_visualization_proto_init() {
if File_backend_api_v1beta1_visualization_proto != nil {
return
}
file_backend_api_error_proto_init()
file_backend_api_v1beta1_error_proto_init()
if !protoimpl.UnsafeEnabled {
file_backend_api_visualization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_visualization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateVisualizationRequest); i {
case 0:
return &v.state
@ -351,7 +354,7 @@ func file_backend_api_visualization_proto_init() {
return nil
}
}
file_backend_api_visualization_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_backend_api_v1beta1_visualization_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Visualization); i {
case 0:
return &v.state
@ -368,21 +371,21 @@ func file_backend_api_visualization_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_backend_api_visualization_proto_rawDesc,
RawDescriptor: file_backend_api_v1beta1_visualization_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_backend_api_visualization_proto_goTypes,
DependencyIndexes: file_backend_api_visualization_proto_depIdxs,
EnumInfos: file_backend_api_visualization_proto_enumTypes,
MessageInfos: file_backend_api_visualization_proto_msgTypes,
GoTypes: file_backend_api_v1beta1_visualization_proto_goTypes,
DependencyIndexes: file_backend_api_v1beta1_visualization_proto_depIdxs,
EnumInfos: file_backend_api_v1beta1_visualization_proto_enumTypes,
MessageInfos: file_backend_api_v1beta1_visualization_proto_msgTypes,
}.Build()
File_backend_api_visualization_proto = out.File
file_backend_api_visualization_proto_rawDesc = nil
file_backend_api_visualization_proto_goTypes = nil
file_backend_api_visualization_proto_depIdxs = nil
File_backend_api_v1beta1_visualization_proto = out.File
file_backend_api_v1beta1_visualization_proto_rawDesc = nil
file_backend_api_v1beta1_visualization_proto_goTypes = nil
file_backend_api_v1beta1_visualization_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -410,7 +413,7 @@ func NewVisualizationServiceClient(cc grpc.ClientConnInterface) VisualizationSer
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...)
err := c.cc.Invoke(ctx, "/v1beta1.VisualizationService/CreateVisualization", in, out, opts...)
if err != nil {
return nil, err
}
@ -444,7 +447,7 @@ func _VisualizationService_CreateVisualization_Handler(srv interface{}, ctx cont
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.VisualizationService/CreateVisualization",
FullMethod: "/v1beta1.VisualizationService/CreateVisualization",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VisualizationServiceServer).CreateVisualization(ctx, req.(*CreateVisualizationRequest))
@ -453,7 +456,7 @@ func _VisualizationService_CreateVisualization_Handler(srv interface{}, ctx cont
}
var _VisualizationService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.VisualizationService",
ServiceName: "v1beta1.VisualizationService",
HandlerType: (*VisualizationServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -462,5 +465,5 @@ var _VisualizationService_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "backend/api/visualization.proto",
Metadata: "backend/api/v1beta1/visualization.proto",
}

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: backend/api/visualization.proto
// source: backend/api/v1beta1/visualization.proto
/*
Package go_client is a reverse proxy.
@ -125,7 +125,7 @@ func RegisterVisualizationServiceHandlerClient(ctx context.Context, mux *runtime
}
var (
pattern_VisualizationService_CreateVisualization_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "visualizations", "namespace"}, ""))
pattern_VisualizationService_CreateVisualization_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"apis", "v1beta1", "visualizations", "namespace"}, "", runtime.AssumeColonVerbOpt(true)))
)
var (

View File

@ -11,7 +11,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
"github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_client/experiment_service"
"github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_client/experiment_service"
)
// Default experiment HTTP client.

View File

@ -13,7 +13,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
experiment_model "github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model"
experiment_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_model"
)
// ArchiveExperimentReader is a Reader for the ArchiveExperiment structure.
@ -85,7 +85,7 @@ ArchiveExperimentDefault archive experiment default
type ArchiveExperimentDefault struct {
_statusCode int
Payload *experiment_model.APIStatus
Payload *experiment_model.V1beta1Status
}
// Code gets the status code for the archive experiment default response
@ -99,7 +99,7 @@ func (o *ArchiveExperimentDefault) Error() string {
func (o *ArchiveExperimentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIStatus)
o.Payload = new(experiment_model.V1beta1Status)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {

View File

@ -16,7 +16,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
experiment_model "github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model"
experiment_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_model"
)
// NewCreateExperimentParams creates a new CreateExperimentParams object
@ -67,7 +67,7 @@ type CreateExperimentParams struct {
The experiment to be created.
*/
Body *experiment_model.APIExperiment
Body *experiment_model.V1beta1Experiment
timeout time.Duration
Context context.Context
@ -108,13 +108,13 @@ func (o *CreateExperimentParams) SetHTTPClient(client *http.Client) {
}
// WithBody adds the body to the create experiment params
func (o *CreateExperimentParams) WithBody(body *experiment_model.APIExperiment) *CreateExperimentParams {
func (o *CreateExperimentParams) WithBody(body *experiment_model.V1beta1Experiment) *CreateExperimentParams {
o.SetBody(body)
return o
}
// SetBody adds the body to the create experiment params
func (o *CreateExperimentParams) SetBody(body *experiment_model.APIExperiment) {
func (o *CreateExperimentParams) SetBody(body *experiment_model.V1beta1Experiment) {
o.Body = body
}

View File

@ -13,7 +13,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
experiment_model "github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model"
experiment_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_model"
)
// CreateExperimentReader is a Reader for the CreateExperiment structure.
@ -54,7 +54,7 @@ func NewCreateExperimentOK() *CreateExperimentOK {
A successful response.
*/
type CreateExperimentOK struct {
Payload *experiment_model.APIExperiment
Payload *experiment_model.V1beta1Experiment
}
func (o *CreateExperimentOK) Error() string {
@ -63,7 +63,7 @@ func (o *CreateExperimentOK) Error() string {
func (o *CreateExperimentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIExperiment)
o.Payload = new(experiment_model.V1beta1Experiment)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@ -87,7 +87,7 @@ CreateExperimentDefault create experiment default
type CreateExperimentDefault struct {
_statusCode int
Payload *experiment_model.APIStatus
Payload *experiment_model.V1beta1Status
}
// Code gets the status code for the create experiment default response
@ -101,7 +101,7 @@ func (o *CreateExperimentDefault) Error() string {
func (o *CreateExperimentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIStatus)
o.Payload = new(experiment_model.V1beta1Status)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {

View File

@ -13,7 +13,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
experiment_model "github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model"
experiment_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_model"
)
// DeleteExperimentReader is a Reader for the DeleteExperiment structure.
@ -85,7 +85,7 @@ DeleteExperimentDefault delete experiment default
type DeleteExperimentDefault struct {
_statusCode int
Payload *experiment_model.APIStatus
Payload *experiment_model.V1beta1Status
}
// Code gets the status code for the delete experiment default response
@ -99,7 +99,7 @@ func (o *DeleteExperimentDefault) Error() string {
func (o *DeleteExperimentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIStatus)
o.Payload = new(experiment_model.V1beta1Status)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {

View File

@ -13,7 +13,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
experiment_model "github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model"
experiment_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_model"
)
// GetExperimentReader is a Reader for the GetExperiment structure.
@ -54,7 +54,7 @@ func NewGetExperimentOK() *GetExperimentOK {
A successful response.
*/
type GetExperimentOK struct {
Payload *experiment_model.APIExperiment
Payload *experiment_model.V1beta1Experiment
}
func (o *GetExperimentOK) Error() string {
@ -63,7 +63,7 @@ func (o *GetExperimentOK) Error() string {
func (o *GetExperimentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIExperiment)
o.Payload = new(experiment_model.V1beta1Experiment)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@ -87,7 +87,7 @@ GetExperimentDefault get experiment default
type GetExperimentDefault struct {
_statusCode int
Payload *experiment_model.APIStatus
Payload *experiment_model.V1beta1Status
}
// Code gets the status code for the get experiment default response
@ -101,7 +101,7 @@ func (o *GetExperimentDefault) Error() string {
func (o *GetExperimentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIStatus)
o.Payload = new(experiment_model.V1beta1Status)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {

View File

@ -13,7 +13,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
experiment_model "github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model"
experiment_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_model"
)
// ListExperimentReader is a Reader for the ListExperiment structure.
@ -54,7 +54,7 @@ func NewListExperimentOK() *ListExperimentOK {
A successful response.
*/
type ListExperimentOK struct {
Payload *experiment_model.APIListExperimentsResponse
Payload *experiment_model.V1beta1ListExperimentsResponse
}
func (o *ListExperimentOK) Error() string {
@ -63,7 +63,7 @@ func (o *ListExperimentOK) Error() string {
func (o *ListExperimentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIListExperimentsResponse)
o.Payload = new(experiment_model.V1beta1ListExperimentsResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@ -87,7 +87,7 @@ ListExperimentDefault list experiment default
type ListExperimentDefault struct {
_statusCode int
Payload *experiment_model.APIStatus
Payload *experiment_model.V1beta1Status
}
// Code gets the status code for the list experiment default response
@ -101,7 +101,7 @@ func (o *ListExperimentDefault) Error() string {
func (o *ListExperimentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIStatus)
o.Payload = new(experiment_model.V1beta1Status)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {

View File

@ -13,7 +13,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
experiment_model "github.com/kubeflow/pipelines/backend/api/go_http_client/experiment_model"
experiment_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/experiment_model"
)
// UnarchiveExperimentReader is a Reader for the UnarchiveExperiment structure.
@ -85,7 +85,7 @@ UnarchiveExperimentDefault unarchive experiment default
type UnarchiveExperimentDefault struct {
_statusCode int
Payload *experiment_model.APIStatus
Payload *experiment_model.V1beta1Status
}
// Code gets the status code for the unarchive experiment default response
@ -99,7 +99,7 @@ func (o *UnarchiveExperimentDefault) Error() string {
func (o *UnarchiveExperimentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(experiment_model.APIStatus)
o.Payload = new(experiment_model.V1beta1Status)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {

View File

@ -15,9 +15,9 @@ import (
"github.com/go-openapi/validate"
)
// APIExperiment api experiment
// swagger:model apiExperiment
type APIExperiment struct {
// V1beta1Experiment v1beta1 experiment
// swagger:model v1beta1Experiment
type V1beta1Experiment struct {
// Output. The time that the experiment created.
// Format: date-time
@ -34,14 +34,14 @@ type APIExperiment struct {
// Optional input field. Specify which resource this run belongs to.
// For Experiment, the only valid resource reference is a single Namespace.
ResourceReferences []*APIResourceReference `json:"resource_references"`
ResourceReferences []*V1beta1ResourceReference `json:"resource_references"`
// Output. Specifies whether this experiment is in archived or available state.
StorageState APIExperimentStorageState `json:"storage_state,omitempty"`
StorageState V1beta1ExperimentStorageState `json:"storage_state,omitempty"`
}
// Validate validates this api experiment
func (m *APIExperiment) Validate(formats strfmt.Registry) error {
// Validate validates this v1beta1 experiment
func (m *V1beta1Experiment) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCreatedAt(formats); err != nil {
@ -62,7 +62,7 @@ func (m *APIExperiment) Validate(formats strfmt.Registry) error {
return nil
}
func (m *APIExperiment) validateCreatedAt(formats strfmt.Registry) error {
func (m *V1beta1Experiment) validateCreatedAt(formats strfmt.Registry) error {
if swag.IsZero(m.CreatedAt) { // not required
return nil
@ -75,7 +75,7 @@ func (m *APIExperiment) validateCreatedAt(formats strfmt.Registry) error {
return nil
}
func (m *APIExperiment) validateResourceReferences(formats strfmt.Registry) error {
func (m *V1beta1Experiment) validateResourceReferences(formats strfmt.Registry) error {
if swag.IsZero(m.ResourceReferences) { // not required
return nil
@ -100,7 +100,7 @@ func (m *APIExperiment) validateResourceReferences(formats strfmt.Registry) erro
return nil
}
func (m *APIExperiment) validateStorageState(formats strfmt.Registry) error {
func (m *V1beta1Experiment) validateStorageState(formats strfmt.Registry) error {
if swag.IsZero(m.StorageState) { // not required
return nil
@ -117,7 +117,7 @@ func (m *APIExperiment) validateStorageState(formats strfmt.Registry) error {
}
// MarshalBinary interface implementation
func (m *APIExperiment) MarshalBinary() ([]byte, error) {
func (m *V1beta1Experiment) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@ -125,8 +125,8 @@ func (m *APIExperiment) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
func (m *APIExperiment) UnmarshalBinary(b []byte) error {
var res APIExperiment
func (m *V1beta1Experiment) UnmarshalBinary(b []byte) error {
var res V1beta1Experiment
if err := swag.ReadJSON(b, &res); err != nil {
return err
}

View File

@ -0,0 +1,66 @@
// Code generated by go-swagger; DO NOT EDIT.
package experiment_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// V1beta1ExperimentStorageState v1beta1 experiment storage state
// swagger:model v1beta1ExperimentStorageState
type V1beta1ExperimentStorageState string
const (
// V1beta1ExperimentStorageStateSTORAGESTATEUNSPECIFIED captures enum value "STORAGESTATE_UNSPECIFIED"
V1beta1ExperimentStorageStateSTORAGESTATEUNSPECIFIED V1beta1ExperimentStorageState = "STORAGESTATE_UNSPECIFIED"
// V1beta1ExperimentStorageStateSTORAGESTATEAVAILABLE captures enum value "STORAGESTATE_AVAILABLE"
V1beta1ExperimentStorageStateSTORAGESTATEAVAILABLE V1beta1ExperimentStorageState = "STORAGESTATE_AVAILABLE"
// V1beta1ExperimentStorageStateSTORAGESTATEARCHIVED captures enum value "STORAGESTATE_ARCHIVED"
V1beta1ExperimentStorageStateSTORAGESTATEARCHIVED V1beta1ExperimentStorageState = "STORAGESTATE_ARCHIVED"
)
// for schema
var v1beta1ExperimentStorageStateEnum []interface{}
func init() {
var res []V1beta1ExperimentStorageState
if err := json.Unmarshal([]byte(`["STORAGESTATE_UNSPECIFIED","STORAGESTATE_AVAILABLE","STORAGESTATE_ARCHIVED"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
v1beta1ExperimentStorageStateEnum = append(v1beta1ExperimentStorageStateEnum, v)
}
}
func (m V1beta1ExperimentStorageState) validateV1beta1ExperimentStorageStateEnum(path, location string, value V1beta1ExperimentStorageState) error {
if err := validate.Enum(path, location, value, v1beta1ExperimentStorageStateEnum); err != nil {
return err
}
return nil
}
// Validate validates this v1beta1 experiment storage state
func (m V1beta1ExperimentStorageState) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateV1beta1ExperimentStorageStateEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -14,12 +14,12 @@ import (
"github.com/go-openapi/swag"
)
// APIListExperimentsResponse api list experiments response
// swagger:model apiListExperimentsResponse
type APIListExperimentsResponse struct {
// V1beta1ListExperimentsResponse v1beta1 list experiments response
// swagger:model v1beta1ListExperimentsResponse
type V1beta1ListExperimentsResponse struct {
// A list of experiments returned.
Experiments []*APIExperiment `json:"experiments"`
Experiments []*V1beta1Experiment `json:"experiments"`
// The token to list the next page of experiments.
NextPageToken string `json:"next_page_token,omitempty"`
@ -28,8 +28,8 @@ type APIListExperimentsResponse struct {
TotalSize int32 `json:"total_size,omitempty"`
}
// Validate validates this api list experiments response
func (m *APIListExperimentsResponse) Validate(formats strfmt.Registry) error {
// Validate validates this v1beta1 list experiments response
func (m *V1beta1ListExperimentsResponse) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateExperiments(formats); err != nil {
@ -42,7 +42,7 @@ func (m *APIListExperimentsResponse) Validate(formats strfmt.Registry) error {
return nil
}
func (m *APIListExperimentsResponse) validateExperiments(formats strfmt.Registry) error {
func (m *V1beta1ListExperimentsResponse) validateExperiments(formats strfmt.Registry) error {
if swag.IsZero(m.Experiments) { // not required
return nil
@ -68,7 +68,7 @@ func (m *APIListExperimentsResponse) validateExperiments(formats strfmt.Registry
}
// MarshalBinary interface implementation
func (m *APIListExperimentsResponse) MarshalBinary() ([]byte, error) {
func (m *V1beta1ListExperimentsResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@ -76,8 +76,8 @@ func (m *APIListExperimentsResponse) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
func (m *APIListExperimentsResponse) UnmarshalBinary(b []byte) error {
var res APIListExperimentsResponse
func (m *V1beta1ListExperimentsResponse) UnmarshalBinary(b []byte) error {
var res V1beta1ListExperimentsResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}

View File

@ -0,0 +1,66 @@
// Code generated by go-swagger; DO NOT EDIT.
package experiment_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// V1beta1Relationship v1beta1 relationship
// swagger:model v1beta1Relationship
type V1beta1Relationship string
const (
// V1beta1RelationshipUNKNOWNRELATIONSHIP captures enum value "UNKNOWN_RELATIONSHIP"
V1beta1RelationshipUNKNOWNRELATIONSHIP V1beta1Relationship = "UNKNOWN_RELATIONSHIP"
// V1beta1RelationshipOWNER captures enum value "OWNER"
V1beta1RelationshipOWNER V1beta1Relationship = "OWNER"
// V1beta1RelationshipCREATOR captures enum value "CREATOR"
V1beta1RelationshipCREATOR V1beta1Relationship = "CREATOR"
)
// for schema
var v1beta1RelationshipEnum []interface{}
func init() {
var res []V1beta1Relationship
if err := json.Unmarshal([]byte(`["UNKNOWN_RELATIONSHIP","OWNER","CREATOR"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
v1beta1RelationshipEnum = append(v1beta1RelationshipEnum, v)
}
}
func (m V1beta1Relationship) validateV1beta1RelationshipEnum(path, location string, value V1beta1Relationship) error {
if err := validate.Enum(path, location, value, v1beta1RelationshipEnum); err != nil {
return err
}
return nil
}
// Validate validates this v1beta1 relationship
func (m V1beta1Relationship) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateV1beta1RelationshipEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -12,19 +12,19 @@ import (
"github.com/go-openapi/swag"
)
// APIResourceKey api resource key
// swagger:model apiResourceKey
type APIResourceKey struct {
// V1beta1ResourceKey v1beta1 resource key
// swagger:model v1beta1ResourceKey
type V1beta1ResourceKey struct {
// The ID of the resource that referred to.
ID string `json:"id,omitempty"`
// The type of the resource that referred to.
Type APIResourceType `json:"type,omitempty"`
Type V1beta1ResourceType `json:"type,omitempty"`
}
// Validate validates this api resource key
func (m *APIResourceKey) Validate(formats strfmt.Registry) error {
// Validate validates this v1beta1 resource key
func (m *V1beta1ResourceKey) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateType(formats); err != nil {
@ -37,7 +37,7 @@ func (m *APIResourceKey) Validate(formats strfmt.Registry) error {
return nil
}
func (m *APIResourceKey) validateType(formats strfmt.Registry) error {
func (m *V1beta1ResourceKey) validateType(formats strfmt.Registry) error {
if swag.IsZero(m.Type) { // not required
return nil
@ -54,7 +54,7 @@ func (m *APIResourceKey) validateType(formats strfmt.Registry) error {
}
// MarshalBinary interface implementation
func (m *APIResourceKey) MarshalBinary() ([]byte, error) {
func (m *V1beta1ResourceKey) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@ -62,8 +62,8 @@ func (m *APIResourceKey) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
func (m *APIResourceKey) UnmarshalBinary(b []byte) error {
var res APIResourceKey
func (m *V1beta1ResourceKey) UnmarshalBinary(b []byte) error {
var res V1beta1ResourceKey
if err := swag.ReadJSON(b, &res); err != nil {
return err
}

View File

@ -12,22 +12,22 @@ import (
"github.com/go-openapi/swag"
)
// APIResourceReference api resource reference
// swagger:model apiResourceReference
type APIResourceReference struct {
// V1beta1ResourceReference v1beta1 resource reference
// swagger:model v1beta1ResourceReference
type V1beta1ResourceReference struct {
// key
Key *APIResourceKey `json:"key,omitempty"`
Key *V1beta1ResourceKey `json:"key,omitempty"`
// The name of the resource that referred to.
Name string `json:"name,omitempty"`
// Required field. The relationship from referred resource to the object.
Relationship APIRelationship `json:"relationship,omitempty"`
Relationship V1beta1Relationship `json:"relationship,omitempty"`
}
// Validate validates this api resource reference
func (m *APIResourceReference) Validate(formats strfmt.Registry) error {
// Validate validates this v1beta1 resource reference
func (m *V1beta1ResourceReference) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateKey(formats); err != nil {
@ -44,7 +44,7 @@ func (m *APIResourceReference) Validate(formats strfmt.Registry) error {
return nil
}
func (m *APIResourceReference) validateKey(formats strfmt.Registry) error {
func (m *V1beta1ResourceReference) validateKey(formats strfmt.Registry) error {
if swag.IsZero(m.Key) { // not required
return nil
@ -62,7 +62,7 @@ func (m *APIResourceReference) validateKey(formats strfmt.Registry) error {
return nil
}
func (m *APIResourceReference) validateRelationship(formats strfmt.Registry) error {
func (m *V1beta1ResourceReference) validateRelationship(formats strfmt.Registry) error {
if swag.IsZero(m.Relationship) { // not required
return nil
@ -79,7 +79,7 @@ func (m *APIResourceReference) validateRelationship(formats strfmt.Registry) err
}
// MarshalBinary interface implementation
func (m *APIResourceReference) MarshalBinary() ([]byte, error) {
func (m *V1beta1ResourceReference) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@ -87,8 +87,8 @@ func (m *APIResourceReference) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
func (m *APIResourceReference) UnmarshalBinary(b []byte) error {
var res APIResourceReference
func (m *V1beta1ResourceReference) UnmarshalBinary(b []byte) error {
var res V1beta1ResourceReference
if err := swag.ReadJSON(b, &res); err != nil {
return err
}

View File

@ -0,0 +1,75 @@
// Code generated by go-swagger; DO NOT EDIT.
package experiment_model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// V1beta1ResourceType v1beta1 resource type
// swagger:model v1beta1ResourceType
type V1beta1ResourceType string
const (
// V1beta1ResourceTypeUNKNOWNRESOURCETYPE captures enum value "UNKNOWN_RESOURCE_TYPE"
V1beta1ResourceTypeUNKNOWNRESOURCETYPE V1beta1ResourceType = "UNKNOWN_RESOURCE_TYPE"
// V1beta1ResourceTypeEXPERIMENT captures enum value "EXPERIMENT"
V1beta1ResourceTypeEXPERIMENT V1beta1ResourceType = "EXPERIMENT"
// V1beta1ResourceTypeJOB captures enum value "JOB"
V1beta1ResourceTypeJOB V1beta1ResourceType = "JOB"
// V1beta1ResourceTypePIPELINE captures enum value "PIPELINE"
V1beta1ResourceTypePIPELINE V1beta1ResourceType = "PIPELINE"
// V1beta1ResourceTypePIPELINEVERSION captures enum value "PIPELINE_VERSION"
V1beta1ResourceTypePIPELINEVERSION V1beta1ResourceType = "PIPELINE_VERSION"
// V1beta1ResourceTypeNAMESPACE captures enum value "NAMESPACE"
V1beta1ResourceTypeNAMESPACE V1beta1ResourceType = "NAMESPACE"
)
// for schema
var v1beta1ResourceTypeEnum []interface{}
func init() {
var res []V1beta1ResourceType
if err := json.Unmarshal([]byte(`["UNKNOWN_RESOURCE_TYPE","EXPERIMENT","JOB","PIPELINE","PIPELINE_VERSION","NAMESPACE"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
v1beta1ResourceTypeEnum = append(v1beta1ResourceTypeEnum, v)
}
}
func (m V1beta1ResourceType) validateV1beta1ResourceTypeEnum(path, location string, value V1beta1ResourceType) error {
if err := validate.Enum(path, location, value, v1beta1ResourceTypeEnum); err != nil {
return err
}
return nil
}
// Validate validates this v1beta1 resource type
func (m V1beta1ResourceType) Validate(formats strfmt.Registry) error {
var res []error
// value enum
if err := m.validateV1beta1ResourceTypeEnum("", "body", m); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}

View File

@ -14,9 +14,9 @@ import (
"github.com/go-openapi/swag"
)
// APIStatus api status
// swagger:model apiStatus
type APIStatus struct {
// V1beta1Status v1beta1 status
// swagger:model v1beta1Status
type V1beta1Status struct {
// code
Code int32 `json:"code,omitempty"`
@ -28,8 +28,8 @@ type APIStatus struct {
Error string `json:"error,omitempty"`
}
// Validate validates this api status
func (m *APIStatus) Validate(formats strfmt.Registry) error {
// Validate validates this v1beta1 status
func (m *V1beta1Status) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDetails(formats); err != nil {
@ -42,7 +42,7 @@ func (m *APIStatus) Validate(formats strfmt.Registry) error {
return nil
}
func (m *APIStatus) validateDetails(formats strfmt.Registry) error {
func (m *V1beta1Status) validateDetails(formats strfmt.Registry) error {
if swag.IsZero(m.Details) { // not required
return nil
@ -68,7 +68,7 @@ func (m *APIStatus) validateDetails(formats strfmt.Registry) error {
}
// MarshalBinary interface implementation
func (m *APIStatus) MarshalBinary() ([]byte, error) {
func (m *V1beta1Status) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@ -76,8 +76,8 @@ func (m *APIStatus) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
func (m *APIStatus) UnmarshalBinary(b []byte) error {
var res APIStatus
func (m *V1beta1Status) UnmarshalBinary(b []byte) error {
var res V1beta1Status
if err := swag.ReadJSON(b, &res); err != nil {
return err
}

View File

@ -11,7 +11,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
"github.com/kubeflow/pipelines/backend/api/go_http_client/healthz_client/healthz_service"
"github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/healthz_client/healthz_service"
)
// Default healthz HTTP client.

View File

@ -13,7 +13,7 @@ import (
strfmt "github.com/go-openapi/strfmt"
healthz_model "github.com/kubeflow/pipelines/backend/api/go_http_client/healthz_model"
healthz_model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/healthz_model"
)
// GetHealthzReader is a Reader for the GetHealthz structure.
@ -54,7 +54,7 @@ func NewGetHealthzOK() *GetHealthzOK {
A successful response.
*/
type GetHealthzOK struct {
Payload *healthz_model.APIGetHealthzResponse
Payload *healthz_model.V1beta1GetHealthzResponse
}
func (o *GetHealthzOK) Error() string {
@ -63,7 +63,7 @@ func (o *GetHealthzOK) Error() string {
func (o *GetHealthzOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(healthz_model.APIGetHealthzResponse)
o.Payload = new(healthz_model.V1beta1GetHealthzResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@ -87,7 +87,7 @@ GetHealthzDefault get healthz default
type GetHealthzDefault struct {
_statusCode int
Payload *healthz_model.APIStatus
Payload *healthz_model.V1beta1Status
}
// Code gets the status code for the get healthz default response
@ -101,7 +101,7 @@ func (o *GetHealthzDefault) Error() string {
func (o *GetHealthzDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(healthz_model.APIStatus)
o.Payload = new(healthz_model.V1beta1Status)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {

View File

@ -11,21 +11,21 @@ import (
"github.com/go-openapi/swag"
)
// APIGetHealthzResponse api get healthz response
// swagger:model apiGetHealthzResponse
type APIGetHealthzResponse struct {
// V1beta1GetHealthzResponse v1beta1 get healthz response
// swagger:model v1beta1GetHealthzResponse
type V1beta1GetHealthzResponse struct {
// Returns if KFP in multi-user mode
MultiUser bool `json:"multi_user,omitempty"`
}
// Validate validates this api get healthz response
func (m *APIGetHealthzResponse) Validate(formats strfmt.Registry) error {
// Validate validates this v1beta1 get healthz response
func (m *V1beta1GetHealthzResponse) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *APIGetHealthzResponse) MarshalBinary() ([]byte, error) {
func (m *V1beta1GetHealthzResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@ -33,8 +33,8 @@ func (m *APIGetHealthzResponse) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
func (m *APIGetHealthzResponse) UnmarshalBinary(b []byte) error {
var res APIGetHealthzResponse
func (m *V1beta1GetHealthzResponse) UnmarshalBinary(b []byte) error {
var res V1beta1GetHealthzResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}

Some files were not shown because too many files have changed in this diff Show More