label

package
v0.0.0-...-e47837b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kentik_label_v202203alpha1_label_proto protoreflect.FileDescriptor
View Source
var LabelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kentik.label.v202203alpha1.LabelService",
	HandlerType: (*LabelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListLabels",
			Handler:    _LabelService_ListLabels_Handler,
		},
		{
			MethodName: "CreateLabel",
			Handler:    _LabelService_CreateLabel_Handler,
		},
		{
			MethodName: "UpdateLabel",
			Handler:    _LabelService_UpdateLabel_Handler,
		},
		{
			MethodName: "DeleteLabel",
			Handler:    _LabelService_DeleteLabel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kentik/label/v202203alpha1/label.proto",
}

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

Functions

func RegisterLabelServiceServer

func RegisterLabelServiceServer(s grpc.ServiceRegistrar, srv LabelServiceServer)

Types

type CreateLabelRequest

type CreateLabelRequest struct {
	Label *Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLabelRequest) Descriptor deprecated

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

Deprecated: Use CreateLabelRequest.ProtoReflect.Descriptor instead.

func (*CreateLabelRequest) GetLabel

func (x *CreateLabelRequest) GetLabel() *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 {
	Label *Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLabelResponse) Descriptor deprecated

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

Deprecated: Use CreateLabelResponse.ProtoReflect.Descriptor instead.

func (*CreateLabelResponse) GetLabel

func (x *CreateLabelResponse) GetLabel() *Label

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 {

	// ID of label.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteLabelRequest) Descriptor deprecated

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

Deprecated: Use DeleteLabelRequest.ProtoReflect.Descriptor instead.

func (*DeleteLabelRequest) GetId

func (x *DeleteLabelRequest) GetId() 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
}

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 Label

type Label struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// hex color code value
	Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"`
	// Create timestamp.
	Cdate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=cdate,proto3" json:"cdate,omitempty"`
	// Update timestamp.
	Edate *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=edate,proto3" json:"edate,omitempty"`
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetCdate

func (x *Label) GetCdate() *timestamppb.Timestamp

func (*Label) GetColor

func (x *Label) GetColor() string

func (*Label) GetDescription

func (x *Label) GetDescription() string

func (*Label) GetEdate

func (x *Label) GetEdate() *timestamppb.Timestamp

func (*Label) GetId

func (x *Label) GetId() string

func (*Label) GetName

func (x *Label) GetName() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type LabelServiceClient

type LabelServiceClient interface {
	ListLabels(ctx context.Context, in *ListLabelsRequest, opts ...grpc.CallOption) (*ListLabelsResponse, error)
	CreateLabel(ctx context.Context, in *CreateLabelRequest, opts ...grpc.CallOption) (*CreateLabelResponse, error)
	UpdateLabel(ctx context.Context, in *UpdateLabelRequest, opts ...grpc.CallOption) (*UpdateLabelResponse, error)
	DeleteLabel(ctx context.Context, in *DeleteLabelRequest, opts ...grpc.CallOption) (*DeleteLabelResponse, error)
}

LabelServiceClient is the client API for LabelService 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 LabelServiceServer

LabelServiceServer is the server API for LabelService service. All implementations should embed UnimplementedLabelServiceServer for forward compatibility

type ListLabelsRequest

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

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 {
	Labels       []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	InvalidCount int32    `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLabelsResponse) Descriptor deprecated

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

Deprecated: Use ListLabelsResponse.ProtoReflect.Descriptor instead.

func (*ListLabelsResponse) GetInvalidCount

func (x *ListLabelsResponse) GetInvalidCount() int32

func (*ListLabelsResponse) GetLabels

func (x *ListLabelsResponse) GetLabels() []*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 UnimplementedLabelServiceServer

type UnimplementedLabelServiceServer struct {
}

UnimplementedLabelServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedLabelServiceServer) CreateLabel

func (UnimplementedLabelServiceServer) DeleteLabel

func (UnimplementedLabelServiceServer) ListLabels

func (UnimplementedLabelServiceServer) UpdateLabel

type UnsafeLabelServiceServer

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

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

type UpdateLabelRequest

type UpdateLabelRequest struct {
	Label *Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateLabelRequest) Descriptor deprecated

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

Deprecated: Use UpdateLabelRequest.ProtoReflect.Descriptor instead.

func (*UpdateLabelRequest) GetLabel

func (x *UpdateLabelRequest) GetLabel() *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 {
	Label *Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateLabelResponse) Descriptor deprecated

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

Deprecated: Use UpdateLabelResponse.ProtoReflect.Descriptor instead.

func (*UpdateLabelResponse) GetLabel

func (x *UpdateLabelResponse) GetLabel() *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

Jump to

Keyboard shortcuts

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