gen

package
v0.0.0-...-5f7c3dd Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	BMSStorageService_RegisterSession_FullMethodName          = "/grpc_api.BMSStorageService/RegisterSession"
	BMSStorageService_StoreDatedBotReplyBatch_FullMethodName  = "/grpc_api.BMSStorageService/StoreDatedBotReplyBatch"
	BMSStorageService_StoreDatedFailedTryBatch_FullMethodName = "/grpc_api.BMSStorageService/StoreDatedFailedTryBatch"
	BMSStorageService_StoreDatedEdgeBatch_FullMethodName      = "/grpc_api.BMSStorageService/StoreDatedEdgeBatch"
	BMSStorageService_Disconnect_FullMethodName               = "/grpc_api.BMSStorageService/Disconnect"
)

Variables

View Source
var (
	DisconnectReason_name = map[int32]string{
		0: "DISCONNECT_REASON_UNSPECIFIED",
		1: "DISCONNECT_REASON_FINISHED",
		2: "DISCONNECT_REASON_BE_RIGHT_BACK",
		3: "DISCONNECT_REASON_BE_RIGHT_BACK_WITH_NEW_CONFIG",
		4: "DISCONNECT_REASON_CLIENT_ERROR",
		5: "DISCONNECT_REASON_OTHER",
	}
	DisconnectReason_value = map[string]int32{
		"DISCONNECT_REASON_UNSPECIFIED":                   0,
		"DISCONNECT_REASON_FINISHED":                      1,
		"DISCONNECT_REASON_BE_RIGHT_BACK":                 2,
		"DISCONNECT_REASON_BE_RIGHT_BACK_WITH_NEW_CONFIG": 3,
		"DISCONNECT_REASON_CLIENT_ERROR":                  4,
		"DISCONNECT_REASON_OTHER":                         5,
	}
)

Enum value maps for DisconnectReason.

View Source
var BMSStorageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc_api.BMSStorageService",
	HandlerType: (*BMSStorageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterSession",
			Handler:    _BMSStorageService_RegisterSession_Handler,
		},
		{
			MethodName: "Disconnect",
			Handler:    _BMSStorageService_Disconnect_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StoreDatedBotReplyBatch",
			Handler:       _BMSStorageService_StoreDatedBotReplyBatch_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "StoreDatedFailedTryBatch",
			Handler:       _BMSStorageService_StoreDatedFailedTryBatch_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "StoreDatedEdgeBatch",
			Handler:       _BMSStorageService_StoreDatedEdgeBatch_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "storage.proto",
}

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

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_storage_proto protoreflect.FileDescriptor

Functions

func RegisterBMSStorageServiceServer

func RegisterBMSStorageServiceServer(s grpc.ServiceRegistrar, srv BMSStorageServiceServer)

Types

type BMSStorageServiceClient

type BMSStorageServiceClient interface {
	// The method to register a new monitoring session.
	//
	// This method gives you back a session token which is needed for all further requests corresponding to the session. Furthermore it (optionally) can tell the client the time of the last bot reply batch, failed try batch and edge batch for the last session of the same monitor (and thereby giving an indicator for the last successful insert).
	//
	// Note: This method needs authentication via providing the 256bit auth token as `auth-token-bin` and the monitor ID as `auth-monitor-id` in the metadata (last given value wins).
	RegisterSession(ctx context.Context, in *RegisterSessionRequest, opts ...grpc.CallOption) (*RegisterSessionResponse, error)
	// The method to send a stream of dated bot replies.
	//
	// The server acknowledges the successful handling (receiving, processing, storing) of the sent batch by sending a response with the respective `batchID`.
	// The client should cache the sent batch until the server acknowledges it explicitly (otherwise data might be lost).
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	//
	// @todo: Document errors which can occur
	StoreDatedBotReplyBatch(ctx context.Context, opts ...grpc.CallOption) (BMSStorageService_StoreDatedBotReplyBatchClient, error)
	// The method to send a stream of dated (failed) bot contact tries.
	//
	// The server acknowledges the successful handling (receiving, processing, storing) of the sent batch by sending a response with the respective `batchID`.
	// The client should cache the sent batch until the server acknowledges it explicitly (otherwise data might be lost).
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	//
	// @todo: Document errors which can occur
	StoreDatedFailedTryBatch(ctx context.Context, opts ...grpc.CallOption) (BMSStorageService_StoreDatedFailedTryBatchClient, error)
	// The method to send a stream of dated bot edges.
	//
	// The server acknowledges the successful handling (receiving, processing, storing) of the sent batch by sending a response with the respective `batchID`.
	// The client should cache the sent batch until the server acknowledges it explicitly (otherwise data might be lost).
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	// Note: The server will not accept batches with more than 10000 bot replies.
	//
	// @todo: Document errors which can occur
	StoreDatedEdgeBatch(ctx context.Context, opts ...grpc.CallOption) (BMSStorageService_StoreDatedEdgeBatchClient, error)
	// The method to disconnect the current monitoring session.
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	// Note: The server will not accept batches with more than 10000 edges.
	//
	// @todo: Document errors which can occur
	Disconnect(ctx context.Context, in *DisconnectRequest, opts ...grpc.CallOption) (*DisconnectResponse, error)
}

BMSStorageServiceClient is the client API for BMSStorageService 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 BMSStorageServiceServer

type BMSStorageServiceServer interface {
	// The method to register a new monitoring session.
	//
	// This method gives you back a session token which is needed for all further requests corresponding to the session. Furthermore it (optionally) can tell the client the time of the last bot reply batch, failed try batch and edge batch for the last session of the same monitor (and thereby giving an indicator for the last successful insert).
	//
	// Note: This method needs authentication via providing the 256bit auth token as `auth-token-bin` and the monitor ID as `auth-monitor-id` in the metadata (last given value wins).
	RegisterSession(context.Context, *RegisterSessionRequest) (*RegisterSessionResponse, error)
	// The method to send a stream of dated bot replies.
	//
	// The server acknowledges the successful handling (receiving, processing, storing) of the sent batch by sending a response with the respective `batchID`.
	// The client should cache the sent batch until the server acknowledges it explicitly (otherwise data might be lost).
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	//
	// @todo: Document errors which can occur
	StoreDatedBotReplyBatch(BMSStorageService_StoreDatedBotReplyBatchServer) error
	// The method to send a stream of dated (failed) bot contact tries.
	//
	// The server acknowledges the successful handling (receiving, processing, storing) of the sent batch by sending a response with the respective `batchID`.
	// The client should cache the sent batch until the server acknowledges it explicitly (otherwise data might be lost).
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	//
	// @todo: Document errors which can occur
	StoreDatedFailedTryBatch(BMSStorageService_StoreDatedFailedTryBatchServer) error
	// The method to send a stream of dated bot edges.
	//
	// The server acknowledges the successful handling (receiving, processing, storing) of the sent batch by sending a response with the respective `batchID`.
	// The client should cache the sent batch until the server acknowledges it explicitly (otherwise data might be lost).
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	// Note: The server will not accept batches with more than 10000 bot replies.
	//
	// @todo: Document errors which can occur
	StoreDatedEdgeBatch(BMSStorageService_StoreDatedEdgeBatchServer) error
	// The method to disconnect the current monitoring session.
	//
	// Note: This method needs (session) authentication via providing the 32bit session token as `session-token-bin` in the metadata (last given value wins).
	// Note: The server will not accept batches with more than 10000 edges.
	//
	// @todo: Document errors which can occur
	Disconnect(context.Context, *DisconnectRequest) (*DisconnectResponse, error)
	// contains filtered or unexported methods
}

BMSStorageServiceServer is the server API for BMSStorageService service. All implementations must embed UnimplementedBMSStorageServiceServer for forward compatibility

type BMSStorageService_StoreDatedBotReplyBatchClient

type BMSStorageService_StoreDatedBotReplyBatchClient interface {
	Send(*StoreDatedBotReplyBatchRequest) error
	Recv() (*StoreDatedBotReplyBatchResponse, error)
	grpc.ClientStream
}

type BMSStorageService_StoreDatedBotReplyBatchServer

type BMSStorageService_StoreDatedBotReplyBatchServer interface {
	Send(*StoreDatedBotReplyBatchResponse) error
	Recv() (*StoreDatedBotReplyBatchRequest, error)
	grpc.ServerStream
}

type BMSStorageService_StoreDatedEdgeBatchClient

type BMSStorageService_StoreDatedEdgeBatchClient interface {
	Send(*StoreDatedEdgeBatchRequest) error
	Recv() (*StoreDatedEdgeBatchResponse, error)
	grpc.ClientStream
}

type BMSStorageService_StoreDatedEdgeBatchServer

type BMSStorageService_StoreDatedEdgeBatchServer interface {
	Send(*StoreDatedEdgeBatchResponse) error
	Recv() (*StoreDatedEdgeBatchRequest, error)
	grpc.ServerStream
}

type BMSStorageService_StoreDatedFailedTryBatchClient

type BMSStorageService_StoreDatedFailedTryBatchClient interface {
	Send(*StoreDatedFailedTryBatchRequest) error
	Recv() (*StoreDatedFailedTryBatchResponse, error)
	grpc.ClientStream
}

type BMSStorageService_StoreDatedFailedTryBatchServer

type BMSStorageService_StoreDatedFailedTryBatchServer interface {
	Send(*StoreDatedFailedTryBatchResponse) error
	Recv() (*StoreDatedFailedTryBatchRequest, error)
	grpc.ServerStream
}

type DatedBotReply

type DatedBotReply struct {

	// The timestamp the bot reply was observed (required).
	Timestamp *Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The bot's ID, if any in the respective botnet (optional).
	BotId *string `protobuf:"bytes,2,opt,name=bot_id,json=botId,proto3,oneof" json:"bot_id,omitempty"`
	// The IP address of the bot (required).
	Ip *IPAddress `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	// The port of the bot (required).
	Port *Port `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	// Potential other interesting data observed with the bot reply (optional).
	OtherData *JSON `protobuf:"bytes,5,opt,name=other_data,json=otherData,proto3,oneof" json:"other_data,omitempty"`
	// contains filtered or unexported fields
}

The type which holds exactly one bot reply.

This message will be just used to fill batches which in turn will be sent.

func (*DatedBotReply) Descriptor deprecated

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

Deprecated: Use DatedBotReply.ProtoReflect.Descriptor instead.

func (*DatedBotReply) GetBotId

func (x *DatedBotReply) GetBotId() string

func (*DatedBotReply) GetIp

func (x *DatedBotReply) GetIp() *IPAddress

func (*DatedBotReply) GetOtherData

func (x *DatedBotReply) GetOtherData() *JSON

func (*DatedBotReply) GetPort

func (x *DatedBotReply) GetPort() *Port

func (*DatedBotReply) GetTimestamp

func (x *DatedBotReply) GetTimestamp() *Timestamp

func (*DatedBotReply) ProtoMessage

func (*DatedBotReply) ProtoMessage()

func (*DatedBotReply) ProtoReflect

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

func (*DatedBotReply) Reset

func (x *DatedBotReply) Reset()

func (*DatedBotReply) String

func (x *DatedBotReply) String() string

func (*DatedBotReply) Validate

func (m *DatedBotReply) Validate() error

Validate checks the field values on DatedBotReply 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 (*DatedBotReply) ValidateAll

func (m *DatedBotReply) ValidateAll() error

ValidateAll checks the field values on DatedBotReply 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 DatedBotReplyMultiError, or nil if none found.

type DatedBotReplyMultiError

type DatedBotReplyMultiError []error

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

func (DatedBotReplyMultiError) AllErrors

func (m DatedBotReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DatedBotReplyMultiError) Error

func (m DatedBotReplyMultiError) Error() string

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

type DatedBotReplyValidationError

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

DatedBotReplyValidationError is the validation error returned by DatedBotReply.Validate if the designated constraints aren't met.

func (DatedBotReplyValidationError) Cause

Cause function returns cause value.

func (DatedBotReplyValidationError) Error

Error satisfies the builtin error interface

func (DatedBotReplyValidationError) ErrorName

func (e DatedBotReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DatedBotReplyValidationError) Field

Field function returns field value.

func (DatedBotReplyValidationError) Key

Key function returns key value.

func (DatedBotReplyValidationError) Reason

Reason function returns reason value.

type DatedEdge

type DatedEdge struct {

	// The timestamp the edge was observed (required).
	Timestamp *Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The source bot's ID, if any in the respective botnet (optional).
	SrcBotId *string `protobuf:"bytes,2,opt,name=src_bot_id,json=srcBotId,proto3,oneof" json:"src_bot_id,omitempty"`
	// The IP address of the source bot (required).
	SrcIp *IPAddress `protobuf:"bytes,3,opt,name=src_ip,json=srcIp,proto3" json:"src_ip,omitempty"`
	// The port of the source bot (required).
	SrcPort *Port `protobuf:"bytes,4,opt,name=src_port,json=srcPort,proto3" json:"src_port,omitempty"`
	// The destination bot's ID, if any in the respective botnet (optional).
	DstBotId *string `protobuf:"bytes,5,opt,name=dst_bot_id,json=dstBotId,proto3,oneof" json:"dst_bot_id,omitempty"`
	// The IP address of the destination bot (required).
	DstIp *IPAddress `protobuf:"bytes,6,opt,name=dst_ip,json=dstIp,proto3" json:"dst_ip,omitempty"`
	// The port of the destination bot (required).
	DstPort *Port `protobuf:"bytes,7,opt,name=dst_port,json=dstPort,proto3" json:"dst_port,omitempty"`
	// contains filtered or unexported fields
}

The type which holds exactly one edge.

This message will be just used to fill batches which in turn will be sent.

func (*DatedEdge) Descriptor deprecated

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

Deprecated: Use DatedEdge.ProtoReflect.Descriptor instead.

func (*DatedEdge) GetDstBotId

func (x *DatedEdge) GetDstBotId() string

func (*DatedEdge) GetDstIp

func (x *DatedEdge) GetDstIp() *IPAddress

func (*DatedEdge) GetDstPort

func (x *DatedEdge) GetDstPort() *Port

func (*DatedEdge) GetSrcBotId

func (x *DatedEdge) GetSrcBotId() string

func (*DatedEdge) GetSrcIp

func (x *DatedEdge) GetSrcIp() *IPAddress

func (*DatedEdge) GetSrcPort

func (x *DatedEdge) GetSrcPort() *Port

func (*DatedEdge) GetTimestamp

func (x *DatedEdge) GetTimestamp() *Timestamp

func (*DatedEdge) ProtoMessage

func (*DatedEdge) ProtoMessage()

func (*DatedEdge) ProtoReflect

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

func (*DatedEdge) Reset

func (x *DatedEdge) Reset()

func (*DatedEdge) String

func (x *DatedEdge) String() string

func (*DatedEdge) Validate

func (m *DatedEdge) Validate() error

Validate checks the field values on DatedEdge 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 (*DatedEdge) ValidateAll

func (m *DatedEdge) ValidateAll() error

ValidateAll checks the field values on DatedEdge 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 DatedEdgeMultiError, or nil if none found.

type DatedEdgeMultiError

type DatedEdgeMultiError []error

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

func (DatedEdgeMultiError) AllErrors

func (m DatedEdgeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DatedEdgeMultiError) Error

func (m DatedEdgeMultiError) Error() string

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

type DatedEdgeValidationError

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

DatedEdgeValidationError is the validation error returned by DatedEdge.Validate if the designated constraints aren't met.

func (DatedEdgeValidationError) Cause

func (e DatedEdgeValidationError) Cause() error

Cause function returns cause value.

func (DatedEdgeValidationError) Error

func (e DatedEdgeValidationError) Error() string

Error satisfies the builtin error interface

func (DatedEdgeValidationError) ErrorName

func (e DatedEdgeValidationError) ErrorName() string

ErrorName returns error name.

func (DatedEdgeValidationError) Field

func (e DatedEdgeValidationError) Field() string

Field function returns field value.

func (DatedEdgeValidationError) Key

Key function returns key value.

func (DatedEdgeValidationError) Reason

func (e DatedEdgeValidationError) Reason() string

Reason function returns reason value.

type DatedFailedTry

type DatedFailedTry struct {

	// The timestamp the (failed) bot contact try was attempted (required).
	Timestamp *Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The bot's ID, if any in the respective botnet (optional).
	BotId *string `protobuf:"bytes,2,opt,name=bot_id,json=botId,proto3,oneof" json:"bot_id,omitempty"`
	// The IP address of the bot (required).
	Ip *IPAddress `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	// The port of the bot (required).
	Port *Port `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	// The the reason the contacted bot could not be reached (optional).
	Reason *string `protobuf:"bytes,5,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	// Potential other interesting data observed with the (failed) bot contact try (optional).
	OtherData *JSON `protobuf:"bytes,6,opt,name=other_data,json=otherData,proto3,oneof" json:"other_data,omitempty"`
	// contains filtered or unexported fields
}

The type which holds exactly one failed bot contact try.

This message will be just used to fill batches which in turn will be sent.

func (*DatedFailedTry) Descriptor deprecated

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

Deprecated: Use DatedFailedTry.ProtoReflect.Descriptor instead.

func (*DatedFailedTry) GetBotId

func (x *DatedFailedTry) GetBotId() string

func (*DatedFailedTry) GetIp

func (x *DatedFailedTry) GetIp() *IPAddress

func (*DatedFailedTry) GetOtherData

func (x *DatedFailedTry) GetOtherData() *JSON

func (*DatedFailedTry) GetPort

func (x *DatedFailedTry) GetPort() *Port

func (*DatedFailedTry) GetReason

func (x *DatedFailedTry) GetReason() string

func (*DatedFailedTry) GetTimestamp

func (x *DatedFailedTry) GetTimestamp() *Timestamp

func (*DatedFailedTry) ProtoMessage

func (*DatedFailedTry) ProtoMessage()

func (*DatedFailedTry) ProtoReflect

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

func (*DatedFailedTry) Reset

func (x *DatedFailedTry) Reset()

func (*DatedFailedTry) String

func (x *DatedFailedTry) String() string

func (*DatedFailedTry) Validate

func (m *DatedFailedTry) Validate() error

Validate checks the field values on DatedFailedTry 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 (*DatedFailedTry) ValidateAll

func (m *DatedFailedTry) ValidateAll() error

ValidateAll checks the field values on DatedFailedTry 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 DatedFailedTryMultiError, or nil if none found.

type DatedFailedTryMultiError

type DatedFailedTryMultiError []error

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

func (DatedFailedTryMultiError) AllErrors

func (m DatedFailedTryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DatedFailedTryMultiError) Error

func (m DatedFailedTryMultiError) Error() string

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

type DatedFailedTryValidationError

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

DatedFailedTryValidationError is the validation error returned by DatedFailedTry.Validate if the designated constraints aren't met.

func (DatedFailedTryValidationError) Cause

Cause function returns cause value.

func (DatedFailedTryValidationError) Error

Error satisfies the builtin error interface

func (DatedFailedTryValidationError) ErrorName

func (e DatedFailedTryValidationError) ErrorName() string

ErrorName returns error name.

func (DatedFailedTryValidationError) Field

Field function returns field value.

func (DatedFailedTryValidationError) Key

Key function returns key value.

func (DatedFailedTryValidationError) Reason

Reason function returns reason value.

type DisconnectReason

type DisconnectReason int32

Possible reasons a client wants to end the session with.

const (
	// The client wants to specify no reason to end the session.
	DisconnectReason_DISCONNECT_REASON_UNSPECIFIED DisconnectReason = 0
	// The client has done its purpose and thereby wants to end the session.
	DisconnectReason_DISCONNECT_REASON_FINISHED DisconnectReason = 1
	// The clients wants to end the session in order to reconnect soon.
	DisconnectReason_DISCONNECT_REASON_BE_RIGHT_BACK DisconnectReason = 2
	// The clients wants to end the session in order to reconnect soon with a new configuration.
	DisconnectReason_DISCONNECT_REASON_BE_RIGHT_BACK_WITH_NEW_CONFIG DisconnectReason = 3
	// The client had some error and thereby wants to the the session.
	DisconnectReason_DISCONNECT_REASON_CLIENT_ERROR DisconnectReason = 4
	// The client wants to end the session because of some other reason.
	DisconnectReason_DISCONNECT_REASON_OTHER DisconnectReason = 5
)

func (DisconnectReason) Descriptor

func (DisconnectReason) Enum

func (DisconnectReason) EnumDescriptor deprecated

func (DisconnectReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use DisconnectReason.Descriptor instead.

func (DisconnectReason) Number

func (DisconnectReason) String

func (x DisconnectReason) String() string

func (DisconnectReason) Type

type DisconnectRequest

type DisconnectRequest struct {

	// The reason the clients wants to end the session due (optional).
	Reason DisconnectReason `protobuf:"varint,1,opt,name=reason,proto3,enum=grpc_api.DisconnectReason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

The request the client sends when initiating a disconnect (which in turn explicitly ends the session).

func (*DisconnectRequest) Descriptor deprecated

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

Deprecated: Use DisconnectRequest.ProtoReflect.Descriptor instead.

func (*DisconnectRequest) GetReason

func (x *DisconnectRequest) GetReason() DisconnectReason

func (*DisconnectRequest) ProtoMessage

func (*DisconnectRequest) ProtoMessage()

func (*DisconnectRequest) ProtoReflect

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

func (*DisconnectRequest) Reset

func (x *DisconnectRequest) Reset()

func (*DisconnectRequest) String

func (x *DisconnectRequest) String() string

func (*DisconnectRequest) Validate

func (m *DisconnectRequest) Validate() error

Validate checks the field values on DisconnectRequest 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 (*DisconnectRequest) ValidateAll

func (m *DisconnectRequest) ValidateAll() error

ValidateAll checks the field values on DisconnectRequest 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 DisconnectRequestMultiError, or nil if none found.

type DisconnectRequestMultiError

type DisconnectRequestMultiError []error

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

func (DisconnectRequestMultiError) AllErrors

func (m DisconnectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DisconnectRequestMultiError) Error

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

type DisconnectRequestValidationError

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

DisconnectRequestValidationError is the validation error returned by DisconnectRequest.Validate if the designated constraints aren't met.

func (DisconnectRequestValidationError) Cause

Cause function returns cause value.

func (DisconnectRequestValidationError) Error

Error satisfies the builtin error interface

func (DisconnectRequestValidationError) ErrorName

ErrorName returns error name.

func (DisconnectRequestValidationError) Field

Field function returns field value.

func (DisconnectRequestValidationError) Key

Key function returns key value.

func (DisconnectRequestValidationError) Reason

Reason function returns reason value.

type DisconnectResponse

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

The response the server sends when receiving a disconnect request.

func (*DisconnectResponse) Descriptor deprecated

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

Deprecated: Use DisconnectResponse.ProtoReflect.Descriptor instead.

func (*DisconnectResponse) ProtoMessage

func (*DisconnectResponse) ProtoMessage()

func (*DisconnectResponse) ProtoReflect

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

func (*DisconnectResponse) Reset

func (x *DisconnectResponse) Reset()

func (*DisconnectResponse) String

func (x *DisconnectResponse) String() string

func (*DisconnectResponse) Validate

func (m *DisconnectResponse) Validate() error

Validate checks the field values on DisconnectResponse 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 (*DisconnectResponse) ValidateAll

func (m *DisconnectResponse) ValidateAll() error

ValidateAll checks the field values on DisconnectResponse 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 DisconnectResponseMultiError, or nil if none found.

type DisconnectResponseMultiError

type DisconnectResponseMultiError []error

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

func (DisconnectResponseMultiError) AllErrors

func (m DisconnectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DisconnectResponseMultiError) Error

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

type DisconnectResponseValidationError

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

DisconnectResponseValidationError is the validation error returned by DisconnectResponse.Validate if the designated constraints aren't met.

func (DisconnectResponseValidationError) Cause

Cause function returns cause value.

func (DisconnectResponseValidationError) Error

Error satisfies the builtin error interface

func (DisconnectResponseValidationError) ErrorName

ErrorName returns error name.

func (DisconnectResponseValidationError) Field

Field function returns field value.

func (DisconnectResponseValidationError) Key

Key function returns key value.

func (DisconnectResponseValidationError) Reason

Reason function returns reason value.

type IPAddress

type IPAddress struct {

	// Actual value (required).
	//
	// Types that are assignable to Address:
	//
	//	*IPAddress_V4
	//	*IPAddress_V6
	Address isIPAddress_Address `protobuf_oneof:"address"`
	// contains filtered or unexported fields
}

A type for carrying an IPv4 or an IPv6 address.

func (*IPAddress) Descriptor deprecated

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

Deprecated: Use IPAddress.ProtoReflect.Descriptor instead.

func (*IPAddress) GetAddress

func (m *IPAddress) GetAddress() isIPAddress_Address

func (*IPAddress) GetV4

func (x *IPAddress) GetV4() *IPv4Address

func (*IPAddress) GetV6

func (x *IPAddress) GetV6() *IPv6Address

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) ProtoReflect

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

func (*IPAddress) Reset

func (x *IPAddress) Reset()

func (*IPAddress) String

func (x *IPAddress) String() string

func (*IPAddress) Validate

func (m *IPAddress) Validate() error

Validate checks the field values on IPAddress 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 (*IPAddress) ValidateAll

func (m *IPAddress) ValidateAll() error

ValidateAll checks the field values on IPAddress 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 IPAddressMultiError, or nil if none found.

type IPAddressMultiError

type IPAddressMultiError []error

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

func (IPAddressMultiError) AllErrors

func (m IPAddressMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IPAddressMultiError) Error

func (m IPAddressMultiError) Error() string

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

type IPAddressValidationError

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

IPAddressValidationError is the validation error returned by IPAddress.Validate if the designated constraints aren't met.

func (IPAddressValidationError) Cause

func (e IPAddressValidationError) Cause() error

Cause function returns cause value.

func (IPAddressValidationError) Error

func (e IPAddressValidationError) Error() string

Error satisfies the builtin error interface

func (IPAddressValidationError) ErrorName

func (e IPAddressValidationError) ErrorName() string

ErrorName returns error name.

func (IPAddressValidationError) Field

func (e IPAddressValidationError) Field() string

Field function returns field value.

func (IPAddressValidationError) Key

Key function returns key value.

func (IPAddressValidationError) Reason

func (e IPAddressValidationError) Reason() string

Reason function returns reason value.

type IPAddress_V4

type IPAddress_V4 struct {
	V4 *IPv4Address `protobuf:"bytes,1,opt,name=v4,proto3,oneof"`
}

type IPAddress_V6

type IPAddress_V6 struct {
	V6 *IPv6Address `protobuf:"bytes,2,opt,name=v6,proto3,oneof"`
}

type IPv4Address

type IPv4Address struct {

	// Actual value (required).
	Address uint32 `protobuf:"fixed32,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

A type for carrying an IPv4 address.

func (*IPv4Address) Descriptor deprecated

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

Deprecated: Use IPv4Address.ProtoReflect.Descriptor instead.

func (*IPv4Address) GetAddress

func (x *IPv4Address) GetAddress() uint32

func (*IPv4Address) ProtoMessage

func (*IPv4Address) ProtoMessage()

func (*IPv4Address) ProtoReflect

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

func (*IPv4Address) Reset

func (x *IPv4Address) Reset()

func (*IPv4Address) String

func (x *IPv4Address) String() string

func (*IPv4Address) Validate

func (m *IPv4Address) Validate() error

Validate checks the field values on IPv4Address 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 (*IPv4Address) ValidateAll

func (m *IPv4Address) ValidateAll() error

ValidateAll checks the field values on IPv4Address 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 IPv4AddressMultiError, or nil if none found.

type IPv4AddressMultiError

type IPv4AddressMultiError []error

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

func (IPv4AddressMultiError) AllErrors

func (m IPv4AddressMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IPv4AddressMultiError) Error

func (m IPv4AddressMultiError) Error() string

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

type IPv4AddressValidationError

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

IPv4AddressValidationError is the validation error returned by IPv4Address.Validate if the designated constraints aren't met.

func (IPv4AddressValidationError) Cause

Cause function returns cause value.

func (IPv4AddressValidationError) Error

Error satisfies the builtin error interface

func (IPv4AddressValidationError) ErrorName

func (e IPv4AddressValidationError) ErrorName() string

ErrorName returns error name.

func (IPv4AddressValidationError) Field

Field function returns field value.

func (IPv4AddressValidationError) Key

Key function returns key value.

func (IPv4AddressValidationError) Reason

Reason function returns reason value.

type IPv6Address

type IPv6Address struct {

	// Actual value (required).
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

A type for carrying an IPv6 address.

func (*IPv6Address) Descriptor deprecated

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

Deprecated: Use IPv6Address.ProtoReflect.Descriptor instead.

func (*IPv6Address) GetAddress

func (x *IPv6Address) GetAddress() []byte

func (*IPv6Address) ProtoMessage

func (*IPv6Address) ProtoMessage()

func (*IPv6Address) ProtoReflect

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

func (*IPv6Address) Reset

func (x *IPv6Address) Reset()

func (*IPv6Address) String

func (x *IPv6Address) String() string

func (*IPv6Address) Validate

func (m *IPv6Address) Validate() error

Validate checks the field values on IPv6Address 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 (*IPv6Address) ValidateAll

func (m *IPv6Address) ValidateAll() error

ValidateAll checks the field values on IPv6Address 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 IPv6AddressMultiError, or nil if none found.

type IPv6AddressMultiError

type IPv6AddressMultiError []error

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

func (IPv6AddressMultiError) AllErrors

func (m IPv6AddressMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IPv6AddressMultiError) Error

func (m IPv6AddressMultiError) Error() string

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

type IPv6AddressValidationError

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

IPv6AddressValidationError is the validation error returned by IPv6Address.Validate if the designated constraints aren't met.

func (IPv6AddressValidationError) Cause

Cause function returns cause value.

func (IPv6AddressValidationError) Error

Error satisfies the builtin error interface

func (IPv6AddressValidationError) ErrorName

func (e IPv6AddressValidationError) ErrorName() string

ErrorName returns error name.

func (IPv6AddressValidationError) Field

Field function returns field value.

func (IPv6AddressValidationError) Key

Key function returns key value.

func (IPv6AddressValidationError) Reason

Reason function returns reason value.

type JSON

type JSON struct {

	// Actual value (required).
	JsonString string `protobuf:"bytes,1,opt,name=json_string,json=jsonString,proto3" json:"json_string,omitempty"`
	// contains filtered or unexported fields
}

A type for carrying a JSON string.

Actually this type has no validator, but the server still checks if the provided string is valid JSON.

func (*JSON) Descriptor deprecated

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

Deprecated: Use JSON.ProtoReflect.Descriptor instead.

func (*JSON) GetJsonString

func (x *JSON) GetJsonString() string

func (*JSON) ProtoMessage

func (*JSON) ProtoMessage()

func (*JSON) ProtoReflect

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

func (*JSON) Reset

func (x *JSON) Reset()

func (*JSON) String

func (x *JSON) String() string

func (*JSON) Validate

func (m *JSON) Validate() error

Validate checks the field values on JSON 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 (*JSON) ValidateAll

func (m *JSON) ValidateAll() error

ValidateAll checks the field values on JSON 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 JSONMultiError, or nil if none found.

type JSONMultiError

type JSONMultiError []error

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

func (JSONMultiError) AllErrors

func (m JSONMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JSONMultiError) Error

func (m JSONMultiError) Error() string

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

type JSONValidationError

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

JSONValidationError is the validation error returned by JSON.Validate if the designated constraints aren't met.

func (JSONValidationError) Cause

func (e JSONValidationError) Cause() error

Cause function returns cause value.

func (JSONValidationError) Error

func (e JSONValidationError) Error() string

Error satisfies the builtin error interface

func (JSONValidationError) ErrorName

func (e JSONValidationError) ErrorName() string

ErrorName returns error name.

func (JSONValidationError) Field

func (e JSONValidationError) Field() string

Field function returns field value.

func (JSONValidationError) Key

func (e JSONValidationError) Key() bool

Key function returns key value.

func (JSONValidationError) Reason

func (e JSONValidationError) Reason() string

Reason function returns reason value.

type Port

type Port struct {

	// Actual value (required).
	Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

A type for carrying a valid port number.

Note: Excludes port 0, because it cannot be used to communicate externally.

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetPort

func (x *Port) GetPort() uint32

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

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

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

func (*Port) Validate

func (m *Port) Validate() error

Validate checks the field values on Port 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 (*Port) ValidateAll

func (m *Port) ValidateAll() error

ValidateAll checks the field values on Port 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 PortMultiError, or nil if none found.

type PortMultiError

type PortMultiError []error

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

func (PortMultiError) AllErrors

func (m PortMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PortMultiError) Error

func (m PortMultiError) Error() string

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

type PortValidationError

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

PortValidationError is the validation error returned by Port.Validate if the designated constraints aren't met.

func (PortValidationError) Cause

func (e PortValidationError) Cause() error

Cause function returns cause value.

func (PortValidationError) Error

func (e PortValidationError) Error() string

Error satisfies the builtin error interface

func (PortValidationError) ErrorName

func (e PortValidationError) ErrorName() string

ErrorName returns error name.

func (PortValidationError) Field

func (e PortValidationError) Field() string

Field function returns field value.

func (PortValidationError) Key

func (e PortValidationError) Key() bool

Key function returns key value.

func (PortValidationError) Reason

func (e PortValidationError) Reason() string

Reason function returns reason value.

type RegisterSessionRequest

type RegisterSessionRequest struct {

	// The botnet id the current monitoring session is monitoring (required).
	BotnetId string `protobuf:"bytes,1,opt,name=botnet_id,json=botnetId,proto3" json:"botnet_id,omitempty"`
	// The campaign id the current monitoring session should be part of (optional).
	CampaignId *string `protobuf:"bytes,2,opt,name=campaign_id,json=campaignId,proto3,oneof" json:"campaign_id,omitempty"`
	// The used frequency for crawling/populating for the current monitoring session (optional).
	Frequency *uint32 `protobuf:"varint,3,opt,name=frequency,proto3,oneof" json:"frequency,omitempty"`
	// The public IP address the monitor uses for the current monitoring session (optional).
	PublicIp *IPAddress `protobuf:"bytes,4,opt,name=public_ip,json=publicIp,proto3,oneof" json:"public_ip,omitempty"`
	// The port the monitoring session uses to listen for other bots (optional).
	MonitorPort *Port `protobuf:"bytes,5,opt,name=monitor_port,json=monitorPort,proto3,oneof" json:"monitor_port,omitempty"`
	// Potential further configuration data for the current monitoring session (optional).
	ConfigJson *JSON `protobuf:"bytes,6,opt,name=config_json,json=configJson,proto3,oneof" json:"config_json,omitempty"`
	// contains filtered or unexported fields
}

The request used for registering a monitoring session.

func (*RegisterSessionRequest) Descriptor deprecated

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

Deprecated: Use RegisterSessionRequest.ProtoReflect.Descriptor instead.

func (*RegisterSessionRequest) GetBotnetId

func (x *RegisterSessionRequest) GetBotnetId() string

func (*RegisterSessionRequest) GetCampaignId

func (x *RegisterSessionRequest) GetCampaignId() string

func (*RegisterSessionRequest) GetConfigJson

func (x *RegisterSessionRequest) GetConfigJson() *JSON

func (*RegisterSessionRequest) GetFrequency

func (x *RegisterSessionRequest) GetFrequency() uint32

func (*RegisterSessionRequest) GetMonitorPort

func (x *RegisterSessionRequest) GetMonitorPort() *Port

func (*RegisterSessionRequest) GetPublicIp

func (x *RegisterSessionRequest) GetPublicIp() *IPAddress

func (*RegisterSessionRequest) ProtoMessage

func (*RegisterSessionRequest) ProtoMessage()

func (*RegisterSessionRequest) ProtoReflect

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

func (*RegisterSessionRequest) Reset

func (x *RegisterSessionRequest) Reset()

func (*RegisterSessionRequest) String

func (x *RegisterSessionRequest) String() string

func (*RegisterSessionRequest) Validate

func (m *RegisterSessionRequest) Validate() error

Validate checks the field values on RegisterSessionRequest 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 (*RegisterSessionRequest) ValidateAll

func (m *RegisterSessionRequest) ValidateAll() error

ValidateAll checks the field values on RegisterSessionRequest 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 RegisterSessionRequestMultiError, or nil if none found.

type RegisterSessionRequestMultiError

type RegisterSessionRequestMultiError []error

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

func (RegisterSessionRequestMultiError) AllErrors

func (m RegisterSessionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterSessionRequestMultiError) Error

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

type RegisterSessionRequestValidationError

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

RegisterSessionRequestValidationError is the validation error returned by RegisterSessionRequest.Validate if the designated constraints aren't met.

func (RegisterSessionRequestValidationError) Cause

Cause function returns cause value.

func (RegisterSessionRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterSessionRequestValidationError) ErrorName

ErrorName returns error name.

func (RegisterSessionRequestValidationError) Field

Field function returns field value.

func (RegisterSessionRequestValidationError) Key

Key function returns key value.

func (RegisterSessionRequestValidationError) Reason

Reason function returns reason value.

type RegisterSessionResponse

type RegisterSessionResponse struct {

	// The 32bit session token for all further requests of this session (required).
	SessionToken *SessionToken `protobuf:"bytes,1,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	// The timeout in seconds after which the server automatically ends the session (required).
	//
	// Precisely means: The session expires if the time since last message from the client is more than the timeout.
	SessionTimeout uint32 `protobuf:"varint,2,opt,name=session_timeout,json=sessionTimeout,proto3" json:"session_timeout,omitempty"`
	// The timestamp of the last successfully inserted bot reply (optional).
	//
	// Not set when there is no last entry (or the server might not want to add it for other reasons).
	LastInsertedBotReply *Timestamp `` /* 131-byte string literal not displayed */
	// The timestamp of the last successfully inserted failed try (optional).
	//
	// Not set when there is no last entry (or the server might not want to add it for other reasons).
	LastInsertedFailedTry *Timestamp `` /* 134-byte string literal not displayed */
	// The timestamp of the last successfully inserted edge (optional).
	//
	// Not set when there is no last entry (or the server might not want to add it for other reasons).
	LastInsertedEdge *Timestamp `protobuf:"bytes,5,opt,name=last_inserted_edge,json=lastInsertedEdge,proto3,oneof" json:"last_inserted_edge,omitempty"`
	// contains filtered or unexported fields
}

The response the server sends when receiving a session registration request.

func (*RegisterSessionResponse) Descriptor deprecated

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

Deprecated: Use RegisterSessionResponse.ProtoReflect.Descriptor instead.

func (*RegisterSessionResponse) GetLastInsertedBotReply

func (x *RegisterSessionResponse) GetLastInsertedBotReply() *Timestamp

func (*RegisterSessionResponse) GetLastInsertedEdge

func (x *RegisterSessionResponse) GetLastInsertedEdge() *Timestamp

func (*RegisterSessionResponse) GetLastInsertedFailedTry

func (x *RegisterSessionResponse) GetLastInsertedFailedTry() *Timestamp

func (*RegisterSessionResponse) GetSessionTimeout

func (x *RegisterSessionResponse) GetSessionTimeout() uint32

func (*RegisterSessionResponse) GetSessionToken

func (x *RegisterSessionResponse) GetSessionToken() *SessionToken

func (*RegisterSessionResponse) ProtoMessage

func (*RegisterSessionResponse) ProtoMessage()

func (*RegisterSessionResponse) ProtoReflect

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

func (*RegisterSessionResponse) Reset

func (x *RegisterSessionResponse) Reset()

func (*RegisterSessionResponse) String

func (x *RegisterSessionResponse) String() string

func (*RegisterSessionResponse) Validate

func (m *RegisterSessionResponse) Validate() error

Validate checks the field values on RegisterSessionResponse 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 (*RegisterSessionResponse) ValidateAll

func (m *RegisterSessionResponse) ValidateAll() error

ValidateAll checks the field values on RegisterSessionResponse 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 RegisterSessionResponseMultiError, or nil if none found.

type RegisterSessionResponseMultiError

type RegisterSessionResponseMultiError []error

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

func (RegisterSessionResponseMultiError) AllErrors

func (m RegisterSessionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterSessionResponseMultiError) Error

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

type RegisterSessionResponseValidationError

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

RegisterSessionResponseValidationError is the validation error returned by RegisterSessionResponse.Validate if the designated constraints aren't met.

func (RegisterSessionResponseValidationError) Cause

Cause function returns cause value.

func (RegisterSessionResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterSessionResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterSessionResponseValidationError) Field

Field function returns field value.

func (RegisterSessionResponseValidationError) Key

Key function returns key value.

func (RegisterSessionResponseValidationError) Reason

Reason function returns reason value.

type SessionToken

type SessionToken struct {

	// Actual value (required).
	Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

A type for carrying the 32bit session token.

func (*SessionToken) Descriptor deprecated

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

Deprecated: Use SessionToken.ProtoReflect.Descriptor instead.

func (*SessionToken) GetToken

func (x *SessionToken) GetToken() []byte

func (*SessionToken) ProtoMessage

func (*SessionToken) ProtoMessage()

func (*SessionToken) ProtoReflect

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

func (*SessionToken) Reset

func (x *SessionToken) Reset()

func (*SessionToken) String

func (x *SessionToken) String() string

func (*SessionToken) Validate

func (m *SessionToken) Validate() error

Validate checks the field values on SessionToken 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 (*SessionToken) ValidateAll

func (m *SessionToken) ValidateAll() error

ValidateAll checks the field values on SessionToken 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 SessionTokenMultiError, or nil if none found.

type SessionTokenMultiError

type SessionTokenMultiError []error

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

func (SessionTokenMultiError) AllErrors

func (m SessionTokenMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SessionTokenMultiError) Error

func (m SessionTokenMultiError) Error() string

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

type SessionTokenValidationError

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

SessionTokenValidationError is the validation error returned by SessionToken.Validate if the designated constraints aren't met.

func (SessionTokenValidationError) Cause

Cause function returns cause value.

func (SessionTokenValidationError) Error

Error satisfies the builtin error interface

func (SessionTokenValidationError) ErrorName

func (e SessionTokenValidationError) ErrorName() string

ErrorName returns error name.

func (SessionTokenValidationError) Field

Field function returns field value.

func (SessionTokenValidationError) Key

Key function returns key value.

func (SessionTokenValidationError) Reason

Reason function returns reason value.

type StoreDatedBotReplyBatchRequest

type StoreDatedBotReplyBatchRequest struct {

	// The ID to identify this batch (required).
	//
	// This ID will be used by the server to later reference this batch.
	//
	// It is the responsibility of the client to use this ID wisely, the server will not verify uniqueness and will just use the ID it got from the client to reference batches.
	// It is recommended to simply use sequentially incrementing numbers per session.
	BatchId uint32 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// The bot replies to include in this batch (required).
	Replies []*DatedBotReply `protobuf:"bytes,2,rep,name=replies,proto3" json:"replies,omitempty"`
	// contains filtered or unexported fields
}

A batch of dated bot replies.

This is the message which actually will be streamed to the server.

func (*StoreDatedBotReplyBatchRequest) Descriptor deprecated

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

Deprecated: Use StoreDatedBotReplyBatchRequest.ProtoReflect.Descriptor instead.

func (*StoreDatedBotReplyBatchRequest) GetBatchId

func (x *StoreDatedBotReplyBatchRequest) GetBatchId() uint32

func (*StoreDatedBotReplyBatchRequest) GetReplies

func (x *StoreDatedBotReplyBatchRequest) GetReplies() []*DatedBotReply

func (*StoreDatedBotReplyBatchRequest) ProtoMessage

func (*StoreDatedBotReplyBatchRequest) ProtoMessage()

func (*StoreDatedBotReplyBatchRequest) ProtoReflect

func (*StoreDatedBotReplyBatchRequest) Reset

func (x *StoreDatedBotReplyBatchRequest) Reset()

func (*StoreDatedBotReplyBatchRequest) String

func (*StoreDatedBotReplyBatchRequest) Validate

func (m *StoreDatedBotReplyBatchRequest) Validate() error

Validate checks the field values on StoreDatedBotReplyBatchRequest 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 (*StoreDatedBotReplyBatchRequest) ValidateAll

func (m *StoreDatedBotReplyBatchRequest) ValidateAll() error

ValidateAll checks the field values on StoreDatedBotReplyBatchRequest 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 StoreDatedBotReplyBatchRequestMultiError, or nil if none found.

type StoreDatedBotReplyBatchRequestMultiError

type StoreDatedBotReplyBatchRequestMultiError []error

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

func (StoreDatedBotReplyBatchRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (StoreDatedBotReplyBatchRequestMultiError) Error

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

type StoreDatedBotReplyBatchRequestValidationError

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

StoreDatedBotReplyBatchRequestValidationError is the validation error returned by StoreDatedBotReplyBatchRequest.Validate if the designated constraints aren't met.

func (StoreDatedBotReplyBatchRequestValidationError) Cause

Cause function returns cause value.

func (StoreDatedBotReplyBatchRequestValidationError) Error

Error satisfies the builtin error interface

func (StoreDatedBotReplyBatchRequestValidationError) ErrorName

ErrorName returns error name.

func (StoreDatedBotReplyBatchRequestValidationError) Field

Field function returns field value.

func (StoreDatedBotReplyBatchRequestValidationError) Key

Key function returns key value.

func (StoreDatedBotReplyBatchRequestValidationError) Reason

Reason function returns reason value.

type StoreDatedBotReplyBatchResponse

type StoreDatedBotReplyBatchResponse struct {

	// The ID of the batch which was successfully received (required).
	//
	// The referenced batch can now be removed from the clients cache.
	BatchId uint32 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// contains filtered or unexported fields
}

The response the server sends when receiving a dated bot reply batch.

func (*StoreDatedBotReplyBatchResponse) Descriptor deprecated

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

Deprecated: Use StoreDatedBotReplyBatchResponse.ProtoReflect.Descriptor instead.

func (*StoreDatedBotReplyBatchResponse) GetBatchId

func (x *StoreDatedBotReplyBatchResponse) GetBatchId() uint32

func (*StoreDatedBotReplyBatchResponse) ProtoMessage

func (*StoreDatedBotReplyBatchResponse) ProtoMessage()

func (*StoreDatedBotReplyBatchResponse) ProtoReflect

func (*StoreDatedBotReplyBatchResponse) Reset

func (*StoreDatedBotReplyBatchResponse) String

func (*StoreDatedBotReplyBatchResponse) Validate

func (m *StoreDatedBotReplyBatchResponse) Validate() error

Validate checks the field values on StoreDatedBotReplyBatchResponse 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 (*StoreDatedBotReplyBatchResponse) ValidateAll

func (m *StoreDatedBotReplyBatchResponse) ValidateAll() error

ValidateAll checks the field values on StoreDatedBotReplyBatchResponse 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 StoreDatedBotReplyBatchResponseMultiError, or nil if none found.

type StoreDatedBotReplyBatchResponseMultiError

type StoreDatedBotReplyBatchResponseMultiError []error

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

func (StoreDatedBotReplyBatchResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (StoreDatedBotReplyBatchResponseMultiError) Error

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

type StoreDatedBotReplyBatchResponseValidationError

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

StoreDatedBotReplyBatchResponseValidationError is the validation error returned by StoreDatedBotReplyBatchResponse.Validate if the designated constraints aren't met.

func (StoreDatedBotReplyBatchResponseValidationError) Cause

Cause function returns cause value.

func (StoreDatedBotReplyBatchResponseValidationError) Error

Error satisfies the builtin error interface

func (StoreDatedBotReplyBatchResponseValidationError) ErrorName

ErrorName returns error name.

func (StoreDatedBotReplyBatchResponseValidationError) Field

Field function returns field value.

func (StoreDatedBotReplyBatchResponseValidationError) Key

Key function returns key value.

func (StoreDatedBotReplyBatchResponseValidationError) Reason

Reason function returns reason value.

type StoreDatedEdgeBatchRequest

type StoreDatedEdgeBatchRequest struct {

	// The ID to identify this batch (required).
	//
	// This ID will be used by the server to later reference this batch.
	//
	// It is the responsibility of the client to use this ID wisely, the server will not verify uniqueness and will just use the ID it got from the client to reference batches.
	// It is recommended to simply use sequentially incrementing numbers per session.
	BatchId uint32 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// The edges to include in this batch (required).
	Edges []*DatedEdge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

A batch of dated edges.

This is the message which actually will be streamed to the server.

func (*StoreDatedEdgeBatchRequest) Descriptor deprecated

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

Deprecated: Use StoreDatedEdgeBatchRequest.ProtoReflect.Descriptor instead.

func (*StoreDatedEdgeBatchRequest) GetBatchId

func (x *StoreDatedEdgeBatchRequest) GetBatchId() uint32

func (*StoreDatedEdgeBatchRequest) GetEdges

func (x *StoreDatedEdgeBatchRequest) GetEdges() []*DatedEdge

func (*StoreDatedEdgeBatchRequest) ProtoMessage

func (*StoreDatedEdgeBatchRequest) ProtoMessage()

func (*StoreDatedEdgeBatchRequest) ProtoReflect

func (*StoreDatedEdgeBatchRequest) Reset

func (x *StoreDatedEdgeBatchRequest) Reset()

func (*StoreDatedEdgeBatchRequest) String

func (x *StoreDatedEdgeBatchRequest) String() string

func (*StoreDatedEdgeBatchRequest) Validate

func (m *StoreDatedEdgeBatchRequest) Validate() error

Validate checks the field values on StoreDatedEdgeBatchRequest 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 (*StoreDatedEdgeBatchRequest) ValidateAll

func (m *StoreDatedEdgeBatchRequest) ValidateAll() error

ValidateAll checks the field values on StoreDatedEdgeBatchRequest 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 StoreDatedEdgeBatchRequestMultiError, or nil if none found.

type StoreDatedEdgeBatchRequestMultiError

type StoreDatedEdgeBatchRequestMultiError []error

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

func (StoreDatedEdgeBatchRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (StoreDatedEdgeBatchRequestMultiError) Error

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

type StoreDatedEdgeBatchRequestValidationError

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

StoreDatedEdgeBatchRequestValidationError is the validation error returned by StoreDatedEdgeBatchRequest.Validate if the designated constraints aren't met.

func (StoreDatedEdgeBatchRequestValidationError) Cause

Cause function returns cause value.

func (StoreDatedEdgeBatchRequestValidationError) Error

Error satisfies the builtin error interface

func (StoreDatedEdgeBatchRequestValidationError) ErrorName

ErrorName returns error name.

func (StoreDatedEdgeBatchRequestValidationError) Field

Field function returns field value.

func (StoreDatedEdgeBatchRequestValidationError) Key

Key function returns key value.

func (StoreDatedEdgeBatchRequestValidationError) Reason

Reason function returns reason value.

type StoreDatedEdgeBatchResponse

type StoreDatedEdgeBatchResponse struct {

	// The ID of the batch which was successfully received (required).
	//
	// The referenced batch can now be removed from the clients cache.
	BatchId uint32 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// contains filtered or unexported fields
}

The response the server sends when receiving a dated edge batch.

func (*StoreDatedEdgeBatchResponse) Descriptor deprecated

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

Deprecated: Use StoreDatedEdgeBatchResponse.ProtoReflect.Descriptor instead.

func (*StoreDatedEdgeBatchResponse) GetBatchId

func (x *StoreDatedEdgeBatchResponse) GetBatchId() uint32

func (*StoreDatedEdgeBatchResponse) ProtoMessage

func (*StoreDatedEdgeBatchResponse) ProtoMessage()

func (*StoreDatedEdgeBatchResponse) ProtoReflect

func (*StoreDatedEdgeBatchResponse) Reset

func (x *StoreDatedEdgeBatchResponse) Reset()

func (*StoreDatedEdgeBatchResponse) String

func (x *StoreDatedEdgeBatchResponse) String() string

func (*StoreDatedEdgeBatchResponse) Validate

func (m *StoreDatedEdgeBatchResponse) Validate() error

Validate checks the field values on StoreDatedEdgeBatchResponse 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 (*StoreDatedEdgeBatchResponse) ValidateAll

func (m *StoreDatedEdgeBatchResponse) ValidateAll() error

ValidateAll checks the field values on StoreDatedEdgeBatchResponse 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 StoreDatedEdgeBatchResponseMultiError, or nil if none found.

type StoreDatedEdgeBatchResponseMultiError

type StoreDatedEdgeBatchResponseMultiError []error

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

func (StoreDatedEdgeBatchResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (StoreDatedEdgeBatchResponseMultiError) Error

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

type StoreDatedEdgeBatchResponseValidationError

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

StoreDatedEdgeBatchResponseValidationError is the validation error returned by StoreDatedEdgeBatchResponse.Validate if the designated constraints aren't met.

func (StoreDatedEdgeBatchResponseValidationError) Cause

Cause function returns cause value.

func (StoreDatedEdgeBatchResponseValidationError) Error

Error satisfies the builtin error interface

func (StoreDatedEdgeBatchResponseValidationError) ErrorName

ErrorName returns error name.

func (StoreDatedEdgeBatchResponseValidationError) Field

Field function returns field value.

func (StoreDatedEdgeBatchResponseValidationError) Key

Key function returns key value.

func (StoreDatedEdgeBatchResponseValidationError) Reason

Reason function returns reason value.

type StoreDatedFailedTryBatchRequest

type StoreDatedFailedTryBatchRequest struct {

	// The ID to identify this batch (required).
	//
	// This ID will be used by the server to later reference this batch.
	//
	// It is the responsibility of the client to use this ID wisely, the server will not verify uniqueness and will just use the ID it got from the client to reference batches.
	// It is recommended to simply use sequentially incrementing numbers per session.
	BatchId uint32 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// The (failed) bot contact tries to include in this batch (required).
	Tries []*DatedFailedTry `protobuf:"bytes,2,rep,name=tries,proto3" json:"tries,omitempty"`
	// contains filtered or unexported fields
}

A batch of dated (failed) bot contact tries.

This is the message which actually will be streamed to the server.

func (*StoreDatedFailedTryBatchRequest) Descriptor deprecated

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

Deprecated: Use StoreDatedFailedTryBatchRequest.ProtoReflect.Descriptor instead.

func (*StoreDatedFailedTryBatchRequest) GetBatchId

func (x *StoreDatedFailedTryBatchRequest) GetBatchId() uint32

func (*StoreDatedFailedTryBatchRequest) GetTries

func (*StoreDatedFailedTryBatchRequest) ProtoMessage

func (*StoreDatedFailedTryBatchRequest) ProtoMessage()

func (*StoreDatedFailedTryBatchRequest) ProtoReflect

func (*StoreDatedFailedTryBatchRequest) Reset

func (*StoreDatedFailedTryBatchRequest) String

func (*StoreDatedFailedTryBatchRequest) Validate

func (m *StoreDatedFailedTryBatchRequest) Validate() error

Validate checks the field values on StoreDatedFailedTryBatchRequest 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 (*StoreDatedFailedTryBatchRequest) ValidateAll

func (m *StoreDatedFailedTryBatchRequest) ValidateAll() error

ValidateAll checks the field values on StoreDatedFailedTryBatchRequest 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 StoreDatedFailedTryBatchRequestMultiError, or nil if none found.

type StoreDatedFailedTryBatchRequestMultiError

type StoreDatedFailedTryBatchRequestMultiError []error

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

func (StoreDatedFailedTryBatchRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (StoreDatedFailedTryBatchRequestMultiError) Error

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

type StoreDatedFailedTryBatchRequestValidationError

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

StoreDatedFailedTryBatchRequestValidationError is the validation error returned by StoreDatedFailedTryBatchRequest.Validate if the designated constraints aren't met.

func (StoreDatedFailedTryBatchRequestValidationError) Cause

Cause function returns cause value.

func (StoreDatedFailedTryBatchRequestValidationError) Error

Error satisfies the builtin error interface

func (StoreDatedFailedTryBatchRequestValidationError) ErrorName

ErrorName returns error name.

func (StoreDatedFailedTryBatchRequestValidationError) Field

Field function returns field value.

func (StoreDatedFailedTryBatchRequestValidationError) Key

Key function returns key value.

func (StoreDatedFailedTryBatchRequestValidationError) Reason

Reason function returns reason value.

type StoreDatedFailedTryBatchResponse

type StoreDatedFailedTryBatchResponse struct {

	// The ID of the batch which was successfully received (required).
	//
	// The referenced batch can now be removed from the clients cache.
	BatchId uint32 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// contains filtered or unexported fields
}

The response the server sends when receiving a dated (failed) bot contact try batch.

func (*StoreDatedFailedTryBatchResponse) Descriptor deprecated

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

Deprecated: Use StoreDatedFailedTryBatchResponse.ProtoReflect.Descriptor instead.

func (*StoreDatedFailedTryBatchResponse) GetBatchId

func (x *StoreDatedFailedTryBatchResponse) GetBatchId() uint32

func (*StoreDatedFailedTryBatchResponse) ProtoMessage

func (*StoreDatedFailedTryBatchResponse) ProtoMessage()

func (*StoreDatedFailedTryBatchResponse) ProtoReflect

func (*StoreDatedFailedTryBatchResponse) Reset

func (*StoreDatedFailedTryBatchResponse) String

func (*StoreDatedFailedTryBatchResponse) Validate

Validate checks the field values on StoreDatedFailedTryBatchResponse 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 (*StoreDatedFailedTryBatchResponse) ValidateAll

func (m *StoreDatedFailedTryBatchResponse) ValidateAll() error

ValidateAll checks the field values on StoreDatedFailedTryBatchResponse 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 StoreDatedFailedTryBatchResponseMultiError, or nil if none found.

type StoreDatedFailedTryBatchResponseMultiError

type StoreDatedFailedTryBatchResponseMultiError []error

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

func (StoreDatedFailedTryBatchResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (StoreDatedFailedTryBatchResponseMultiError) Error

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

type StoreDatedFailedTryBatchResponseValidationError

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

StoreDatedFailedTryBatchResponseValidationError is the validation error returned by StoreDatedFailedTryBatchResponse.Validate if the designated constraints aren't met.

func (StoreDatedFailedTryBatchResponseValidationError) Cause

Cause function returns cause value.

func (StoreDatedFailedTryBatchResponseValidationError) Error

Error satisfies the builtin error interface

func (StoreDatedFailedTryBatchResponseValidationError) ErrorName

ErrorName returns error name.

func (StoreDatedFailedTryBatchResponseValidationError) Field

Field function returns field value.

func (StoreDatedFailedTryBatchResponseValidationError) Key

Key function returns key value.

func (StoreDatedFailedTryBatchResponseValidationError) Reason

Reason function returns reason value.

type Timestamp

type Timestamp struct {

	// Seconds since the Unix epoch (1970-01-01) (required).
	UnixSeconds int64 `protobuf:"varint,1,opt,name=unix_seconds,json=unixSeconds,proto3" json:"unix_seconds,omitempty"`
	// Nano seconds to add to the given unix seconds (optional).
	UnixNanoSeconds int64 `protobuf:"varint,2,opt,name=unix_nano_seconds,json=unixNanoSeconds,proto3" json:"unix_nano_seconds,omitempty"`
	// contains filtered or unexported fields
}

A type for carrying a timestamp with nano second resolution.

Note: Although this has a nano second resolution, the BMS database stores time only in micro second resolution.

func (*Timestamp) Descriptor deprecated

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

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetUnixNanoSeconds

func (x *Timestamp) GetUnixNanoSeconds() int64

func (*Timestamp) GetUnixSeconds

func (x *Timestamp) GetUnixSeconds() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

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

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

func (*Timestamp) Validate

func (m *Timestamp) Validate() error

Validate checks the field values on Timestamp 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 (*Timestamp) ValidateAll

func (m *Timestamp) ValidateAll() error

ValidateAll checks the field values on Timestamp 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 TimestampMultiError, or nil if none found.

type TimestampMultiError

type TimestampMultiError []error

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

func (TimestampMultiError) AllErrors

func (m TimestampMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TimestampMultiError) Error

func (m TimestampMultiError) Error() string

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

type TimestampValidationError

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

TimestampValidationError is the validation error returned by Timestamp.Validate if the designated constraints aren't met.

func (TimestampValidationError) Cause

func (e TimestampValidationError) Cause() error

Cause function returns cause value.

func (TimestampValidationError) Error

func (e TimestampValidationError) Error() string

Error satisfies the builtin error interface

func (TimestampValidationError) ErrorName

func (e TimestampValidationError) ErrorName() string

ErrorName returns error name.

func (TimestampValidationError) Field

func (e TimestampValidationError) Field() string

Field function returns field value.

func (TimestampValidationError) Key

Key function returns key value.

func (TimestampValidationError) Reason

func (e TimestampValidationError) Reason() string

Reason function returns reason value.

type UnimplementedBMSStorageServiceServer

type UnimplementedBMSStorageServiceServer struct {
}

UnimplementedBMSStorageServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBMSStorageServiceServer) Disconnect

func (UnimplementedBMSStorageServiceServer) RegisterSession

func (UnimplementedBMSStorageServiceServer) StoreDatedBotReplyBatch

func (UnimplementedBMSStorageServiceServer) StoreDatedEdgeBatch

func (UnimplementedBMSStorageServiceServer) StoreDatedFailedTryBatch

type UnsafeBMSStorageServiceServer

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

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

Jump to

Keyboard shortcuts

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