protocol

package
v1.64.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 7 Imported by: 10 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by protoc-gen-go-helpers. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_temporal_api_protocol_v1_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {

	// An ID for this specific message.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Identifies the specific instance of a protocol to which this message
	// belongs.
	ProtocolInstanceId string `protobuf:"bytes,2,opt,name=protocol_instance_id,json=protocolInstanceId,proto3" json:"protocol_instance_id,omitempty"`
	// The event ID or command ID after which this message can be delivered. The
	// effects of history up to and including this event ID should be visible to
	// the code that handles this message. Omit to opt out of sequencing.
	//
	// Types that are valid to be assigned to SequencingId:
	//
	//	*Message_EventId
	//	*Message_CommandIndex
	SequencingId isMessage_SequencingId `protobuf_oneof:"sequencing_id"`
	// The opaque data carried by this message. The protocol type can be
	// extracted from the package name of the message carried inside the Any.
	Body *anypb.Any `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

(-- api-linter: core::0146::any=disabled

aip.dev/not-precedent: We want runtime extensibility for the body field --)

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) Equal

func (this *Message) Equal(that interface{}) bool

Equal returns whether two Message values are equivalent by recursively comparing the message's fields. For more information see the documentation for https://pkg.go.dev/google.golang.org/protobuf/proto#Equal

func (*Message) GetBody

func (x *Message) GetBody() *anypb.Any

func (*Message) GetCommandIndex

func (x *Message) GetCommandIndex() int64

func (*Message) GetEventId

func (x *Message) GetEventId() int64

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetProtocolInstanceId

func (x *Message) GetProtocolInstanceId() string

func (*Message) GetSequencingId

func (x *Message) GetSequencingId() isMessage_SequencingId

func (*Message) Marshal

func (val *Message) Marshal() ([]byte, error)

Marshal an object of type Message to the protobuf v3 wire format

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v1.26.1

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) Size

func (val *Message) Size() int

Size returns the size of the object, in bytes, once serialized

func (*Message) String

func (x *Message) String() string

func (*Message) Unmarshal

func (val *Message) Unmarshal(buf []byte) error

Unmarshal an object of type Message from the protobuf v3 wire format

type Message_CommandIndex

type Message_CommandIndex struct {
	CommandIndex int64 `protobuf:"varint,4,opt,name=command_index,json=commandIndex,proto3,oneof"`
}

type Message_EventId

type Message_EventId struct {
	EventId int64 `protobuf:"varint,3,opt,name=event_id,json=eventId,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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