project

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error_name = map[int32]string{
		0: "NO_ERROR",
		1: "UNKNOWN",
		2: "PROJECT_ALREADY_EXISTS",
		3: "PROJECT_NOT_FOUND",
		4: "BAD_REQUEST",
	}
	Error_value = map[string]int32{
		"NO_ERROR":               0,
		"UNKNOWN":                1,
		"PROJECT_ALREADY_EXISTS": 2,
		"PROJECT_NOT_FOUND":      3,
		"BAD_REQUEST":            4,
	}
)

Enum value maps for Error.

View Source
var (
	SortingDirection_name = map[int32]string{
		0: "ASCENDING",
		1: "DESCENDING",
	}
	SortingDirection_value = map[string]int32{
		"ASCENDING":  0,
		"DESCENDING": 1,
	}
)

Enum value maps for SortingDirection.

View Source
var File_project_commons_proto protoreflect.FileDescriptor
View Source
var File_project_messages_proto protoreflect.FileDescriptor
View Source
var File_project_operations_proto protoreflect.FileDescriptor

Functions

func RegisterServiceServer added in v0.8.0

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

Types

type CreateProjectRequest

type CreateProjectRequest struct {

	// The project object
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

* Request to create a new project

func (*CreateProjectRequest) Descriptor deprecated

func (*CreateProjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead.

func (*CreateProjectRequest) GetProject

func (x *CreateProjectRequest) GetProject() *Project

func (*CreateProjectRequest) ProtoMessage

func (*CreateProjectRequest) ProtoMessage()

func (*CreateProjectRequest) ProtoReflect

func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message

func (*CreateProjectRequest) Reset

func (x *CreateProjectRequest) Reset()

func (*CreateProjectRequest) String

func (x *CreateProjectRequest) String() string

type CreateProjectResponse

type CreateProjectResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// The unique project identifier
	ProjectID string `protobuf:"bytes,3,opt,name=projectID,proto3" json:"projectID,omitempty"`
	// The created project object
	Project *Project `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
	// The cursor defines the position of the project in the repository that can
	// be later referred to using pagination information
	Cursor string `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of creating a new project

func (*CreateProjectResponse) Descriptor deprecated

func (*CreateProjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateProjectResponse.ProtoReflect.Descriptor instead.

func (*CreateProjectResponse) GetCursor

func (x *CreateProjectResponse) GetCursor() string

func (*CreateProjectResponse) GetError

func (x *CreateProjectResponse) GetError() Error

func (*CreateProjectResponse) GetErrorMessage

func (x *CreateProjectResponse) GetErrorMessage() string

func (*CreateProjectResponse) GetProject

func (x *CreateProjectResponse) GetProject() *Project

func (*CreateProjectResponse) GetProjectID

func (x *CreateProjectResponse) GetProjectID() string

func (*CreateProjectResponse) ProtoMessage

func (*CreateProjectResponse) ProtoMessage()

func (*CreateProjectResponse) ProtoReflect

func (x *CreateProjectResponse) ProtoReflect() protoreflect.Message

func (*CreateProjectResponse) Reset

func (x *CreateProjectResponse) Reset()

func (*CreateProjectResponse) String

func (x *CreateProjectResponse) String() string

type DeleteProjectRequest

type DeleteProjectRequest struct {

	// The unique project identifier
	ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
	// contains filtered or unexported fields
}

* Request to delete an existing project

func (*DeleteProjectRequest) Descriptor deprecated

func (*DeleteProjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.

func (*DeleteProjectRequest) GetProjectID

func (x *DeleteProjectRequest) GetProjectID() string

func (*DeleteProjectRequest) ProtoMessage

func (*DeleteProjectRequest) ProtoMessage()

func (*DeleteProjectRequest) ProtoReflect

func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message

func (*DeleteProjectRequest) Reset

func (x *DeleteProjectRequest) Reset()

func (*DeleteProjectRequest) String

func (x *DeleteProjectRequest) String() string

type DeleteProjectResponse

type DeleteProjectResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of deleting an existing project

func (*DeleteProjectResponse) Descriptor deprecated

func (*DeleteProjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteProjectResponse.ProtoReflect.Descriptor instead.

func (*DeleteProjectResponse) GetError

func (x *DeleteProjectResponse) GetError() Error

func (*DeleteProjectResponse) GetErrorMessage

func (x *DeleteProjectResponse) GetErrorMessage() string

func (*DeleteProjectResponse) ProtoMessage

func (*DeleteProjectResponse) ProtoMessage()

func (*DeleteProjectResponse) ProtoReflect

func (x *DeleteProjectResponse) ProtoReflect() protoreflect.Message

func (*DeleteProjectResponse) Reset

func (x *DeleteProjectResponse) Reset()

func (*DeleteProjectResponse) String

func (x *DeleteProjectResponse) String() string

type Error

type Error int32

* The different error types

const (
	// Indicates the operation was successful
	Error_NO_ERROR Error = 0
	// Indicates the operation fail with unknown error
	Error_UNKNOWN Error = 1
	// Indicates the project already exists
	Error_PROJECT_ALREADY_EXISTS Error = 2
	// Indicates the project does not exist
	Error_PROJECT_NOT_FOUND Error = 3
	// Indicates the provided values for he operation were invalid
	Error_BAD_REQUEST Error = 4
)

func (Error) Descriptor

func (Error) Descriptor() protoreflect.EnumDescriptor

func (Error) Enum

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated

func (Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error.Descriptor instead.

func (Error) Number

func (x Error) Number() protoreflect.EnumNumber

func (Error) String

func (x Error) String() string

func (Error) Type

func (Error) Type() protoreflect.EnumType

type ListProjectsRequest added in v0.7.0

type ListProjectsRequest struct {

	// The pagination information
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// The collection of sorting option determines how the returned data must be
	// sorted
	SortingOptions []*SortingOptionPair `protobuf:"bytes,2,rep,name=sortingOptions,proto3" json:"sortingOptions,omitempty"`
	// The unique project identifiers
	ProjectIDs []string `protobuf:"bytes,3,rep,name=projectIDs,proto3" json:"projectIDs,omitempty"`
	// contains filtered or unexported fields
}

* Request to ListProjects for projects

func (*ListProjectsRequest) Descriptor deprecated added in v0.7.0

func (*ListProjectsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.

func (*ListProjectsRequest) GetPagination added in v0.7.0

func (x *ListProjectsRequest) GetPagination() *Pagination

func (*ListProjectsRequest) GetProjectIDs added in v0.7.0

func (x *ListProjectsRequest) GetProjectIDs() []string

func (*ListProjectsRequest) GetSortingOptions added in v0.7.0

func (x *ListProjectsRequest) GetSortingOptions() []*SortingOptionPair

func (*ListProjectsRequest) ProtoMessage added in v0.7.0

func (*ListProjectsRequest) ProtoMessage()

func (*ListProjectsRequest) ProtoReflect added in v0.7.0

func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message

func (*ListProjectsRequest) Reset added in v0.7.0

func (x *ListProjectsRequest) Reset()

func (*ListProjectsRequest) String added in v0.7.0

func (x *ListProjectsRequest) String() string

type ListProjectsResponse added in v0.7.0

type ListProjectsResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// Indicates whether more edges exist prior to the set defined by the clients
	// arguments
	HasPreviousPage bool `protobuf:"varint,3,opt,name=hasPreviousPage,proto3" json:"hasPreviousPage,omitempty"`
	// Indicates whether more edges exist following the set defined by the clients
	// arguments
	HasNextPage bool `protobuf:"varint,4,opt,name=hasNextPage,proto3" json:"hasNextPage,omitempty"`
	// Indicates the total count of the projects that matched the provided filter
	// criteria
	TotalCount int64 `protobuf:"varint,5,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	// The list contains the projects that matched the search criteria
	Projects []*ProjectWithCursor `protobuf:"bytes,6,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of ListProjectsing for projects

func (*ListProjectsResponse) Descriptor deprecated added in v0.7.0

func (*ListProjectsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.

func (*ListProjectsResponse) GetError added in v0.7.0

func (x *ListProjectsResponse) GetError() Error

func (*ListProjectsResponse) GetErrorMessage added in v0.7.0

func (x *ListProjectsResponse) GetErrorMessage() string

func (*ListProjectsResponse) GetHasNextPage added in v0.7.0

func (x *ListProjectsResponse) GetHasNextPage() bool

func (*ListProjectsResponse) GetHasPreviousPage added in v0.7.0

func (x *ListProjectsResponse) GetHasPreviousPage() bool

func (*ListProjectsResponse) GetProjects added in v0.7.0

func (x *ListProjectsResponse) GetProjects() []*ProjectWithCursor

func (*ListProjectsResponse) GetTotalCount added in v0.7.0

func (x *ListProjectsResponse) GetTotalCount() int64

func (*ListProjectsResponse) ProtoMessage added in v0.7.0

func (*ListProjectsResponse) ProtoMessage()

func (*ListProjectsResponse) ProtoReflect added in v0.7.0

func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message

func (*ListProjectsResponse) Reset added in v0.7.0

func (x *ListProjectsResponse) Reset()

func (*ListProjectsResponse) String added in v0.7.0

func (x *ListProjectsResponse) String() string

type Pagination

type Pagination struct {
	HasFirst  bool   `protobuf:"varint,1,opt,name=hasFirst,proto3" json:"hasFirst,omitempty"`
	First     int32  `protobuf:"varint,2,opt,name=first,proto3" json:"first,omitempty"`
	HasAfter  bool   `protobuf:"varint,3,opt,name=hasAfter,proto3" json:"hasAfter,omitempty"`
	After     string `protobuf:"bytes,4,opt,name=after,proto3" json:"after,omitempty"`
	HasLast   bool   `protobuf:"varint,5,opt,name=hasLast,proto3" json:"hasLast,omitempty"`
	Last      int32  `protobuf:"varint,6,opt,name=last,proto3" json:"last,omitempty"`
	HasBefore bool   `protobuf:"varint,7,opt,name=hasBefore,proto3" json:"hasBefore,omitempty"`
	Before    string `protobuf:"bytes,8,opt,name=before,proto3" json:"before,omitempty"`
	// contains filtered or unexported fields
}

* The pagination information compatible with graphql-relay connection definition, for more information visit: https://facebook.github.io/relay/graphql/connections.htm

func (*Pagination) Descriptor deprecated

func (*Pagination) Descriptor() ([]byte, []int)

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetAfter

func (x *Pagination) GetAfter() string

func (*Pagination) GetBefore

func (x *Pagination) GetBefore() string

func (*Pagination) GetFirst

func (x *Pagination) GetFirst() int32

func (*Pagination) GetHasAfter

func (x *Pagination) GetHasAfter() bool

func (*Pagination) GetHasBefore

func (x *Pagination) GetHasBefore() bool

func (*Pagination) GetHasFirst

func (x *Pagination) GetHasFirst() bool

func (*Pagination) GetHasLast

func (x *Pagination) GetHasLast() bool

func (*Pagination) GetLast

func (x *Pagination) GetLast() int32

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

func (x *Pagination) ProtoReflect() protoreflect.Message

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

type Project

type Project struct {

	// The project name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

* The project object

func (*Project) Descriptor deprecated

func (*Project) Descriptor() ([]byte, []int)

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

func (x *Project) ProtoReflect() protoreflect.Message

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type ProjectWithCursor

type ProjectWithCursor struct {

	// The project object
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The unique project identifier
	ProjectID string `protobuf:"bytes,2,opt,name=projectID,proto3" json:"projectID,omitempty"`
	// The cursor defines the position of the project in the repository that can
	// be later referred to using pagination information
	Cursor string `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

The pair of project and a cursor that defines the position of the project in the repository that can later referred to using pagination information.

func (*ProjectWithCursor) Descriptor deprecated

func (*ProjectWithCursor) Descriptor() ([]byte, []int)

Deprecated: Use ProjectWithCursor.ProtoReflect.Descriptor instead.

func (*ProjectWithCursor) GetCursor

func (x *ProjectWithCursor) GetCursor() string

func (*ProjectWithCursor) GetProject

func (x *ProjectWithCursor) GetProject() *Project

func (*ProjectWithCursor) GetProjectID

func (x *ProjectWithCursor) GetProjectID() string

func (*ProjectWithCursor) ProtoMessage

func (*ProjectWithCursor) ProtoMessage()

func (*ProjectWithCursor) ProtoReflect

func (x *ProjectWithCursor) ProtoReflect() protoreflect.Message

func (*ProjectWithCursor) Reset

func (x *ProjectWithCursor) Reset()

func (*ProjectWithCursor) String

func (x *ProjectWithCursor) String() string

type ReadProjectRequest

type ReadProjectRequest struct {

	// The unique project identifier
	ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
	// contains filtered or unexported fields
}

* Request to read an existing project

func (*ReadProjectRequest) Descriptor deprecated

func (*ReadProjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadProjectRequest.ProtoReflect.Descriptor instead.

func (*ReadProjectRequest) GetProjectID

func (x *ReadProjectRequest) GetProjectID() string

func (*ReadProjectRequest) ProtoMessage

func (*ReadProjectRequest) ProtoMessage()

func (*ReadProjectRequest) ProtoReflect

func (x *ReadProjectRequest) ProtoReflect() protoreflect.Message

func (*ReadProjectRequest) Reset

func (x *ReadProjectRequest) Reset()

func (*ReadProjectRequest) String

func (x *ReadProjectRequest) String() string

type ReadProjectResponse

type ReadProjectResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// The project object
	Project *Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of reading an existing project

func (*ReadProjectResponse) Descriptor deprecated

func (*ReadProjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReadProjectResponse.ProtoReflect.Descriptor instead.

func (*ReadProjectResponse) GetError

func (x *ReadProjectResponse) GetError() Error

func (*ReadProjectResponse) GetErrorMessage

func (x *ReadProjectResponse) GetErrorMessage() string

func (*ReadProjectResponse) GetProject

func (x *ReadProjectResponse) GetProject() *Project

func (*ReadProjectResponse) ProtoMessage

func (*ReadProjectResponse) ProtoMessage()

func (*ReadProjectResponse) ProtoReflect

func (x *ReadProjectResponse) ProtoReflect() protoreflect.Message

func (*ReadProjectResponse) Reset

func (x *ReadProjectResponse) Reset()

func (*ReadProjectResponse) String

func (x *ReadProjectResponse) String() string

type ServiceClient added in v0.8.0

type ServiceClient interface {
	// CreateProject creates a new project
	// request: The request to create a new project
	// Returns the result of creating new project
	CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*CreateProjectResponse, error)
	// ReadProject reads an exsiting project
	// request: The request to read an esiting project
	// Returns the result of reading an existing project
	ReadProject(ctx context.Context, in *ReadProjectRequest, opts ...grpc.CallOption) (*ReadProjectResponse, error)
	// UpdateProject updates an exsiting project
	// request: The request to update an esiting project
	// Returns the result of updateing an existing project
	UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*UpdateProjectResponse, error)
	// DeleteProject deletes an exsiting project
	// request: The request to delete an esiting project
	// Returns the result of deleting an existing project
	DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*DeleteProjectResponse, error)
	// ListProjects returns the list of projects that matched the criteria
	// request: The request contains the search criteria
	// Returns the list of projects that matched the criteria
	ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient added in v0.8.0

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer added in v0.8.0

type ServiceServer interface {
	// CreateProject creates a new project
	// request: The request to create a new project
	// Returns the result of creating new project
	CreateProject(context.Context, *CreateProjectRequest) (*CreateProjectResponse, error)
	// ReadProject reads an exsiting project
	// request: The request to read an esiting project
	// Returns the result of reading an existing project
	ReadProject(context.Context, *ReadProjectRequest) (*ReadProjectResponse, error)
	// UpdateProject updates an exsiting project
	// request: The request to update an esiting project
	// Returns the result of updateing an existing project
	UpdateProject(context.Context, *UpdateProjectRequest) (*UpdateProjectResponse, error)
	// DeleteProject deletes an exsiting project
	// request: The request to delete an esiting project
	// Returns the result of deleting an existing project
	DeleteProject(context.Context, *DeleteProjectRequest) (*DeleteProjectResponse, error)
	// ListProjects returns the list of projects that matched the criteria
	// request: The request contains the search criteria
	// Returns the list of projects that matched the criteria
	ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
}

ServiceServer is the server API for Service service.

type SortingDirection

type SortingDirection int32

* The different sorting direction

const (
	// Indicates result data must be sorted from low to high sequence
	SortingDirection_ASCENDING SortingDirection = 0
	// Indicates result data must be sorted from high to low sequence
	SortingDirection_DESCENDING SortingDirection = 1
)

func (SortingDirection) Descriptor

func (SortingDirection) Enum

func (SortingDirection) EnumDescriptor deprecated

func (SortingDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortingDirection.Descriptor instead.

func (SortingDirection) Number

func (SortingDirection) String

func (x SortingDirection) String() string

func (SortingDirection) Type

type SortingOptionPair

type SortingOptionPair struct {

	// The name of the field on
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// THe sorting direction
	Direction SortingDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=project.SortingDirection" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

* Defines the pair of values that are used to determine how the result data should be sorted.

func (*SortingOptionPair) Descriptor deprecated

func (*SortingOptionPair) Descriptor() ([]byte, []int)

Deprecated: Use SortingOptionPair.ProtoReflect.Descriptor instead.

func (*SortingOptionPair) GetDirection

func (x *SortingOptionPair) GetDirection() SortingDirection

func (*SortingOptionPair) GetName

func (x *SortingOptionPair) GetName() string

func (*SortingOptionPair) ProtoMessage

func (*SortingOptionPair) ProtoMessage()

func (*SortingOptionPair) ProtoReflect

func (x *SortingOptionPair) ProtoReflect() protoreflect.Message

func (*SortingOptionPair) Reset

func (x *SortingOptionPair) Reset()

func (*SortingOptionPair) String

func (x *SortingOptionPair) String() string

type UnimplementedServiceServer added in v0.8.0

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) CreateProject added in v0.8.0

func (*UnimplementedServiceServer) DeleteProject added in v0.8.0

func (*UnimplementedServiceServer) ListProjects added in v0.8.0

func (*UnimplementedServiceServer) ReadProject added in v0.8.0

func (*UnimplementedServiceServer) UpdateProject added in v0.8.0

type UpdateProjectRequest

type UpdateProjectRequest struct {

	// The unique project identifier
	ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
	// The project object contains the updated project details to update
	Project *Project `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

* Request to update an existing project

func (*UpdateProjectRequest) Descriptor deprecated

func (*UpdateProjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectRequest) GetProject

func (x *UpdateProjectRequest) GetProject() *Project

func (*UpdateProjectRequest) GetProjectID

func (x *UpdateProjectRequest) GetProjectID() string

func (*UpdateProjectRequest) ProtoMessage

func (*UpdateProjectRequest) ProtoMessage()

func (*UpdateProjectRequest) ProtoReflect

func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message

func (*UpdateProjectRequest) Reset

func (x *UpdateProjectRequest) Reset()

func (*UpdateProjectRequest) String

func (x *UpdateProjectRequest) String() string

type UpdateProjectResponse

type UpdateProjectResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// The updated project object
	Project *Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
	// The cursor defines the position of the project in the repository that can
	// be later referred to using pagination information
	Cursor string `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of updating an existing project

func (*UpdateProjectResponse) Descriptor deprecated

func (*UpdateProjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProjectResponse.ProtoReflect.Descriptor instead.

func (*UpdateProjectResponse) GetCursor

func (x *UpdateProjectResponse) GetCursor() string

func (*UpdateProjectResponse) GetError

func (x *UpdateProjectResponse) GetError() Error

func (*UpdateProjectResponse) GetErrorMessage

func (x *UpdateProjectResponse) GetErrorMessage() string

func (*UpdateProjectResponse) GetProject

func (x *UpdateProjectResponse) GetProject() *Project

func (*UpdateProjectResponse) ProtoMessage

func (*UpdateProjectResponse) ProtoMessage()

func (*UpdateProjectResponse) ProtoReflect

func (x *UpdateProjectResponse) ProtoReflect() protoreflect.Message

func (*UpdateProjectResponse) Reset

func (x *UpdateProjectResponse) Reset()

func (*UpdateProjectResponse) String

func (x *UpdateProjectResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL