v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_banyandb_measure_v1_query_proto protoreflect.FileDescriptor
View Source
var File_banyandb_measure_v1_rpc_proto protoreflect.FileDescriptor
View Source
var File_banyandb_measure_v1_topn_proto protoreflect.FileDescriptor
View Source
var File_banyandb_measure_v1_write_proto protoreflect.FileDescriptor
View Source
var MeasureService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "banyandb.measure.v1.MeasureService",
	HandlerType: (*MeasureServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Query",
			Handler:    _MeasureService_Query_Handler,
		},
		{
			MethodName: "TopN",
			Handler:    _MeasureService_TopN_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Write",
			Handler:       _MeasureService_Write_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "banyandb/measure/v1/rpc.proto",
}

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

Functions

func RegisterMeasureServiceServer

func RegisterMeasureServiceServer(s grpc.ServiceRegistrar, srv MeasureServiceServer)

Types

type DataPoint

type DataPoint struct {

	// timestamp is in the timeunit of milliseconds.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// tag_families contains tags selected in the projection
	TagFamilies []*v1.TagFamily `protobuf:"bytes,2,rep,name=tag_families,json=tagFamilies,proto3" json:"tag_families,omitempty"`
	// fields contains fields selected in the projection
	Fields []*DataPoint_Field `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

DataPoint is stored in Measures

func (*DataPoint) Descriptor deprecated

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

Deprecated: Use DataPoint.ProtoReflect.Descriptor instead.

func (*DataPoint) GetFields

func (x *DataPoint) GetFields() []*DataPoint_Field

func (*DataPoint) GetTagFamilies

func (x *DataPoint) GetTagFamilies() []*v1.TagFamily

func (*DataPoint) GetTimestamp

func (x *DataPoint) GetTimestamp() *timestamppb.Timestamp

func (*DataPoint) ProtoMessage

func (*DataPoint) ProtoMessage()

func (*DataPoint) ProtoReflect

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

func (*DataPoint) Reset

func (x *DataPoint) Reset()

func (*DataPoint) String

func (x *DataPoint) String() string

type DataPointValue

type DataPointValue struct {

	// timestamp is in the timeunit of milliseconds.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// the order of tag_families' items match the measure schema
	TagFamilies []*v1.TagFamilyForWrite `protobuf:"bytes,2,rep,name=tag_families,json=tagFamilies,proto3" json:"tag_families,omitempty"`
	// the order of fields match the measure schema
	Fields []*v1.FieldValue `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

DataPointValue is the data point for writing. It only contains values.

func (*DataPointValue) Descriptor deprecated

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

Deprecated: Use DataPointValue.ProtoReflect.Descriptor instead.

func (*DataPointValue) GetFields

func (x *DataPointValue) GetFields() []*v1.FieldValue

func (*DataPointValue) GetTagFamilies

func (x *DataPointValue) GetTagFamilies() []*v1.TagFamilyForWrite

func (*DataPointValue) GetTimestamp

func (x *DataPointValue) GetTimestamp() *timestamppb.Timestamp

func (*DataPointValue) ProtoMessage

func (*DataPointValue) ProtoMessage()

func (*DataPointValue) ProtoReflect

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

func (*DataPointValue) Reset

func (x *DataPointValue) Reset()

func (*DataPointValue) String

func (x *DataPointValue) String() string

type DataPoint_Field

type DataPoint_Field struct {
	Name  string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value *v1.FieldValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DataPoint_Field) Descriptor deprecated

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

Deprecated: Use DataPoint_Field.ProtoReflect.Descriptor instead.

func (*DataPoint_Field) GetName

func (x *DataPoint_Field) GetName() string

func (*DataPoint_Field) GetValue

func (x *DataPoint_Field) GetValue() *v1.FieldValue

func (*DataPoint_Field) ProtoMessage

func (*DataPoint_Field) ProtoMessage()

func (*DataPoint_Field) ProtoReflect

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

func (*DataPoint_Field) Reset

func (x *DataPoint_Field) Reset()

func (*DataPoint_Field) String

func (x *DataPoint_Field) String() string

type InternalWriteRequest

type InternalWriteRequest struct {
	ShardId    uint32        `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
	SeriesHash []byte        `protobuf:"bytes,2,opt,name=series_hash,json=seriesHash,proto3" json:"series_hash,omitempty"`
	Request    *WriteRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*InternalWriteRequest) Descriptor deprecated

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

Deprecated: Use InternalWriteRequest.ProtoReflect.Descriptor instead.

func (*InternalWriteRequest) GetRequest

func (x *InternalWriteRequest) GetRequest() *WriteRequest

func (*InternalWriteRequest) GetSeriesHash

func (x *InternalWriteRequest) GetSeriesHash() []byte

func (*InternalWriteRequest) GetShardId

func (x *InternalWriteRequest) GetShardId() uint32

func (*InternalWriteRequest) ProtoMessage

func (*InternalWriteRequest) ProtoMessage()

func (*InternalWriteRequest) ProtoReflect

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

func (*InternalWriteRequest) Reset

func (x *InternalWriteRequest) Reset()

func (*InternalWriteRequest) String

func (x *InternalWriteRequest) String() string

type MeasureServiceClient

type MeasureServiceClient interface {
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	Write(ctx context.Context, opts ...grpc.CallOption) (MeasureService_WriteClient, error)
	TopN(ctx context.Context, in *TopNRequest, opts ...grpc.CallOption) (*TopNResponse, error)
}

MeasureServiceClient is the client API for MeasureService 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 MeasureServiceServer

type MeasureServiceServer interface {
	Query(context.Context, *QueryRequest) (*QueryResponse, error)
	Write(MeasureService_WriteServer) error
	TopN(context.Context, *TopNRequest) (*TopNResponse, error)
	// contains filtered or unexported methods
}

MeasureServiceServer is the server API for MeasureService service. All implementations must embed UnimplementedMeasureServiceServer for forward compatibility

type MeasureService_WriteClient

type MeasureService_WriteClient interface {
	Send(*WriteRequest) error
	Recv() (*WriteResponse, error)
	grpc.ClientStream
}

type MeasureService_WriteServer

type MeasureService_WriteServer interface {
	Send(*WriteResponse) error
	Recv() (*WriteRequest, error)
	grpc.ServerStream
}

type QueryRequest

type QueryRequest struct {

	// metadata is required
	Metadata *v11.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
	TimeRange *v1.TimeRange `protobuf:"bytes,2,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"`
	// tag_families are indexed.
	Criteria []*v1.Criteria `protobuf:"bytes,4,rep,name=criteria,proto3" json:"criteria,omitempty"`
	// tag_projection can be used to select tags of the data points in the response
	TagProjection *v1.TagProjection `protobuf:"bytes,5,opt,name=tag_projection,json=tagProjection,proto3" json:"tag_projection,omitempty"`
	// field_projection can be used to select fields of the data points in the response
	FieldProjection *QueryRequest_FieldProjection `protobuf:"bytes,6,opt,name=field_projection,json=fieldProjection,proto3" json:"field_projection,omitempty"`
	// group_by groups data points based on their field value for a specific tag and use field_name as the projection name
	GroupBy *QueryRequest_GroupBy `protobuf:"bytes,7,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	// agg aggregates data points based on a field
	Agg *QueryRequest_Aggregation `protobuf:"bytes,8,opt,name=agg,proto3" json:"agg,omitempty"`
	// top limits the result based on a particular field.
	// If order_by is specificed, top sorts the dataset based on order_by's output
	Top *QueryRequest_Top `protobuf:"bytes,9,opt,name=top,proto3" json:"top,omitempty"`
	// offset is used to support pagination, together with the following limit.
	// If top is sepcificed, offset processes the dataset based on top's output
	Offset uint32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
	// limit is used to impose a boundary on the number of records being returned.
	// If top is sepcificed, limit processes the dataset based on top's output
	Limit uint32 `protobuf:"varint,11,opt,name=limit,proto3" json:"limit,omitempty"`
	// order_by is given to specify the sort for a tag.
	OrderBy *v1.QueryOrder `protobuf:"bytes,12,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

QueryRequest is the request contract for query.

func (*QueryRequest) Descriptor deprecated

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

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetAgg

func (*QueryRequest) GetCriteria

func (x *QueryRequest) GetCriteria() []*v1.Criteria

func (*QueryRequest) GetFieldProjection

func (x *QueryRequest) GetFieldProjection() *QueryRequest_FieldProjection

func (*QueryRequest) GetGroupBy

func (x *QueryRequest) GetGroupBy() *QueryRequest_GroupBy

func (*QueryRequest) GetLimit

func (x *QueryRequest) GetLimit() uint32

func (*QueryRequest) GetMetadata

func (x *QueryRequest) GetMetadata() *v11.Metadata

func (*QueryRequest) GetOffset

func (x *QueryRequest) GetOffset() uint32

func (*QueryRequest) GetOrderBy

func (x *QueryRequest) GetOrderBy() *v1.QueryOrder

func (*QueryRequest) GetTagProjection

func (x *QueryRequest) GetTagProjection() *v1.TagProjection

func (*QueryRequest) GetTimeRange

func (x *QueryRequest) GetTimeRange() *v1.TimeRange

func (*QueryRequest) GetTop

func (x *QueryRequest) GetTop() *QueryRequest_Top

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryRequest_Aggregation

type QueryRequest_Aggregation struct {
	Function v1.AggregationFunction `protobuf:"varint,1,opt,name=function,proto3,enum=banyandb.model.v1.AggregationFunction" json:"function,omitempty"`
	// field_name must be one of files indicated by the field_projection
	FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest_Aggregation) Descriptor deprecated

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

Deprecated: Use QueryRequest_Aggregation.ProtoReflect.Descriptor instead.

func (*QueryRequest_Aggregation) GetFieldName

func (x *QueryRequest_Aggregation) GetFieldName() string

func (*QueryRequest_Aggregation) GetFunction

func (*QueryRequest_Aggregation) ProtoMessage

func (*QueryRequest_Aggregation) ProtoMessage()

func (*QueryRequest_Aggregation) ProtoReflect

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

func (*QueryRequest_Aggregation) Reset

func (x *QueryRequest_Aggregation) Reset()

func (*QueryRequest_Aggregation) String

func (x *QueryRequest_Aggregation) String() string

type QueryRequest_FieldProjection

type QueryRequest_FieldProjection struct {
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest_FieldProjection) Descriptor deprecated

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

Deprecated: Use QueryRequest_FieldProjection.ProtoReflect.Descriptor instead.

func (*QueryRequest_FieldProjection) GetNames

func (x *QueryRequest_FieldProjection) GetNames() []string

func (*QueryRequest_FieldProjection) ProtoMessage

func (*QueryRequest_FieldProjection) ProtoMessage()

func (*QueryRequest_FieldProjection) ProtoReflect

func (*QueryRequest_FieldProjection) Reset

func (x *QueryRequest_FieldProjection) Reset()

func (*QueryRequest_FieldProjection) String

type QueryRequest_GroupBy

type QueryRequest_GroupBy struct {

	// tag_projection must be a subset of the tag_projection of QueryRequest
	TagProjection *v1.TagProjection `protobuf:"bytes,1,opt,name=tag_projection,json=tagProjection,proto3" json:"tag_projection,omitempty"`
	// field_name must be one of fields indicated by field_projection
	FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest_GroupBy) Descriptor deprecated

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

Deprecated: Use QueryRequest_GroupBy.ProtoReflect.Descriptor instead.

func (*QueryRequest_GroupBy) GetFieldName

func (x *QueryRequest_GroupBy) GetFieldName() string

func (*QueryRequest_GroupBy) GetTagProjection

func (x *QueryRequest_GroupBy) GetTagProjection() *v1.TagProjection

func (*QueryRequest_GroupBy) ProtoMessage

func (*QueryRequest_GroupBy) ProtoMessage()

func (*QueryRequest_GroupBy) ProtoReflect

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

func (*QueryRequest_GroupBy) Reset

func (x *QueryRequest_GroupBy) Reset()

func (*QueryRequest_GroupBy) String

func (x *QueryRequest_GroupBy) String() string

type QueryRequest_Top

type QueryRequest_Top struct {

	// number set the how many items should be returned
	Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// field_name must be one of files indicated by the field_projection
	FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// field_value_sort indicates how to sort fields
	// ASC: bottomN
	// DESC: topN
	// UNSPECIFIED: topN
	FieldValueSort v1.Sort `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryRequest_Top) Descriptor deprecated

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

Deprecated: Use QueryRequest_Top.ProtoReflect.Descriptor instead.

func (*QueryRequest_Top) GetFieldName

func (x *QueryRequest_Top) GetFieldName() string

func (*QueryRequest_Top) GetFieldValueSort

func (x *QueryRequest_Top) GetFieldValueSort() v1.Sort

func (*QueryRequest_Top) GetNumber

func (x *QueryRequest_Top) GetNumber() int32

func (*QueryRequest_Top) ProtoMessage

func (*QueryRequest_Top) ProtoMessage()

func (*QueryRequest_Top) ProtoReflect

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

func (*QueryRequest_Top) Reset

func (x *QueryRequest_Top) Reset()

func (*QueryRequest_Top) String

func (x *QueryRequest_Top) String() string

type QueryResponse

type QueryResponse struct {

	// data_points are the actual data returned
	DataPoints []*DataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
	// contains filtered or unexported fields
}

QueryResponse is the response for a query to the Query module.

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetDataPoints

func (x *QueryResponse) GetDataPoints() []*DataPoint

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type TopNList

type TopNList struct {

	// timestamp is in the timeunit of milliseconds.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// items contains top-n items in a list
	Items []*TopNList_Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

TopNList contains a series of topN items

func (*TopNList) Descriptor deprecated

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

Deprecated: Use TopNList.ProtoReflect.Descriptor instead.

func (*TopNList) GetItems

func (x *TopNList) GetItems() []*TopNList_Item

func (*TopNList) GetTimestamp

func (x *TopNList) GetTimestamp() *timestamppb.Timestamp

func (*TopNList) ProtoMessage

func (*TopNList) ProtoMessage()

func (*TopNList) ProtoReflect

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

func (*TopNList) Reset

func (x *TopNList) Reset()

func (*TopNList) String

func (x *TopNList) String() string

type TopNList_Item

type TopNList_Item struct {
	Name  string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value *v11.FieldValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TopNList_Item) Descriptor deprecated

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

Deprecated: Use TopNList_Item.ProtoReflect.Descriptor instead.

func (*TopNList_Item) GetName

func (x *TopNList_Item) GetName() string

func (*TopNList_Item) GetValue

func (x *TopNList_Item) GetValue() *v11.FieldValue

func (*TopNList_Item) ProtoMessage

func (*TopNList_Item) ProtoMessage()

func (*TopNList_Item) ProtoReflect

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

func (*TopNList_Item) Reset

func (x *TopNList_Item) Reset()

func (*TopNList_Item) String

func (x *TopNList_Item) String() string

type TopNRequest

type TopNRequest struct {

	// metadata is required
	Metadata *v1.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
	TimeRange *v11.TimeRange `protobuf:"bytes,2,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"`
	// top_n set the how many items should be returned in each list.
	TopN int32 `protobuf:"varint,3,opt,name=top_n,json=topN,proto3" json:"top_n,omitempty"`
	// agg aggregates lists grouped by field names in the time_range
	Agg v11.AggregationFunction `protobuf:"varint,4,opt,name=agg,proto3,enum=banyandb.model.v1.AggregationFunction" json:"agg,omitempty"`
	// criteria select counters.
	Conditions []*v11.Condition `protobuf:"bytes,5,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// field_value_sort indicates how to sort fields
	FieldValueSort v11.Sort `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

TopNRequest is the request contract for query.

func (*TopNRequest) Descriptor deprecated

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

Deprecated: Use TopNRequest.ProtoReflect.Descriptor instead.

func (*TopNRequest) GetAgg

func (x *TopNRequest) GetAgg() v11.AggregationFunction

func (*TopNRequest) GetConditions

func (x *TopNRequest) GetConditions() []*v11.Condition

func (*TopNRequest) GetFieldValueSort

func (x *TopNRequest) GetFieldValueSort() v11.Sort

func (*TopNRequest) GetMetadata

func (x *TopNRequest) GetMetadata() *v1.Metadata

func (*TopNRequest) GetTimeRange

func (x *TopNRequest) GetTimeRange() *v11.TimeRange

func (*TopNRequest) GetTopN

func (x *TopNRequest) GetTopN() int32

func (*TopNRequest) ProtoMessage

func (*TopNRequest) ProtoMessage()

func (*TopNRequest) ProtoReflect

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

func (*TopNRequest) Reset

func (x *TopNRequest) Reset()

func (*TopNRequest) String

func (x *TopNRequest) String() string

type TopNResponse

type TopNResponse struct {

	// lists contain a series topN lists ranked by timestamp
	// if agg_func in query request is specified, lists' size should be one.
	Lists []*TopNList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"`
	// contains filtered or unexported fields
}

TopNResponse is the response for a query to the Query module.

func (*TopNResponse) Descriptor deprecated

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

Deprecated: Use TopNResponse.ProtoReflect.Descriptor instead.

func (*TopNResponse) GetLists

func (x *TopNResponse) GetLists() []*TopNList

func (*TopNResponse) ProtoMessage

func (*TopNResponse) ProtoMessage()

func (*TopNResponse) ProtoReflect

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

func (*TopNResponse) Reset

func (x *TopNResponse) Reset()

func (*TopNResponse) String

func (x *TopNResponse) String() string

type UnimplementedMeasureServiceServer

type UnimplementedMeasureServiceServer struct {
}

UnimplementedMeasureServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMeasureServiceServer) Query

func (UnimplementedMeasureServiceServer) TopN

func (UnimplementedMeasureServiceServer) Write

type UnsafeMeasureServiceServer

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

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

type WriteRequest

type WriteRequest struct {

	// the metadata is required.
	Metadata *v11.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// the data_point is required.
	DataPoint *DataPointValue `protobuf:"bytes,2,opt,name=data_point,json=dataPoint,proto3" json:"data_point,omitempty"`
	// contains filtered or unexported fields
}

WriteRequest is the request contract for write

func (*WriteRequest) Descriptor deprecated

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

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetDataPoint

func (x *WriteRequest) GetDataPoint() *DataPointValue

func (*WriteRequest) GetMetadata

func (x *WriteRequest) GetMetadata() *v11.Metadata

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

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

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

type WriteResponse

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

WriteResponse is the response contract for write

func (*WriteResponse) Descriptor deprecated

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

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

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

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

Jump to

Keyboard shortcuts

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