package v1

import "github.com/cncf/xds/go/udpa/service/orca/v1"

Index

Constants

const (
	OpenRcaService_StreamCoreMetrics_FullMethodName = "/udpa.service.orca.v1.OpenRcaService/StreamCoreMetrics"
)

Variables

var File_udpa_service_orca_v1_orca_proto protoreflect.FileDescriptor
var OpenRcaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "udpa.service.orca.v1.OpenRcaService",
	HandlerType: (*OpenRcaServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamCoreMetrics",
			Handler:       _OpenRcaService_StreamCoreMetrics_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "udpa/service/orca/v1/orca.proto",
}

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

Functions

func RegisterOpenRcaServiceServer

func RegisterOpenRcaServiceServer(s grpc.ServiceRegistrar, srv OpenRcaServiceServer)

Types

type OpenRcaServiceClient

type OpenRcaServiceClient interface {
	StreamCoreMetrics(ctx context.Context, in *OrcaLoadReportRequest, opts ...grpc.CallOption) (OpenRcaService_StreamCoreMetricsClient, error)
}

OpenRcaServiceClient is the client API for OpenRcaService 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 NewOpenRcaServiceClient

func NewOpenRcaServiceClient(cc grpc.ClientConnInterface) OpenRcaServiceClient

type OpenRcaServiceServer

type OpenRcaServiceServer interface {
	StreamCoreMetrics(*OrcaLoadReportRequest, OpenRcaService_StreamCoreMetricsServer) error
}

OpenRcaServiceServer is the server API for OpenRcaService service. All implementations should embed UnimplementedOpenRcaServiceServer for forward compatibility

type OpenRcaService_StreamCoreMetricsClient

type OpenRcaService_StreamCoreMetricsClient interface {
	Recv() (*v1.OrcaLoadReport, error)
	grpc.ClientStream
}

type OpenRcaService_StreamCoreMetricsServer

type OpenRcaService_StreamCoreMetricsServer interface {
	Send(*v1.OrcaLoadReport) error
	grpc.ServerStream
}

type OrcaLoadReportRequest

type OrcaLoadReportRequest struct {
	ReportInterval   *durationpb.Duration `protobuf:"bytes,1,opt,name=report_interval,json=reportInterval,proto3" json:"report_interval,omitempty"`
	RequestCostNames []string             `protobuf:"bytes,2,rep,name=request_cost_names,json=requestCostNames,proto3" json:"request_cost_names,omitempty"`
	// contains filtered or unexported fields
}

func (*OrcaLoadReportRequest) Descriptor

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

Deprecated: Use OrcaLoadReportRequest.ProtoReflect.Descriptor instead.

func (*OrcaLoadReportRequest) GetReportInterval

func (x *OrcaLoadReportRequest) GetReportInterval() *durationpb.Duration

func (*OrcaLoadReportRequest) GetRequestCostNames

func (x *OrcaLoadReportRequest) GetRequestCostNames() []string

func (*OrcaLoadReportRequest) ProtoMessage

func (*OrcaLoadReportRequest) ProtoMessage()

func (*OrcaLoadReportRequest) ProtoReflect

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

func (*OrcaLoadReportRequest) Reset

func (x *OrcaLoadReportRequest) Reset()

func (*OrcaLoadReportRequest) String

func (x *OrcaLoadReportRequest) String() string

func (*OrcaLoadReportRequest) Validate

func (m *OrcaLoadReportRequest) Validate() error

Validate checks the field values on OrcaLoadReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OrcaLoadReportRequest) ValidateAll

func (m *OrcaLoadReportRequest) ValidateAll() error

ValidateAll checks the field values on OrcaLoadReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrcaLoadReportRequestMultiError, or nil if none found.

type OrcaLoadReportRequestMultiError

type OrcaLoadReportRequestMultiError []error

OrcaLoadReportRequestMultiError is an error wrapping multiple validation errors returned by OrcaLoadReportRequest.ValidateAll() if the designated constraints aren't met.

func (OrcaLoadReportRequestMultiError) AllErrors

func (m OrcaLoadReportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OrcaLoadReportRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type OrcaLoadReportRequestValidationError

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

OrcaLoadReportRequestValidationError is the validation error returned by OrcaLoadReportRequest.Validate if the designated constraints aren't met.

func (OrcaLoadReportRequestValidationError) Cause

Cause function returns cause value.

func (OrcaLoadReportRequestValidationError) Error

Error satisfies the builtin error interface

func (OrcaLoadReportRequestValidationError) ErrorName

ErrorName returns error name.

func (OrcaLoadReportRequestValidationError) Field

Field function returns field value.

func (OrcaLoadReportRequestValidationError) Key

Key function returns key value.

func (OrcaLoadReportRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedOpenRcaServiceServer

type UnimplementedOpenRcaServiceServer struct {
}

UnimplementedOpenRcaServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedOpenRcaServiceServer) StreamCoreMetrics

type UnsafeOpenRcaServiceServer

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

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

Source Files

orca.pb.go orca.pb.validate.go orca_grpc.pb.go

Version
v0.0.0-20250121191232-2f005788dc42 (latest)
Published
Jan 21, 2025
Platform
linux/amd64
Imports
22 packages
Last checked
5 days ago

Tools for package owners.