group

package
v0.0.0-...-24bc511 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_group_group_proto protoreflect.FileDescriptor
View Source
var File_api_v1_group_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.group.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Service_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Service_Delete_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Service_List_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Service_Update_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Service_Get_Handler,
		},
		{
			MethodName: "AddMember",
			Handler:    _Service_AddMember_Handler,
		},
		{
			MethodName: "RemoveMember",
			Handler:    _Service_RemoveMember_Handler,
		},
		{
			MethodName: "ListMembers",
			Handler:    _Service_ListMembers_Handler,
		},
		{
			MethodName: "ListGroupsForMember",
			Handler:    _Service_ListGroupsForMember_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/group/service.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddMemberRequest

type AddMemberRequest struct {

	// The group to add members to.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// The members to add.
	MemberIds []*MemberID `protobuf:"bytes,2,rep,name=member_ids,json=memberIds,proto3" json:"member_ids,omitempty"`
	// contains filtered or unexported fields
}

Request for adding one or more members to a group.

func (*AddMemberRequest) Descriptor deprecated

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

Deprecated: Use AddMemberRequest.ProtoReflect.Descriptor instead.

func (*AddMemberRequest) GetGroupId

func (x *AddMemberRequest) GetGroupId() string

func (*AddMemberRequest) GetMemberIds

func (x *AddMemberRequest) GetMemberIds() []*MemberID

func (*AddMemberRequest) ProtoMessage

func (*AddMemberRequest) ProtoMessage()

func (*AddMemberRequest) ProtoReflect

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

func (*AddMemberRequest) Reset

func (x *AddMemberRequest) Reset()

func (*AddMemberRequest) String

func (x *AddMemberRequest) String() string

type AddMemberResponse

type AddMemberResponse struct {
	// contains filtered or unexported fields
}

Empty response for adding one or more members to a group.

func (*AddMemberResponse) Descriptor deprecated

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

Deprecated: Use AddMemberResponse.ProtoReflect.Descriptor instead.

func (*AddMemberResponse) ProtoMessage

func (*AddMemberResponse) ProtoMessage()

func (*AddMemberResponse) ProtoReflect

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

func (*AddMemberResponse) Reset

func (x *AddMemberResponse) Reset()

func (*AddMemberResponse) String

func (x *AddMemberResponse) String() string

type CreateRequest

type CreateRequest struct {

	// The group to create.
	Initializers []*Update `protobuf:"bytes,1,rep,name=initializers,proto3" json:"initializers,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.Create RPC.

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetInitializers

func (x *CreateRequest) GetInitializers() []*Update

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {

	// The created group.
	Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

The response of a Groups.Create RPC.

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetGroup

func (x *CreateResponse) GetGroup() *Group

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {

	// The group to delete.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

The request of a Group.Delete RPC.

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetGroupId

func (x *DeleteRequest) GetGroupId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	// contains filtered or unexported fields
}

The response of a Group.Delete RPC.

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetRequest

type GetRequest struct {

	// The group id.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.Get RPC.

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetGroupId

func (x *GetRequest) GetGroupId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {

	// The group.
	Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

The response of a Groups.Get RPC

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetGroup

func (x *GetResponse) GetGroup() *Group

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type Group

type Group struct {

	// Unique name of the group.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// Number of members.
	NumMembers uint64 `protobuf:"varint,5,opt,name=num_members,json=numMembers,proto3" json:"num_members,omitempty"`
	// Metadata of the group.
	Metadata map[string][]byte `` /* 157-byte string literal not displayed */
	// Creation time of the group.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Last update time of the group.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Group is a named collection of users and service accounts with optional metadata.

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetCreatedAt

func (x *Group) GetCreatedAt() *timestamppb.Timestamp

func (*Group) GetGroupId

func (x *Group) GetGroupId() string

func (*Group) GetMetadata

func (x *Group) GetMetadata() map[string][]byte

func (*Group) GetNumMembers

func (x *Group) GetNumMembers() uint64

func (*Group) GetUpdatedAt

func (x *Group) GetUpdatedAt() *timestamppb.Timestamp

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type ListGroupsForMemberRequest

type ListGroupsForMemberRequest struct {

	// The member to list groups for.
	MemberId *MemberID `protobuf:"bytes,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// Pagination options.
	Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

Request for listing the groups a member is in.

func (*ListGroupsForMemberRequest) Descriptor deprecated

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

Deprecated: Use ListGroupsForMemberRequest.ProtoReflect.Descriptor instead.

func (*ListGroupsForMemberRequest) GetMemberId

func (x *ListGroupsForMemberRequest) GetMemberId() *MemberID

func (*ListGroupsForMemberRequest) GetPagination

func (x *ListGroupsForMemberRequest) GetPagination() *model.Pagination

func (*ListGroupsForMemberRequest) ProtoMessage

func (*ListGroupsForMemberRequest) ProtoMessage()

func (*ListGroupsForMemberRequest) ProtoReflect

func (*ListGroupsForMemberRequest) Reset

func (x *ListGroupsForMemberRequest) Reset()

func (*ListGroupsForMemberRequest) String

func (x *ListGroupsForMemberRequest) String() string

type ListGroupsForMemberResponse

type ListGroupsForMemberResponse struct {

	// The groups the member is in.
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// The total amount of groups the member is in.
	Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

Response for listing the groups a member is in.

func (*ListGroupsForMemberResponse) Descriptor deprecated

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

Deprecated: Use ListGroupsForMemberResponse.ProtoReflect.Descriptor instead.

func (*ListGroupsForMemberResponse) GetGroups

func (x *ListGroupsForMemberResponse) GetGroups() []*Group

func (*ListGroupsForMemberResponse) GetTotal

func (x *ListGroupsForMemberResponse) GetTotal() uint64

func (*ListGroupsForMemberResponse) ProtoMessage

func (*ListGroupsForMemberResponse) ProtoMessage()

func (*ListGroupsForMemberResponse) ProtoReflect

func (*ListGroupsForMemberResponse) Reset

func (x *ListGroupsForMemberResponse) Reset()

func (*ListGroupsForMemberResponse) String

func (x *ListGroupsForMemberResponse) String() string

type ListMembersRequest

type ListMembersRequest struct {

	// The group to list members of.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// Pagination options.
	Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

Reqyest for listing members of a group.

func (*ListMembersRequest) Descriptor deprecated

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

Deprecated: Use ListMembersRequest.ProtoReflect.Descriptor instead.

func (*ListMembersRequest) GetGroupId

func (x *ListMembersRequest) GetGroupId() string

func (*ListMembersRequest) GetPagination

func (x *ListMembersRequest) GetPagination() *model.Pagination

func (*ListMembersRequest) ProtoMessage

func (*ListMembersRequest) ProtoMessage()

func (*ListMembersRequest) ProtoReflect

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

func (*ListMembersRequest) Reset

func (x *ListMembersRequest) Reset()

func (*ListMembersRequest) String

func (x *ListMembersRequest) String() string

type ListMembersResponse

type ListMembersResponse struct {

	// The members in the group.
	Members []*model.MemberEntry `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// The total amount of members in the group.
	Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

Response for listing members of a group.

func (*ListMembersResponse) Descriptor deprecated

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

Deprecated: Use ListMembersResponse.ProtoReflect.Descriptor instead.

func (*ListMembersResponse) GetMembers

func (x *ListMembersResponse) GetMembers() []*model.MemberEntry

func (*ListMembersResponse) GetTotal

func (x *ListMembersResponse) GetTotal() uint64

func (*ListMembersResponse) ProtoMessage

func (*ListMembersResponse) ProtoMessage()

func (*ListMembersResponse) ProtoReflect

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

func (*ListMembersResponse) Reset

func (x *ListMembersResponse) Reset()

func (*ListMembersResponse) String

func (x *ListMembersResponse) String() string

type ListRequest

type ListRequest struct {

	// Pagination options.
	Pagination *model.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// Search string.
	Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.List RPC.

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPagination

func (x *ListRequest) GetPagination() *model.Pagination

func (*ListRequest) GetSearch

func (x *ListRequest) GetSearch() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {

	// list of groups.
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// total amount of groups.
	Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

The response of a Groups.List RPC.

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetGroups

func (x *ListResponse) GetGroups() []*Group

func (*ListResponse) GetTotal

func (x *ListResponse) GetTotal() uint64

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type MemberID

type MemberID struct {

	// Types that are assignable to Kind:
	//
	//	*MemberID_ServiceAccountId
	//	*MemberID_UserId
	Kind isMemberID_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

MemberID is a union of service account id and user id.

func (*MemberID) Descriptor deprecated

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

Deprecated: Use MemberID.ProtoReflect.Descriptor instead.

func (*MemberID) GetKind

func (m *MemberID) GetKind() isMemberID_Kind

func (*MemberID) GetServiceAccountId

func (x *MemberID) GetServiceAccountId() string

func (*MemberID) GetUserId

func (x *MemberID) GetUserId() string

func (*MemberID) ProtoMessage

func (*MemberID) ProtoMessage()

func (*MemberID) ProtoReflect

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

func (*MemberID) Reset

func (x *MemberID) Reset()

func (*MemberID) String

func (x *MemberID) String() string

type MemberID_ServiceAccountId

type MemberID_ServiceAccountId struct {
	// ID of a service account.
	ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3,oneof"`
}

type MemberID_UserId

type MemberID_UserId struct {
	// ID of a user.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof"`
}

type RemoveMemberRequest

type RemoveMemberRequest struct {

	// The group to remove the member from.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// The member to remove.
	MemberId *MemberID `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// contains filtered or unexported fields
}

Request for removing a member from a group.

func (*RemoveMemberRequest) Descriptor deprecated

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

Deprecated: Use RemoveMemberRequest.ProtoReflect.Descriptor instead.

func (*RemoveMemberRequest) GetGroupId

func (x *RemoveMemberRequest) GetGroupId() string

func (*RemoveMemberRequest) GetMemberId

func (x *RemoveMemberRequest) GetMemberId() *MemberID

func (*RemoveMemberRequest) ProtoMessage

func (*RemoveMemberRequest) ProtoMessage()

func (*RemoveMemberRequest) ProtoReflect

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

func (*RemoveMemberRequest) Reset

func (x *RemoveMemberRequest) Reset()

func (*RemoveMemberRequest) String

func (x *RemoveMemberRequest) String() string

type RemoveMemberResponse

type RemoveMemberResponse struct {
	// contains filtered or unexported fields
}

Empty response for removing a member from a group.

func (*RemoveMemberResponse) Descriptor deprecated

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

Deprecated: Use RemoveMemberResponse.ProtoReflect.Descriptor instead.

func (*RemoveMemberResponse) ProtoMessage

func (*RemoveMemberResponse) ProtoMessage()

func (*RemoveMemberResponse) ProtoReflect

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

func (*RemoveMemberResponse) Reset

func (x *RemoveMemberResponse) Reset()

func (*RemoveMemberResponse) String

func (x *RemoveMemberResponse) String() string

type ServiceClient

type ServiceClient interface {
	// Create a new group.
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	// Delete a group.
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	// List groups.
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	// Update group.
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	// Get group.
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	// Add a member to a group.
	AddMember(ctx context.Context, in *AddMemberRequest, opts ...grpc.CallOption) (*AddMemberResponse, error)
	// Remove member from group.
	RemoveMember(ctx context.Context, in *RemoveMemberRequest, opts ...grpc.CallOption) (*RemoveMemberResponse, error)
	// Get Group Members.
	ListMembers(ctx context.Context, in *ListMembersRequest, opts ...grpc.CallOption) (*ListMembersResponse, error)
	// Get Groups.
	ListGroupsForMember(ctx context.Context, in *ListGroupsForMemberRequest, opts ...grpc.CallOption) (*ListGroupsForMemberResponse, error)
}

ServiceClient is the client API for Service 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.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	// Create a new group.
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// Delete a group.
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// List groups.
	List(context.Context, *ListRequest) (*ListResponse, error)
	// Update group.
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// Get group.
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// Add a member to a group.
	AddMember(context.Context, *AddMemberRequest) (*AddMemberResponse, error)
	// Remove member from group.
	RemoveMember(context.Context, *RemoveMemberRequest) (*RemoveMemberResponse, error)
	// Get Group Members.
	ListMembers(context.Context, *ListMembersRequest) (*ListMembersResponse, error)
	// Get Groups.
	ListGroupsForMember(context.Context, *ListGroupsForMemberRequest) (*ListGroupsForMemberResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddMember

func (UnimplementedServiceServer) Create

func (UnimplementedServiceServer) Delete

func (UnimplementedServiceServer) Get

func (UnimplementedServiceServer) List

func (UnimplementedServiceServer) ListMembers

func (UnimplementedServiceServer) RemoveMember

func (UnimplementedServiceServer) Update

type UnsafeServiceServer

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

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

type Update

type Update struct {

	// Types that are assignable to Field:
	//
	//	*Update_GroupId
	//	*Update_SetMetadata
	//	*Update_DeleteMetadataKey
	Field isUpdate_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

An update msg for a group.

func (*Update) Descriptor deprecated

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

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetDeleteMetadataKey

func (x *Update) GetDeleteMetadataKey() string

func (*Update) GetField

func (m *Update) GetField() isUpdate_Field

func (*Update) GetGroupId

func (x *Update) GetGroupId() string

func (*Update) GetSetMetadata

func (x *Update) GetSetMetadata() *model.Metadata

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

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

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

type UpdateRequest

type UpdateRequest struct {

	// The updates to apply.
	Updates []*Update `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	// The group id.
	GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

The request of a Groups.Update RPC.

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetGroupId

func (x *UpdateRequest) GetGroupId() string

func (*UpdateRequest) GetUpdates

func (x *UpdateRequest) GetUpdates() []*Update

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
	// contains filtered or unexported fields
}

The response of a Groups.Update RPC.

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

type Update_DeleteMetadataKey

type Update_DeleteMetadataKey struct {
	// Delete a metadata entry.
	DeleteMetadataKey string `protobuf:"bytes,3,opt,name=delete_metadata_key,json=deleteMetadataKey,proto3,oneof"`
}

type Update_GroupId

type Update_GroupId struct {
	// Update the unique group name.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3,oneof"`
}

type Update_SetMetadata

type Update_SetMetadata struct {
	// Update or create a metadata entry.
	SetMetadata *model.Metadata `protobuf:"bytes,2,opt,name=set_metadata,json=setMetadata,proto3,oneof"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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