v1development

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProfilesService        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProfilesService          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProfilesService = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterProfilesServiceServer

func RegisterProfilesServiceServer(s *grpc.Server, srv ProfilesServiceServer)

Types

type ExportProfilesPartialSuccess

type ExportProfilesPartialSuccess struct {
	// The number of rejected profiles.
	//
	// A `rejected_<signal>` field holding a `0` value indicates that the
	// request was fully accepted.
	RejectedProfiles int64 `protobuf:"varint,1,opt,name=rejected_profiles,json=rejectedProfiles,proto3" json:"rejected_profiles,omitempty"`
	// A developer-facing human-readable message in English. It should be used
	// either to explain why the server rejected parts of the data during a partial
	// success or to convey warnings/suggestions during a full success. The message
	// should offer guidance on how users can address such issues.
	//
	// error_message is an optional field. An error_message with an empty value
	// is equivalent to it not being set.
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
}

func (*ExportProfilesPartialSuccess) Descriptor

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

func (*ExportProfilesPartialSuccess) GetErrorMessage

func (m *ExportProfilesPartialSuccess) GetErrorMessage() string

func (*ExportProfilesPartialSuccess) GetRejectedProfiles

func (m *ExportProfilesPartialSuccess) GetRejectedProfiles() int64

func (*ExportProfilesPartialSuccess) Marshal

func (m *ExportProfilesPartialSuccess) Marshal() (dAtA []byte, err error)

func (*ExportProfilesPartialSuccess) MarshalTo

func (m *ExportProfilesPartialSuccess) MarshalTo(dAtA []byte) (int, error)

func (*ExportProfilesPartialSuccess) MarshalToSizedBuffer

func (m *ExportProfilesPartialSuccess) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExportProfilesPartialSuccess) ProtoMessage

func (*ExportProfilesPartialSuccess) ProtoMessage()

func (*ExportProfilesPartialSuccess) Reset

func (m *ExportProfilesPartialSuccess) Reset()

func (*ExportProfilesPartialSuccess) Size

func (m *ExportProfilesPartialSuccess) Size() (n int)

func (*ExportProfilesPartialSuccess) String

func (*ExportProfilesPartialSuccess) Unmarshal

func (m *ExportProfilesPartialSuccess) Unmarshal(dAtA []byte) error

func (*ExportProfilesPartialSuccess) XXX_DiscardUnknown

func (m *ExportProfilesPartialSuccess) XXX_DiscardUnknown()

func (*ExportProfilesPartialSuccess) XXX_Marshal

func (m *ExportProfilesPartialSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportProfilesPartialSuccess) XXX_Merge

func (m *ExportProfilesPartialSuccess) XXX_Merge(src proto.Message)

func (*ExportProfilesPartialSuccess) XXX_Size

func (m *ExportProfilesPartialSuccess) XXX_Size() int

func (*ExportProfilesPartialSuccess) XXX_Unmarshal

func (m *ExportProfilesPartialSuccess) XXX_Unmarshal(b []byte) error

type ExportProfilesServiceRequest

type ExportProfilesServiceRequest struct {
	// An array of ResourceProfiles.
	// For data coming from a single resource this array will typically contain one
	// element. Intermediary nodes (such as OpenTelemetry Collector) that receive
	// data from multiple origins typically batch the data before forwarding further and
	// in that case this array will contain multiple elements.
	ResourceProfiles []*v1development.ResourceProfiles `protobuf:"bytes,1,rep,name=resource_profiles,json=resourceProfiles,proto3" json:"resource_profiles,omitempty"`
}

func (*ExportProfilesServiceRequest) Descriptor

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

func (*ExportProfilesServiceRequest) GetResourceProfiles

func (m *ExportProfilesServiceRequest) GetResourceProfiles() []*v1development.ResourceProfiles

func (*ExportProfilesServiceRequest) Marshal

func (m *ExportProfilesServiceRequest) Marshal() (dAtA []byte, err error)

func (*ExportProfilesServiceRequest) MarshalTo

func (m *ExportProfilesServiceRequest) MarshalTo(dAtA []byte) (int, error)

func (*ExportProfilesServiceRequest) MarshalToSizedBuffer

func (m *ExportProfilesServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExportProfilesServiceRequest) ProtoMessage

func (*ExportProfilesServiceRequest) ProtoMessage()

func (*ExportProfilesServiceRequest) Reset

func (m *ExportProfilesServiceRequest) Reset()

func (*ExportProfilesServiceRequest) Size

func (m *ExportProfilesServiceRequest) Size() (n int)

func (*ExportProfilesServiceRequest) String

func (*ExportProfilesServiceRequest) Unmarshal

func (m *ExportProfilesServiceRequest) Unmarshal(dAtA []byte) error

func (*ExportProfilesServiceRequest) XXX_DiscardUnknown

func (m *ExportProfilesServiceRequest) XXX_DiscardUnknown()

func (*ExportProfilesServiceRequest) XXX_Marshal

func (m *ExportProfilesServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportProfilesServiceRequest) XXX_Merge

func (m *ExportProfilesServiceRequest) XXX_Merge(src proto.Message)

func (*ExportProfilesServiceRequest) XXX_Size

func (m *ExportProfilesServiceRequest) XXX_Size() int

func (*ExportProfilesServiceRequest) XXX_Unmarshal

func (m *ExportProfilesServiceRequest) XXX_Unmarshal(b []byte) error

type ExportProfilesServiceResponse

type ExportProfilesServiceResponse struct {
	// The details of a partially successful export request.
	//
	// If the request is only partially accepted
	// (i.e. when the server accepts only parts of the data and rejects the rest)
	// the server MUST initialize the `partial_success` field and MUST
	// set the `rejected_<signal>` with the number of items it rejected.
	//
	// Servers MAY also make use of the `partial_success` field to convey
	// warnings/suggestions to senders even when the request was fully accepted.
	// In such cases, the `rejected_<signal>` MUST have a value of `0` and
	// the `error_message` MUST be non-empty.
	//
	// A `partial_success` message with an empty value (rejected_<signal> = 0 and
	// `error_message` = "") is equivalent to it not being set/present. Senders
	// SHOULD interpret it the same way as in the full success case.
	PartialSuccess ExportProfilesPartialSuccess `protobuf:"bytes,1,opt,name=partial_success,json=partialSuccess,proto3" json:"partial_success"`
}

func (*ExportProfilesServiceResponse) Descriptor

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

func (*ExportProfilesServiceResponse) GetPartialSuccess

func (*ExportProfilesServiceResponse) Marshal

func (m *ExportProfilesServiceResponse) Marshal() (dAtA []byte, err error)

func (*ExportProfilesServiceResponse) MarshalTo

func (m *ExportProfilesServiceResponse) MarshalTo(dAtA []byte) (int, error)

func (*ExportProfilesServiceResponse) MarshalToSizedBuffer

func (m *ExportProfilesServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExportProfilesServiceResponse) ProtoMessage

func (*ExportProfilesServiceResponse) ProtoMessage()

func (*ExportProfilesServiceResponse) Reset

func (m *ExportProfilesServiceResponse) Reset()

func (*ExportProfilesServiceResponse) Size

func (m *ExportProfilesServiceResponse) Size() (n int)

func (*ExportProfilesServiceResponse) String

func (*ExportProfilesServiceResponse) Unmarshal

func (m *ExportProfilesServiceResponse) Unmarshal(dAtA []byte) error

func (*ExportProfilesServiceResponse) XXX_DiscardUnknown

func (m *ExportProfilesServiceResponse) XXX_DiscardUnknown()

func (*ExportProfilesServiceResponse) XXX_Marshal

func (m *ExportProfilesServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportProfilesServiceResponse) XXX_Merge

func (m *ExportProfilesServiceResponse) XXX_Merge(src proto.Message)

func (*ExportProfilesServiceResponse) XXX_Size

func (m *ExportProfilesServiceResponse) XXX_Size() int

func (*ExportProfilesServiceResponse) XXX_Unmarshal

func (m *ExportProfilesServiceResponse) XXX_Unmarshal(b []byte) error

type ProfilesServiceClient

type ProfilesServiceClient interface {
	// For performance reasons, it is recommended to keep this RPC
	// alive for the entire life of the application.
	Export(ctx context.Context, in *ExportProfilesServiceRequest, opts ...grpc.CallOption) (*ExportProfilesServiceResponse, error)
}

ProfilesServiceClient is the client API for ProfilesService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewProfilesServiceClient

func NewProfilesServiceClient(cc *grpc.ClientConn) ProfilesServiceClient

type ProfilesServiceServer

type ProfilesServiceServer interface {
	// For performance reasons, it is recommended to keep this RPC
	// alive for the entire life of the application.
	Export(context.Context, *ExportProfilesServiceRequest) (*ExportProfilesServiceResponse, error)
}

ProfilesServiceServer is the server API for ProfilesService service.

type UnimplementedProfilesServiceServer

type UnimplementedProfilesServiceServer struct {
}

UnimplementedProfilesServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProfilesServiceServer) Export

Jump to

Keyboard shortcuts

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