projectpb

package
v0.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EchoService_Echo_FullMethodName        = "/qclaogui.project.v1.EchoService/Echo"
	EchoService_Expand_FullMethodName      = "/qclaogui.project.v1.EchoService/Expand"
	EchoService_Collect_FullMethodName     = "/qclaogui.project.v1.EchoService/Collect"
	EchoService_Chat_FullMethodName        = "/qclaogui.project.v1.EchoService/Chat"
	EchoService_PagedExpand_FullMethodName = "/qclaogui.project.v1.EchoService/PagedExpand"
	EchoService_Wait_FullMethodName        = "/qclaogui.project.v1.EchoService/Wait"
	EchoService_Block_FullMethodName       = "/qclaogui.project.v1.EchoService/Block"
)
View Source
const (
	IdentityService_CreateUser_FullMethodName = "/qclaogui.project.v1.IdentityService/CreateUser"
	IdentityService_GetUser_FullMethodName    = "/qclaogui.project.v1.IdentityService/GetUser"
	IdentityService_ListUsers_FullMethodName  = "/qclaogui.project.v1.IdentityService/ListUsers"
	IdentityService_UpdateUser_FullMethodName = "/qclaogui.project.v1.IdentityService/UpdateUser"
	IdentityService_DeleteUser_FullMethodName = "/qclaogui.project.v1.IdentityService/DeleteUser"
)
View Source
const (
	ProjectService_CreateProject_FullMethodName = "/qclaogui.project.v1.ProjectService/CreateProject"
	ProjectService_GetProject_FullMethodName    = "/qclaogui.project.v1.ProjectService/GetProject"
	ProjectService_ListProjects_FullMethodName  = "/qclaogui.project.v1.ProjectService/ListProjects"
	ProjectService_DeleteProject_FullMethodName = "/qclaogui.project.v1.ProjectService/DeleteProject"
)

Variables

View Source
var (
	Severity_name = map[int32]string{
		0: "SEVERITY_UNSPECIFIED",
		1: "SEVERITY_UNNECESSARY",
		2: "SEVERITY_NECESSARY",
		3: "SEVERITY_URGENT",
		4: "SEVERITY_CRITICAL",
	}
	Severity_value = map[string]int32{
		"SEVERITY_UNSPECIFIED": 0,
		"SEVERITY_UNNECESSARY": 1,
		"SEVERITY_NECESSARY":   2,
		"SEVERITY_URGENT":      3,
		"SEVERITY_CRITICAL":    4,
	}
)

Enum value maps for Severity.

View Source
var EchoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "qclaogui.project.v1.EchoService",
	HandlerType: (*EchoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _EchoService_Echo_Handler,
		},
		{
			MethodName: "PagedExpand",
			Handler:    _EchoService_PagedExpand_Handler,
		},
		{
			MethodName: "Wait",
			Handler:    _EchoService_Wait_Handler,
		},
		{
			MethodName: "Block",
			Handler:    _EchoService_Block_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Expand",
			Handler:       _EchoService_Expand_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Collect",
			Handler:       _EchoService_Collect_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "Chat",
			Handler:       _EchoService_Chat_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "qclaogui/project/v1/echo_service.proto",
}

EchoService_ServiceDesc is the grpc.ServiceDesc for EchoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_qclaogui_project_v1_echo_proto protoreflect.FileDescriptor
View Source
var File_qclaogui_project_v1_echo_service_proto protoreflect.FileDescriptor
View Source
var File_qclaogui_project_v1_identity_service_proto protoreflect.FileDescriptor
View Source
var File_qclaogui_project_v1_project_proto protoreflect.FileDescriptor
View Source
var File_qclaogui_project_v1_project_service_proto protoreflect.FileDescriptor
View Source
var File_qclaogui_project_v1_user_proto protoreflect.FileDescriptor
View Source
var IdentityService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "qclaogui.project.v1.IdentityService",
	HandlerType: (*IdentityServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _IdentityService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _IdentityService_GetUser_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _IdentityService_ListUsers_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _IdentityService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _IdentityService_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "qclaogui/project/v1/identity_service.proto",
}

IdentityService_ServiceDesc is the grpc.ServiceDesc for IdentityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ProjectService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "qclaogui.project.v1.ProjectService",
	HandlerType: (*ProjectServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateProject",
			Handler:    _ProjectService_CreateProject_Handler,
		},
		{
			MethodName: "GetProject",
			Handler:    _ProjectService_GetProject_Handler,
		},
		{
			MethodName: "ListProjects",
			Handler:    _ProjectService_ListProjects_Handler,
		},
		{
			MethodName: "DeleteProject",
			Handler:    _ProjectService_DeleteProject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "qclaogui/project/v1/project_service.proto",
}

ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterEchoServiceServer

func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)

func RegisterIdentityServiceServer

func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer)

func RegisterProjectServiceServer

func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer)

Types

type BlockRequest

type BlockRequest struct {

	// The amount of time to block before returning a response.
	ResponseDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=response_delay,json=responseDelay,proto3" json:"response_delay,omitempty"`
	// Types that are assignable to Response:
	//
	//	*BlockRequest_Error
	//	*BlockRequest_Success
	Response isBlockRequest_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*BlockRequest) Descriptor deprecated

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

Deprecated: Use BlockRequest.ProtoReflect.Descriptor instead.

func (*BlockRequest) GetError

func (x *BlockRequest) GetError() *status.Status

func (*BlockRequest) GetResponse

func (m *BlockRequest) GetResponse() isBlockRequest_Response

func (*BlockRequest) GetResponseDelay

func (x *BlockRequest) GetResponseDelay() *durationpb.Duration

func (*BlockRequest) GetSuccess

func (x *BlockRequest) GetSuccess() *BlockResponse

func (*BlockRequest) ProtoMessage

func (*BlockRequest) ProtoMessage()

func (*BlockRequest) ProtoReflect

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

func (*BlockRequest) Reset

func (x *BlockRequest) Reset()

func (*BlockRequest) String

func (x *BlockRequest) String() string

type BlockRequest_Error

type BlockRequest_Error struct {
	// The error that will be returned by the server. If this code is specified
	// to be the OK rpc code, an empty response will be returned.
	Error *status.Status `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type BlockRequest_Success

type BlockRequest_Success struct {
	// The response to be returned that will signify successful method call.
	Success *BlockResponse `protobuf:"bytes,3,opt,name=success,proto3,oneof"`
}

type BlockResponse

type BlockResponse struct {

	// This content can contain anything, the server will not depend on a value
	// here.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockResponse) Descriptor deprecated

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

Deprecated: Use BlockResponse.ProtoReflect.Descriptor instead.

func (*BlockResponse) GetContent

func (x *BlockResponse) GetContent() string

func (*BlockResponse) ProtoMessage

func (*BlockResponse) ProtoMessage()

func (*BlockResponse) ProtoReflect

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

func (*BlockResponse) Reset

func (x *BlockResponse) Reset()

func (*BlockResponse) String

func (x *BlockResponse) String() string

type CreateProjectRequest

type CreateProjectRequest struct {

	// The project to create.
	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 CreateUserRequest

type CreateUserRequest struct {

	// The user to create.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

The request message for the IdentityService.CreateUser method.

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type DeleteProjectRequest

type DeleteProjectRequest struct {

	// The name of the project in the form of `projects/{project}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request to delete a project.

func (*DeleteProjectRequest) Descriptor deprecated

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

Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.

func (*DeleteProjectRequest) GetName

func (x *DeleteProjectRequest) GetName() 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 DeleteUserRequest

type DeleteUserRequest struct {

	// The resource name of the user to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for the IdentityService.DeleteUser method.

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetName

func (x *DeleteUserRequest) GetName() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type EchoRequest

type EchoRequest struct {

	// Types that are assignable to Response:
	//
	//	*EchoRequest_Content
	//	*EchoRequest_Error
	Response isEchoRequest_Response `protobuf_oneof:"response"`
	// The severity to be echoed by the server.
	Severity Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=qclaogui.project.v1.Severity" json:"severity,omitempty"`
	// Optional. This field can be set to test the routing annotation on the Echo method.
	Header string `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"`
	// Optional. This field can be set to test the routing annotation on the Echo method.
	OtherHeader string `protobuf:"bytes,5,opt,name=other_header,json=otherHeader,proto3" json:"other_header,omitempty"`
	// contains filtered or unexported fields
}

The request message used for the Echo, Collect and Chat methods. If content or opt are set in this message then the request will succeed. If status is set in this message then the status will be returned as an error.

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetContent

func (x *EchoRequest) GetContent() string

func (*EchoRequest) GetError

func (x *EchoRequest) GetError() *status.Status

func (*EchoRequest) GetHeader

func (x *EchoRequest) GetHeader() string

func (*EchoRequest) GetOtherHeader

func (x *EchoRequest) GetOtherHeader() string

func (*EchoRequest) GetResponse

func (m *EchoRequest) GetResponse() isEchoRequest_Response

func (*EchoRequest) GetSeverity

func (x *EchoRequest) GetSeverity() Severity

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

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

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoRequest_Content

type EchoRequest_Content struct {
	// The content to be echoed by the server.
	Content string `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
}

type EchoRequest_Error

type EchoRequest_Error struct {
	// The error to be thrown by the server.
	Error *status.Status `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type EchoResponse

type EchoResponse struct {

	// The content specified in the request.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// The severity specified in the request.
	Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=qclaogui.project.v1.Severity" json:"severity,omitempty"`
	// contains filtered or unexported fields
}

The response message for the Echo methods.

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetContent

func (x *EchoResponse) GetContent() string

func (*EchoResponse) GetSeverity

func (x *EchoResponse) GetSeverity() Severity

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

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

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type EchoServiceClient

type EchoServiceClient interface {
	// This method simply echoes the request. This method showcases unary RPCs.
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
	// This method splits the given content into words and will pass each word back
	// through the stream. This method showcases server-side streaming RPCs.
	Expand(ctx context.Context, in *ExpandRequest, opts ...grpc.CallOption) (EchoService_ExpandClient, error)
	// This method will collect the words given to it. When the stream is closed
	// by the client, this method will return the a concatenation of the strings
	// passed to it. This method showcases client-side streaming RPCs.
	Collect(ctx context.Context, opts ...grpc.CallOption) (EchoService_CollectClient, error)
	// This method, upon receiving a request on the stream, will pass the same
	// content back on the stream. This method showcases bidirectional
	// streaming RPCs.
	Chat(ctx context.Context, opts ...grpc.CallOption) (EchoService_ChatClient, error)
	// This is similar to the Expand method but instead of returning a stream of
	// expanded words, this method returns a paged list of expanded words.
	PagedExpand(ctx context.Context, in *PagedExpandRequest, opts ...grpc.CallOption) (*PagedExpandResponse, error)
	// This method will wait for the requested amount of time and then return.
	// This method showcases how a client handles a request timeout.
	Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// This method will block (wait) for the requested amount of time
	// and then return the response or error.
	// This method showcases how a client handles delays or retries.
	Block(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*BlockResponse, error)
}

EchoServiceClient is the client API for EchoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EchoServiceServer

type EchoServiceServer interface {
	// This method simply echoes the request. This method showcases unary RPCs.
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
	// This method splits the given content into words and will pass each word back
	// through the stream. This method showcases server-side streaming RPCs.
	Expand(*ExpandRequest, EchoService_ExpandServer) error
	// This method will collect the words given to it. When the stream is closed
	// by the client, this method will return the a concatenation of the strings
	// passed to it. This method showcases client-side streaming RPCs.
	Collect(EchoService_CollectServer) error
	// This method, upon receiving a request on the stream, will pass the same
	// content back on the stream. This method showcases bidirectional
	// streaming RPCs.
	Chat(EchoService_ChatServer) error
	// This is similar to the Expand method but instead of returning a stream of
	// expanded words, this method returns a paged list of expanded words.
	PagedExpand(context.Context, *PagedExpandRequest) (*PagedExpandResponse, error)
	// This method will wait for the requested amount of time and then return.
	// This method showcases how a client handles a request timeout.
	Wait(context.Context, *WaitRequest) (*longrunningpb.Operation, error)
	// This method will block (wait) for the requested amount of time
	// and then return the response or error.
	// This method showcases how a client handles delays or retries.
	Block(context.Context, *BlockRequest) (*BlockResponse, error)
}

EchoServiceServer is the server API for EchoService service. All implementations should embed UnimplementedEchoServiceServer for forward compatibility

type EchoService_ChatClient

type EchoService_ChatClient interface {
	Send(*EchoRequest) error
	Recv() (*EchoResponse, error)
	grpc.ClientStream
}

type EchoService_ChatServer

type EchoService_ChatServer interface {
	Send(*EchoResponse) error
	Recv() (*EchoRequest, error)
	grpc.ServerStream
}

type EchoService_CollectClient

type EchoService_CollectClient interface {
	Send(*EchoRequest) error
	CloseAndRecv() (*EchoResponse, error)
	grpc.ClientStream
}

type EchoService_CollectServer

type EchoService_CollectServer interface {
	SendAndClose(*EchoResponse) error
	Recv() (*EchoRequest, error)
	grpc.ServerStream
}

type EchoService_ExpandClient

type EchoService_ExpandClient interface {
	Recv() (*EchoResponse, error)
	grpc.ClientStream
}

type EchoService_ExpandServer

type EchoService_ExpandServer interface {
	Send(*EchoResponse) error
	grpc.ServerStream
}

type ExpandRequest

type ExpandRequest struct {

	// The content that will be split into words and returned on the stream.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// The error that is thrown after all words are sent on the stream.
	Error *status.Status `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// The wait time between each server streaming messages
	StreamWaitTime *durationpb.Duration `protobuf:"bytes,3,opt,name=stream_wait_time,json=streamWaitTime,proto3" json:"stream_wait_time,omitempty"`
	// contains filtered or unexported fields
}

The request message for the Expand method.

func (*ExpandRequest) Descriptor deprecated

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

Deprecated: Use ExpandRequest.ProtoReflect.Descriptor instead.

func (*ExpandRequest) GetContent

func (x *ExpandRequest) GetContent() string

func (*ExpandRequest) GetError

func (x *ExpandRequest) GetError() *status.Status

func (*ExpandRequest) GetStreamWaitTime

func (x *ExpandRequest) GetStreamWaitTime() *durationpb.Duration

func (*ExpandRequest) ProtoMessage

func (*ExpandRequest) ProtoMessage()

func (*ExpandRequest) ProtoReflect

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

func (*ExpandRequest) Reset

func (x *ExpandRequest) Reset()

func (*ExpandRequest) String

func (x *ExpandRequest) String() string

type GetProjectRequest

type GetProjectRequest struct {

	// The name of the project in the form of `projects/{project}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request to get a project.

func (*GetProjectRequest) Descriptor deprecated

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

Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead.

func (*GetProjectRequest) GetName

func (x *GetProjectRequest) GetName() string

func (*GetProjectRequest) ProtoMessage

func (*GetProjectRequest) ProtoMessage()

func (*GetProjectRequest) ProtoReflect

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

func (*GetProjectRequest) Reset

func (x *GetProjectRequest) Reset()

func (*GetProjectRequest) String

func (x *GetProjectRequest) String() string

type GetUserRequest

type GetUserRequest struct {

	// The resource name of the requested user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for the IdentityService.GetUser method.

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetName

func (x *GetUserRequest) GetName() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type IdentityServiceClient

type IdentityServiceClient interface {
	// Creates a user.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Retrieves the User with the given uri.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// Lists all users.
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	// Updates a user.
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Deletes a user, their profile, and all of their authored messages.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

IdentityServiceClient is the client API for IdentityService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type IdentityServiceServer

type IdentityServiceServer interface {
	// Creates a user.
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	// Retrieves the User with the given uri.
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// Lists all users.
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// Updates a user.
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	// Deletes a user, their profile, and all of their authored messages.
	DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
}

IdentityServiceServer is the server API for IdentityService service. All implementations should embed UnimplementedIdentityServiceServer for forward compatibility

type ListProjectsRequest

type ListProjectsRequest struct {

	// The filter expression.
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// Number of projects to return in the list.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token to provide to skip to a particular spot in the list.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request to list projects.

func (*ListProjectsRequest) Descriptor deprecated

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

Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.

func (*ListProjectsRequest) GetFilter

func (x *ListProjectsRequest) GetFilter() string

func (*ListProjectsRequest) GetPageSize

func (x *ListProjectsRequest) GetPageSize() int32

func (*ListProjectsRequest) GetPageToken

func (x *ListProjectsRequest) GetPageToken() string

func (*ListProjectsRequest) ProtoMessage

func (*ListProjectsRequest) ProtoMessage()

func (*ListProjectsRequest) ProtoReflect

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

func (*ListProjectsRequest) Reset

func (x *ListProjectsRequest) Reset()

func (*ListProjectsRequest) String

func (x *ListProjectsRequest) String() string

type ListProjectsResponse

type ListProjectsResponse struct {

	// The projects requested.
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// The next pagination token in the list response. It should be used as
	// `page_token` for the following request. An empty value means no more
	// results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for listing projects.

func (*ListProjectsResponse) Descriptor deprecated

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

Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.

func (*ListProjectsResponse) GetNextPageToken

func (x *ListProjectsResponse) GetNextPageToken() string

func (*ListProjectsResponse) GetProjects

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

func (*ListProjectsResponse) ProtoMessage

func (*ListProjectsResponse) ProtoMessage()

func (*ListProjectsResponse) ProtoReflect

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

func (*ListProjectsResponse) Reset

func (x *ListProjectsResponse) Reset()

func (*ListProjectsResponse) String

func (x *ListProjectsResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {

	// The maximum number of users to return. Server may return fewer users
	// than requested. If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The value of qclaogui.project.v1.ListUsersResponse.next_page_token
	// returned from the previous call to `IdentityService.ListUsers` method.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for the IdentityService.ListUsers method.

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) GetPageToken

func (x *ListUsersRequest) GetPageToken() string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {

	// The list of users.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// A token to retrieve next page of results.
	// Pass this value in ListUsersRequest.page_token field in the subsequent
	// call to `IdentityService.ListUsers` method to retrieve the
	// next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response message for the IdentityService.ListUsers method.

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetNextPageToken

func (x *ListUsersResponse) GetNextPageToken() string

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type PagedExpandRequest

type PagedExpandRequest struct {

	// The string to expand.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// The number of words to returned in each page.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The position of the page to be returned.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request for the PagedExpand method.

func (*PagedExpandRequest) Descriptor deprecated

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

Deprecated: Use PagedExpandRequest.ProtoReflect.Descriptor instead.

func (*PagedExpandRequest) GetContent

func (x *PagedExpandRequest) GetContent() string

func (*PagedExpandRequest) GetPageSize

func (x *PagedExpandRequest) GetPageSize() int32

func (*PagedExpandRequest) GetPageToken

func (x *PagedExpandRequest) GetPageToken() string

func (*PagedExpandRequest) ProtoMessage

func (*PagedExpandRequest) ProtoMessage()

func (*PagedExpandRequest) ProtoReflect

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

func (*PagedExpandRequest) Reset

func (x *PagedExpandRequest) Reset()

func (*PagedExpandRequest) String

func (x *PagedExpandRequest) String() string

type PagedExpandResponse

type PagedExpandResponse struct {

	// The words that were expanded.
	Responses []*EchoResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// The next page token.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response for the PagedExpand method.

func (*PagedExpandResponse) Descriptor deprecated

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

Deprecated: Use PagedExpandResponse.ProtoReflect.Descriptor instead.

func (*PagedExpandResponse) GetNextPageToken

func (x *PagedExpandResponse) GetNextPageToken() string

func (*PagedExpandResponse) GetResponses

func (x *PagedExpandResponse) GetResponses() []*EchoResponse

func (*PagedExpandResponse) ProtoMessage

func (*PagedExpandResponse) ProtoMessage()

func (*PagedExpandResponse) ProtoReflect

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

func (*PagedExpandResponse) Reset

func (x *PagedExpandResponse) Reset()

func (*PagedExpandResponse) String

func (x *PagedExpandResponse) String() string

type Project

type Project struct {

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

Describes a project.

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 ProjectServiceClient

type ProjectServiceClient interface {
	// Creates a new project.
	CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error)
	// Gets the specified project.
	GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error)
	// Lists projects.
	ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
	// Deletes the specified project.
	DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ProjectServiceClient is the client API for ProjectService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ProjectServiceServer

type ProjectServiceServer interface {
	// Creates a new project.
	CreateProject(context.Context, *CreateProjectRequest) (*Project, error)
	// Gets the specified project.
	GetProject(context.Context, *GetProjectRequest) (*Project, error)
	// Lists projects.
	ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
	// Deletes the specified project.
	DeleteProject(context.Context, *DeleteProjectRequest) (*emptypb.Empty, error)
}

ProjectServiceServer is the server API for ProjectService service. All implementations should embed UnimplementedProjectServiceServer for forward compatibility

type Severity

type Severity int32

a severity enum used to test enum capabilities in gapic surfaces.

const (
	Severity_SEVERITY_UNSPECIFIED Severity = 0
	Severity_SEVERITY_UNNECESSARY Severity = 1
	Severity_SEVERITY_NECESSARY   Severity = 2
	Severity_SEVERITY_URGENT      Severity = 3
	Severity_SEVERITY_CRITICAL    Severity = 4
)

func (Severity) Descriptor

func (Severity) Descriptor() protoreflect.EnumDescriptor

func (Severity) Enum

func (x Severity) Enum() *Severity

func (Severity) EnumDescriptor deprecated

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

Deprecated: Use Severity.Descriptor instead.

func (Severity) Number

func (x Severity) Number() protoreflect.EnumNumber

func (Severity) String

func (x Severity) String() string

func (Severity) Type

type UnimplementedEchoServiceServer

type UnimplementedEchoServiceServer struct {
}

UnimplementedEchoServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEchoServiceServer) Block

func (UnimplementedEchoServiceServer) Chat

func (UnimplementedEchoServiceServer) Collect

func (UnimplementedEchoServiceServer) Echo

func (UnimplementedEchoServiceServer) Expand

func (UnimplementedEchoServiceServer) PagedExpand

func (UnimplementedEchoServiceServer) Wait

type UnimplementedIdentityServiceServer

type UnimplementedIdentityServiceServer struct {
}

UnimplementedIdentityServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedIdentityServiceServer) CreateUser

func (UnimplementedIdentityServiceServer) DeleteUser

func (UnimplementedIdentityServiceServer) GetUser

func (UnimplementedIdentityServiceServer) ListUsers

func (UnimplementedIdentityServiceServer) UpdateUser

type UnimplementedProjectServiceServer

type UnimplementedProjectServiceServer struct {
}

UnimplementedProjectServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedProjectServiceServer) CreateProject

func (UnimplementedProjectServiceServer) DeleteProject

func (UnimplementedProjectServiceServer) GetProject

func (UnimplementedProjectServiceServer) ListProjects

type UnsafeEchoServiceServer

type UnsafeEchoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEchoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServiceServer will result in compilation errors.

type UnsafeIdentityServiceServer

type UnsafeIdentityServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIdentityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityServiceServer will result in compilation errors.

type UnsafeProjectServiceServer

type UnsafeProjectServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProjectServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectServiceServer will result in compilation errors.

type UpdateUserRequest

type UpdateUserRequest struct {

	// The user to update.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// The field mask to determine which fields are to be updated. If empty, the
	// server will assume all fields are to be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

The request message for the IdentityService.UpdateUser method.

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUpdateMask

func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {

	// The resource name of the user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The display_name of the user.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The email address of the user.
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// The timestamp at which the user was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The latest timestamp at which the user was updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The age of the user in years.
	Age *int32 `protobuf:"varint,6,opt,name=age,proto3,oneof" json:"age,omitempty"`
	// The height of the user in feet.
	HeightFeet *float64 `protobuf:"fixed64,7,opt,name=height_feet,json=heightFeet,proto3,oneof" json:"height_feet,omitempty"`
	// The nickname of the user.
	//
	// (-- aip.dev/not-precedent: An empty string is a valid nickname.
	//
	//	Ordinarily, proto3_optional should not be used on a `string` field. --)
	Nickname *string `protobuf:"bytes,8,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`
	// Enables the receiving of notifications. The default is true if unset.
	//
	// (-- aip.dev/not-precedent: The default for the feature is true.
	//
	//	Ordinarily, the default for a `bool` field should be false. --)
	EnableNotifications *bool `protobuf:"varint,9,opt,name=enable_notifications,json=enableNotifications,proto3,oneof" json:"enable_notifications,omitempty"`
	// contains filtered or unexported fields
}

A user.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAge

func (x *User) GetAge() int32

func (*User) GetCreateTime

func (x *User) GetCreateTime() *timestamppb.Timestamp

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEnableNotifications

func (x *User) GetEnableNotifications() bool

func (*User) GetHeightFeet

func (x *User) GetHeightFeet() float64

func (*User) GetName

func (x *User) GetName() string

func (*User) GetNickname

func (x *User) GetNickname() string

func (*User) GetUpdateTime

func (x *User) GetUpdateTime() *timestamppb.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type WaitMetadata

type WaitMetadata struct {

	// The time that this operation will complete.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

The metadata for Wait operation.

func (*WaitMetadata) Descriptor deprecated

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

Deprecated: Use WaitMetadata.ProtoReflect.Descriptor instead.

func (*WaitMetadata) GetEndTime

func (x *WaitMetadata) GetEndTime() *timestamppb.Timestamp

func (*WaitMetadata) ProtoMessage

func (*WaitMetadata) ProtoMessage()

func (*WaitMetadata) ProtoReflect

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

func (*WaitMetadata) Reset

func (x *WaitMetadata) Reset()

func (*WaitMetadata) String

func (x *WaitMetadata) String() string

type WaitRequest

type WaitRequest struct {

	// Types that are assignable to End:
	//
	//	*WaitRequest_EndTime
	//	*WaitRequest_Ttl
	End isWaitRequest_End `protobuf_oneof:"end"`
	// Types that are assignable to Response:
	//
	//	*WaitRequest_Error
	//	*WaitRequest_Success
	Response isWaitRequest_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

The request for Wait method.

func (*WaitRequest) Descriptor deprecated

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

Deprecated: Use WaitRequest.ProtoReflect.Descriptor instead.

func (*WaitRequest) GetEnd

func (m *WaitRequest) GetEnd() isWaitRequest_End

func (*WaitRequest) GetEndTime

func (x *WaitRequest) GetEndTime() *timestamppb.Timestamp

func (*WaitRequest) GetError

func (x *WaitRequest) GetError() *status.Status

func (*WaitRequest) GetResponse

func (m *WaitRequest) GetResponse() isWaitRequest_Response

func (*WaitRequest) GetSuccess

func (x *WaitRequest) GetSuccess() *WaitResponse

func (*WaitRequest) GetTtl

func (x *WaitRequest) GetTtl() *durationpb.Duration

func (*WaitRequest) ProtoMessage

func (*WaitRequest) ProtoMessage()

func (*WaitRequest) ProtoReflect

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

func (*WaitRequest) Reset

func (x *WaitRequest) Reset()

func (*WaitRequest) String

func (x *WaitRequest) String() string

type WaitRequest_EndTime

type WaitRequest_EndTime struct {
	// The time that this operation will complete.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3,oneof"`
}

type WaitRequest_Error

type WaitRequest_Error struct {
	// The error that will be returned by the server. If this code is specified
	// to be the OK rpc code, an empty response will be returned.
	Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type WaitRequest_Success

type WaitRequest_Success struct {
	// The response to be returned on operation completion.
	Success *WaitResponse `protobuf:"bytes,4,opt,name=success,proto3,oneof"`
}

type WaitRequest_Ttl

type WaitRequest_Ttl struct {
	// The duration of this operation.
	Ttl *durationpb.Duration `protobuf:"bytes,2,opt,name=ttl,proto3,oneof"`
}

type WaitResponse

type WaitResponse struct {

	// This content of the result.
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

The result of the Wait operation.

func (*WaitResponse) Descriptor deprecated

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

Deprecated: Use WaitResponse.ProtoReflect.Descriptor instead.

func (*WaitResponse) GetContent

func (x *WaitResponse) GetContent() string

func (*WaitResponse) ProtoMessage

func (*WaitResponse) ProtoMessage()

func (*WaitResponse) ProtoReflect

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

func (*WaitResponse) Reset

func (x *WaitResponse) Reset()

func (*WaitResponse) String

func (x *WaitResponse) String() string

Jump to

Keyboard shortcuts

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