labels

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelsService_CreateLabel_FullMethodName         = "/api.v1alpha1.org.labels.LabelsService/CreateLabel"
	LabelsService_GetLabel_FullMethodName            = "/api.v1alpha1.org.labels.LabelsService/GetLabel"
	LabelsService_UpdateLabel_FullMethodName         = "/api.v1alpha1.org.labels.LabelsService/UpdateLabel"
	LabelsService_ListLabels_FullMethodName          = "/api.v1alpha1.org.labels.LabelsService/ListLabels"
	LabelsService_DeleteLabel_FullMethodName         = "/api.v1alpha1.org.labels.LabelsService/DeleteLabel"
	LabelsService_AttachLabel_FullMethodName         = "/api.v1alpha1.org.labels.LabelsService/AttachLabel"
	LabelsService_DetachLabel_FullMethodName         = "/api.v1alpha1.org.labels.LabelsService/DetachLabel"
	LabelsService_GetLabeledEntityMap_FullMethodName = "/api.v1alpha1.org.labels.LabelsService/GetLabeledEntityMap"
	LabelsService_AssignLabels_FullMethodName        = "/api.v1alpha1.org.labels.LabelsService/AssignLabels"
	LabelsService_RevokeLabels_FullMethodName        = "/api.v1alpha1.org.labels.LabelsService/RevokeLabels"
)

Variables

View Source
var File_api_v1alpha1_org_labels_entities_proto protoreflect.FileDescriptor
View Source
var File_api_v1alpha1_org_labels_service_proto protoreflect.FileDescriptor
View Source
var LabelsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1alpha1.org.labels.LabelsService",
	HandlerType: (*LabelsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateLabel",
			Handler:    _LabelsService_CreateLabel_Handler,
		},
		{
			MethodName: "GetLabel",
			Handler:    _LabelsService_GetLabel_Handler,
		},
		{
			MethodName: "UpdateLabel",
			Handler:    _LabelsService_UpdateLabel_Handler,
		},
		{
			MethodName: "ListLabels",
			Handler:    _LabelsService_ListLabels_Handler,
		},
		{
			MethodName: "DeleteLabel",
			Handler:    _LabelsService_DeleteLabel_Handler,
		},
		{
			MethodName: "AttachLabel",
			Handler:    _LabelsService_AttachLabel_Handler,
		},
		{
			MethodName: "DetachLabel",
			Handler:    _LabelsService_DetachLabel_Handler,
		},
		{
			MethodName: "GetLabeledEntityMap",
			Handler:    _LabelsService_GetLabeledEntityMap_Handler,
		},
		{
			MethodName: "AssignLabels",
			Handler:    _LabelsService_AssignLabels_Handler,
		},
		{
			MethodName: "RevokeLabels",
			Handler:    _LabelsService_RevokeLabels_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1alpha1/org/labels/service.proto",
}

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

Functions

func RegisterLabelsServiceServer

func RegisterLabelsServiceServer(s grpc.ServiceRegistrar, srv LabelsServiceServer)

Types

type AssignLabelsRequest added in v1.7.79

type AssignLabelsRequest struct {

	// Ids of labels getting assigned to a permission group.
	LabelIds []string `protobuf:"bytes,1,rep,name=label_ids,json=labelIds,proto3" json:"label_ids,omitempty"`
	// Id of the permission group to be assigned labels.
	PermissionGroupId string `protobuf:"bytes,2,opt,name=permission_group_id,json=permissionGroupId,proto3" json:"permission_group_id,omitempty"`
	// contains filtered or unexported fields
}

AssignLabelsRequest is the message for the AssignLabelsRequest RPC.

func (*AssignLabelsRequest) Descriptor deprecated added in v1.7.79

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

Deprecated: Use AssignLabelsRequest.ProtoReflect.Descriptor instead.

func (*AssignLabelsRequest) GetLabelIds added in v1.7.79

func (x *AssignLabelsRequest) GetLabelIds() []string

func (*AssignLabelsRequest) GetPermissionGroupId added in v1.7.79

func (x *AssignLabelsRequest) GetPermissionGroupId() string

func (*AssignLabelsRequest) ProtoMessage added in v1.7.79

func (*AssignLabelsRequest) ProtoMessage()

func (*AssignLabelsRequest) ProtoReflect added in v1.7.79

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

func (*AssignLabelsRequest) Reset added in v1.7.79

func (x *AssignLabelsRequest) Reset()

func (*AssignLabelsRequest) String added in v1.7.79

func (x *AssignLabelsRequest) String() string

type AssignLabelsResponse added in v1.7.79

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

Response message for the AssignLabelsResponse RPC.

func (*AssignLabelsResponse) Descriptor deprecated added in v1.7.79

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

Deprecated: Use AssignLabelsResponse.ProtoReflect.Descriptor instead.

func (*AssignLabelsResponse) ProtoMessage added in v1.7.79

func (*AssignLabelsResponse) ProtoMessage()

func (*AssignLabelsResponse) ProtoReflect added in v1.7.79

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

func (*AssignLabelsResponse) Reset added in v1.7.79

func (x *AssignLabelsResponse) Reset()

func (*AssignLabelsResponse) String added in v1.7.79

func (x *AssignLabelsResponse) String() string

type AttachLabelRequest

type AttachLabelRequest struct {

	// The label id to attach to the entity
	LabelId string `protobuf:"bytes,1,opt,name=label_id,json=labelId,proto3" json:"label_id,omitempty"`
	// The ID of the entity that is being labeled
	EntityId string `protobuf:"bytes,2,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The given entity type to attach the label to
	EntityType commons.LabeledEntity `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=api.commons.LabeledEntity" json:"entity_type,omitempty"`
	// contains filtered or unexported fields
}

Request message for the AttachLabel rpc.

func (*AttachLabelRequest) Descriptor deprecated

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

Deprecated: Use AttachLabelRequest.ProtoReflect.Descriptor instead.

func (*AttachLabelRequest) GetEntityId

func (x *AttachLabelRequest) GetEntityId() string

func (*AttachLabelRequest) GetEntityType

func (x *AttachLabelRequest) GetEntityType() commons.LabeledEntity

func (*AttachLabelRequest) GetLabelId

func (x *AttachLabelRequest) GetLabelId() string

func (*AttachLabelRequest) ProtoMessage

func (*AttachLabelRequest) ProtoMessage()

func (*AttachLabelRequest) ProtoReflect

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

func (*AttachLabelRequest) Reset

func (x *AttachLabelRequest) Reset()

func (*AttachLabelRequest) String

func (x *AttachLabelRequest) String() string

type AttachLabelResponse

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

Response message for the AttachLabel rpc.

func (*AttachLabelResponse) Descriptor deprecated

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

Deprecated: Use AttachLabelResponse.ProtoReflect.Descriptor instead.

func (*AttachLabelResponse) ProtoMessage

func (*AttachLabelResponse) ProtoMessage()

func (*AttachLabelResponse) ProtoReflect

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

func (*AttachLabelResponse) Reset

func (x *AttachLabelResponse) Reset()

func (*AttachLabelResponse) String

func (x *AttachLabelResponse) String() string

type CreateLabelRequest

type CreateLabelRequest struct {

	// The label object that will be created
	Label *org.Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

Request message for the CreateLabel rpc.

func (*CreateLabelRequest) Descriptor deprecated

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

Deprecated: Use CreateLabelRequest.ProtoReflect.Descriptor instead.

func (*CreateLabelRequest) GetLabel

func (x *CreateLabelRequest) GetLabel() *org.Label

func (*CreateLabelRequest) ProtoMessage

func (*CreateLabelRequest) ProtoMessage()

func (*CreateLabelRequest) ProtoReflect

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

func (*CreateLabelRequest) Reset

func (x *CreateLabelRequest) Reset()

func (*CreateLabelRequest) String

func (x *CreateLabelRequest) String() string

type CreateLabelResponse

type CreateLabelResponse struct {

	// The ID of the created label
	LabelId string `protobuf:"bytes,1,opt,name=label_id,json=labelId,proto3" json:"label_id,omitempty"`
	// contains filtered or unexported fields
}

Response message for the CreateLabel rpc.

func (*CreateLabelResponse) Descriptor deprecated

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

Deprecated: Use CreateLabelResponse.ProtoReflect.Descriptor instead.

func (*CreateLabelResponse) GetLabelId

func (x *CreateLabelResponse) GetLabelId() string

func (*CreateLabelResponse) ProtoMessage

func (*CreateLabelResponse) ProtoMessage()

func (*CreateLabelResponse) ProtoReflect

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

func (*CreateLabelResponse) Reset

func (x *CreateLabelResponse) Reset()

func (*CreateLabelResponse) String

func (x *CreateLabelResponse) String() string

type DeleteLabelRequest

type DeleteLabelRequest struct {

	// The label id to delete the label
	LabelId string `protobuf:"bytes,1,opt,name=label_id,json=labelId,proto3" json:"label_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DeleteLabel rpc.

func (*DeleteLabelRequest) Descriptor deprecated

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

Deprecated: Use DeleteLabelRequest.ProtoReflect.Descriptor instead.

func (*DeleteLabelRequest) GetLabelId

func (x *DeleteLabelRequest) GetLabelId() string

func (*DeleteLabelRequest) ProtoMessage

func (*DeleteLabelRequest) ProtoMessage()

func (*DeleteLabelRequest) ProtoReflect

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

func (*DeleteLabelRequest) Reset

func (x *DeleteLabelRequest) Reset()

func (*DeleteLabelRequest) String

func (x *DeleteLabelRequest) String() string

type DeleteLabelResponse

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

Response message for the DeleteLabel rpc.

func (*DeleteLabelResponse) Descriptor deprecated

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

Deprecated: Use DeleteLabelResponse.ProtoReflect.Descriptor instead.

func (*DeleteLabelResponse) ProtoMessage

func (*DeleteLabelResponse) ProtoMessage()

func (*DeleteLabelResponse) ProtoReflect

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

func (*DeleteLabelResponse) Reset

func (x *DeleteLabelResponse) Reset()

func (*DeleteLabelResponse) String

func (x *DeleteLabelResponse) String() string

type DetachLabelRequest added in v1.7.76

type DetachLabelRequest struct {

	// The label id to detach from the entity
	LabelId string `protobuf:"bytes,1,opt,name=label_id,json=labelId,proto3" json:"label_id,omitempty"`
	// The ID of the entity that will have the label detached
	EntityId string `protobuf:"bytes,2,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The entity type to detach the label from
	EntityType commons.LabeledEntity `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=api.commons.LabeledEntity" json:"entity_type,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DetachLabel rpc.

func (*DetachLabelRequest) Descriptor deprecated added in v1.7.76

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

Deprecated: Use DetachLabelRequest.ProtoReflect.Descriptor instead.

func (*DetachLabelRequest) GetEntityId added in v1.7.76

func (x *DetachLabelRequest) GetEntityId() string

func (*DetachLabelRequest) GetEntityType added in v1.7.76

func (x *DetachLabelRequest) GetEntityType() commons.LabeledEntity

func (*DetachLabelRequest) GetLabelId added in v1.7.76

func (x *DetachLabelRequest) GetLabelId() string

func (*DetachLabelRequest) ProtoMessage added in v1.7.76

func (*DetachLabelRequest) ProtoMessage()

func (*DetachLabelRequest) ProtoReflect added in v1.7.76

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

func (*DetachLabelRequest) Reset added in v1.7.76

func (x *DetachLabelRequest) Reset()

func (*DetachLabelRequest) String added in v1.7.76

func (x *DetachLabelRequest) String() string

type DetachLabelResponse added in v1.7.76

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

Response message for the DetachLabel rpc.

func (*DetachLabelResponse) Descriptor deprecated added in v1.7.76

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

Deprecated: Use DetachLabelResponse.ProtoReflect.Descriptor instead.

func (*DetachLabelResponse) ProtoMessage added in v1.7.76

func (*DetachLabelResponse) ProtoMessage()

func (*DetachLabelResponse) ProtoReflect added in v1.7.76

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

func (*DetachLabelResponse) Reset added in v1.7.76

func (x *DetachLabelResponse) Reset()

func (*DetachLabelResponse) String added in v1.7.76

func (x *DetachLabelResponse) String() string

type GetLabelRequest

type GetLabelRequest struct {

	// The label id to get the label
	LabelId string `protobuf:"bytes,1,opt,name=label_id,json=labelId,proto3" json:"label_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the GetLabel rpc.

func (*GetLabelRequest) Descriptor deprecated

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

Deprecated: Use GetLabelRequest.ProtoReflect.Descriptor instead.

func (*GetLabelRequest) GetLabelId

func (x *GetLabelRequest) GetLabelId() string

func (*GetLabelRequest) ProtoMessage

func (*GetLabelRequest) ProtoMessage()

func (*GetLabelRequest) ProtoReflect

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

func (*GetLabelRequest) Reset

func (x *GetLabelRequest) Reset()

func (*GetLabelRequest) String

func (x *GetLabelRequest) String() string

type GetLabelResponse

type GetLabelResponse struct {

	// The label that was requested
	Label *org.Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

Response message for the GetLabel rpc.

func (*GetLabelResponse) Descriptor deprecated

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

Deprecated: Use GetLabelResponse.ProtoReflect.Descriptor instead.

func (*GetLabelResponse) GetLabel

func (x *GetLabelResponse) GetLabel() *org.Label

func (*GetLabelResponse) ProtoMessage

func (*GetLabelResponse) ProtoMessage()

func (*GetLabelResponse) ProtoReflect

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

func (*GetLabelResponse) Reset

func (x *GetLabelResponse) Reset()

func (*GetLabelResponse) String

func (x *GetLabelResponse) String() string

type GetLabeledEntityMapRequest

type GetLabeledEntityMapRequest struct {

	// The entity type to get back
	EntityType commons.LabeledEntity `protobuf:"varint,1,opt,name=entity_type,json=entityType,proto3,enum=api.commons.LabeledEntity" json:"entity_type,omitempty"`
	// contains filtered or unexported fields
}

Request message for the GetLabeledEntityMapRequest rpc.

func (*GetLabeledEntityMapRequest) Descriptor deprecated

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

Deprecated: Use GetLabeledEntityMapRequest.ProtoReflect.Descriptor instead.

func (*GetLabeledEntityMapRequest) GetEntityType

func (*GetLabeledEntityMapRequest) ProtoMessage

func (*GetLabeledEntityMapRequest) ProtoMessage()

func (*GetLabeledEntityMapRequest) ProtoReflect

func (*GetLabeledEntityMapRequest) Reset

func (x *GetLabeledEntityMapRequest) Reset()

func (*GetLabeledEntityMapRequest) String

func (x *GetLabeledEntityMapRequest) String() string

type GetLabeledEntityMapResponse

type GetLabeledEntityMapResponse struct {

	// The map of entity ID to its attached labels
	EntityMap map[string]*GetLabeledEntityMapResponse_EntityLabels `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response message for the GetLabeledEntityMapResponse rpc.

func (*GetLabeledEntityMapResponse) Descriptor deprecated

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

Deprecated: Use GetLabeledEntityMapResponse.ProtoReflect.Descriptor instead.

func (*GetLabeledEntityMapResponse) GetEntityMap

func (*GetLabeledEntityMapResponse) ProtoMessage

func (*GetLabeledEntityMapResponse) ProtoMessage()

func (*GetLabeledEntityMapResponse) ProtoReflect

func (*GetLabeledEntityMapResponse) Reset

func (x *GetLabeledEntityMapResponse) Reset()

func (*GetLabeledEntityMapResponse) String

func (x *GetLabeledEntityMapResponse) String() string

type GetLabeledEntityMapResponse_EntityLabels

type GetLabeledEntityMapResponse_EntityLabels struct {

	// Attached labels of a given entity
	Labels []*org.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLabeledEntityMapResponse_EntityLabels) Descriptor deprecated

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

Deprecated: Use GetLabeledEntityMapResponse_EntityLabels.ProtoReflect.Descriptor instead.

func (*GetLabeledEntityMapResponse_EntityLabels) GetLabels

func (*GetLabeledEntityMapResponse_EntityLabels) ProtoMessage

func (*GetLabeledEntityMapResponse_EntityLabels) ProtoReflect

func (*GetLabeledEntityMapResponse_EntityLabels) Reset

func (*GetLabeledEntityMapResponse_EntityLabels) String

type LabelsServiceClient

type LabelsServiceClient interface {
	// CreateLabel creates a new label.
	CreateLabel(ctx context.Context, in *CreateLabelRequest, opts ...grpc.CallOption) (*CreateLabelResponse, error)
	// GetLabel gets a single label
	GetLabel(ctx context.Context, in *GetLabelRequest, opts ...grpc.CallOption) (*GetLabelResponse, error)
	// UpdateLabel updates a single label
	UpdateLabel(ctx context.Context, in *UpdateLabelRequest, opts ...grpc.CallOption) (*UpdateLabelResponse, error)
	// ListLabels lists all labels for a given organization
	ListLabels(ctx context.Context, in *ListLabelsRequest, opts ...grpc.CallOption) (*ListLabelsResponse, error)
	// DeleteLabel deletes a single label
	DeleteLabel(ctx context.Context, in *DeleteLabelRequest, opts ...grpc.CallOption) (*DeleteLabelResponse, error)
	// AttachLabel attaches a label to a given entity type
	AttachLabel(ctx context.Context, in *AttachLabelRequest, opts ...grpc.CallOption) (*AttachLabelResponse, error)
	// DetachLabel detaches a label from an entity based on an entity type
	DetachLabel(ctx context.Context, in *DetachLabelRequest, opts ...grpc.CallOption) (*DetachLabelResponse, error)
	// GetLabeledEntityMap gives back a map of entity Id to attached labels. The Entity type is specified on the request
	GetLabeledEntityMap(ctx context.Context, in *GetLabeledEntityMapRequest, opts ...grpc.CallOption) (*GetLabeledEntityMapResponse, error)
	// AssignLabels assigns labels to a specific permission group.
	AssignLabels(ctx context.Context, in *AssignLabelsRequest, opts ...grpc.CallOption) (*AssignLabelsResponse, error)
	// RevokeLabels revokes labels from a specific permission group.
	RevokeLabels(ctx context.Context, in *RevokeLabelsRequest, opts ...grpc.CallOption) (*RevokeLabelsResponse, error)
}

LabelsServiceClient is the client API for LabelsService 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 LabelsServiceServer

type LabelsServiceServer interface {
	// CreateLabel creates a new label.
	CreateLabel(context.Context, *CreateLabelRequest) (*CreateLabelResponse, error)
	// GetLabel gets a single label
	GetLabel(context.Context, *GetLabelRequest) (*GetLabelResponse, error)
	// UpdateLabel updates a single label
	UpdateLabel(context.Context, *UpdateLabelRequest) (*UpdateLabelResponse, error)
	// ListLabels lists all labels for a given organization
	ListLabels(context.Context, *ListLabelsRequest) (*ListLabelsResponse, error)
	// DeleteLabel deletes a single label
	DeleteLabel(context.Context, *DeleteLabelRequest) (*DeleteLabelResponse, error)
	// AttachLabel attaches a label to a given entity type
	AttachLabel(context.Context, *AttachLabelRequest) (*AttachLabelResponse, error)
	// DetachLabel detaches a label from an entity based on an entity type
	DetachLabel(context.Context, *DetachLabelRequest) (*DetachLabelResponse, error)
	// GetLabeledEntityMap gives back a map of entity Id to attached labels. The Entity type is specified on the request
	GetLabeledEntityMap(context.Context, *GetLabeledEntityMapRequest) (*GetLabeledEntityMapResponse, error)
	// AssignLabels assigns labels to a specific permission group.
	AssignLabels(context.Context, *AssignLabelsRequest) (*AssignLabelsResponse, error)
	// RevokeLabels revokes labels from a specific permission group.
	RevokeLabels(context.Context, *RevokeLabelsRequest) (*RevokeLabelsResponse, error)
	// contains filtered or unexported methods
}

LabelsServiceServer is the server API for LabelsService service. All implementations must embed UnimplementedLabelsServiceServer for forward compatibility

type ListLabelsRequest

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

Request message for the ListLabels rpc.

func (*ListLabelsRequest) Descriptor deprecated

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

Deprecated: Use ListLabelsRequest.ProtoReflect.Descriptor instead.

func (*ListLabelsRequest) ProtoMessage

func (*ListLabelsRequest) ProtoMessage()

func (*ListLabelsRequest) ProtoReflect

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

func (*ListLabelsRequest) Reset

func (x *ListLabelsRequest) Reset()

func (*ListLabelsRequest) String

func (x *ListLabelsRequest) String() string

type ListLabelsResponse

type ListLabelsResponse struct {

	// The labels for the users organization
	Label []*org.Label `protobuf:"bytes,1,rep,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListLabels rpc.

func (*ListLabelsResponse) Descriptor deprecated

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

Deprecated: Use ListLabelsResponse.ProtoReflect.Descriptor instead.

func (*ListLabelsResponse) GetLabel

func (x *ListLabelsResponse) GetLabel() []*org.Label

func (*ListLabelsResponse) ProtoMessage

func (*ListLabelsResponse) ProtoMessage()

func (*ListLabelsResponse) ProtoReflect

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

func (*ListLabelsResponse) Reset

func (x *ListLabelsResponse) Reset()

func (*ListLabelsResponse) String

func (x *ListLabelsResponse) String() string

type RevokeLabelsRequest added in v1.7.79

type RevokeLabelsRequest struct {

	// Ids of labels getting revoked from a permission group.
	LabelIds []string `protobuf:"bytes,1,rep,name=label_ids,json=labelIds,proto3" json:"label_ids,omitempty"`
	// Id of the permission group to have labels revoked.
	PermissionGroupId string `protobuf:"bytes,2,opt,name=permission_group_id,json=permissionGroupId,proto3" json:"permission_group_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the RevokeLabelsRequest RPC.

func (*RevokeLabelsRequest) Descriptor deprecated added in v1.7.79

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

Deprecated: Use RevokeLabelsRequest.ProtoReflect.Descriptor instead.

func (*RevokeLabelsRequest) GetLabelIds added in v1.7.79

func (x *RevokeLabelsRequest) GetLabelIds() []string

func (*RevokeLabelsRequest) GetPermissionGroupId added in v1.7.79

func (x *RevokeLabelsRequest) GetPermissionGroupId() string

func (*RevokeLabelsRequest) ProtoMessage added in v1.7.79

func (*RevokeLabelsRequest) ProtoMessage()

func (*RevokeLabelsRequest) ProtoReflect added in v1.7.79

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

func (*RevokeLabelsRequest) Reset added in v1.7.79

func (x *RevokeLabelsRequest) Reset()

func (*RevokeLabelsRequest) String added in v1.7.79

func (x *RevokeLabelsRequest) String() string

type RevokeLabelsResponse added in v1.7.79

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

Response message for the RevokeLabelsResponse RPC.

func (*RevokeLabelsResponse) Descriptor deprecated added in v1.7.79

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

Deprecated: Use RevokeLabelsResponse.ProtoReflect.Descriptor instead.

func (*RevokeLabelsResponse) ProtoMessage added in v1.7.79

func (*RevokeLabelsResponse) ProtoMessage()

func (*RevokeLabelsResponse) ProtoReflect added in v1.7.79

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

func (*RevokeLabelsResponse) Reset added in v1.7.79

func (x *RevokeLabelsResponse) Reset()

func (*RevokeLabelsResponse) String added in v1.7.79

func (x *RevokeLabelsResponse) String() string

type UnimplementedLabelsServiceServer

type UnimplementedLabelsServiceServer struct {
}

UnimplementedLabelsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLabelsServiceServer) AssignLabels added in v1.7.79

func (UnimplementedLabelsServiceServer) AttachLabel

func (UnimplementedLabelsServiceServer) CreateLabel

func (UnimplementedLabelsServiceServer) DeleteLabel

func (UnimplementedLabelsServiceServer) DetachLabel added in v1.7.76

func (UnimplementedLabelsServiceServer) GetLabel

func (UnimplementedLabelsServiceServer) ListLabels

func (UnimplementedLabelsServiceServer) RevokeLabels added in v1.7.79

func (UnimplementedLabelsServiceServer) UpdateLabel

type UnsafeLabelsServiceServer

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

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

type UpdateLabelRequest

type UpdateLabelRequest struct {

	// The label object that will be updated
	Label *org.Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// The field to be updated
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

Request message for the UpdateLabel rpc.

func (*UpdateLabelRequest) Descriptor deprecated

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

Deprecated: Use UpdateLabelRequest.ProtoReflect.Descriptor instead.

func (*UpdateLabelRequest) GetFieldMask

func (x *UpdateLabelRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*UpdateLabelRequest) GetLabel

func (x *UpdateLabelRequest) GetLabel() *org.Label

func (*UpdateLabelRequest) ProtoMessage

func (*UpdateLabelRequest) ProtoMessage()

func (*UpdateLabelRequest) ProtoReflect

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

func (*UpdateLabelRequest) Reset

func (x *UpdateLabelRequest) Reset()

func (*UpdateLabelRequest) String

func (x *UpdateLabelRequest) String() string

type UpdateLabelResponse

type UpdateLabelResponse struct {

	// The updated resource
	Label *org.Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

Response message for the UpdateLabel rpc.

func (*UpdateLabelResponse) Descriptor deprecated

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

Deprecated: Use UpdateLabelResponse.ProtoReflect.Descriptor instead.

func (*UpdateLabelResponse) GetLabel

func (x *UpdateLabelResponse) GetLabel() *org.Label

func (*UpdateLabelResponse) ProtoMessage

func (*UpdateLabelResponse) ProtoMessage()

func (*UpdateLabelResponse) ProtoReflect

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

func (*UpdateLabelResponse) Reset

func (x *UpdateLabelResponse) Reset()

func (*UpdateLabelResponse) String

func (x *UpdateLabelResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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