Documentation ¶
Index ¶
- Variables
- type Bar
- type FooEvent
- type FooEventType
- func (*FooEventType) Descriptor() ([]byte, []int)deprecated
- func (x *FooEventType) Get() IsFooEventTypeWrappedType
- func (x *FooEventType) GetCreated() *FooEventType_Created
- func (m *FooEventType) GetType() isFooEventType_Type
- func (x *FooEventType) GetUpdated() *FooEventType_Updated
- func (*FooEventType) ProtoMessage()
- func (x *FooEventType) ProtoReflect() protoreflect.Message
- func (x *FooEventType) Reset()
- func (x *FooEventType) Set(val IsFooEventTypeWrappedType)
- func (x *FooEventType) String() string
- func (x *FooEventType) TypeKey() (FooEventTypeKey, bool)
- type FooEventTypeKey
- type FooEventType_Created
- func (*FooEventType_Created) Descriptor() ([]byte, []int)deprecated
- func (x *FooEventType_Created) GetField() string
- func (*FooEventType_Created) ProtoMessage()
- func (x *FooEventType_Created) ProtoReflect() protoreflect.Message
- func (x *FooEventType_Created) Reset()
- func (x *FooEventType_Created) String() string
- func (x *FooEventType_Created) TypeKey() FooEventTypeKey
- type FooEventType_Created_
- type FooEventType_Updated
- func (*FooEventType_Updated) Descriptor() ([]byte, []int)deprecated
- func (x *FooEventType_Updated) GetField() string
- func (*FooEventType_Updated) ProtoMessage()
- func (x *FooEventType_Updated) ProtoReflect() protoreflect.Message
- func (x *FooEventType_Updated) Reset()
- func (x *FooEventType_Updated) String() string
- func (x *FooEventType_Updated) TypeKey() FooEventTypeKey
- type FooEventType_Updated_
- type FooKeys
- type FooState
- func (*FooState) Descriptor() ([]byte, []int)deprecated
- func (x *FooState) GetBar() *Bar
- func (x *FooState) GetCreatedAt() *timestamppb.Timestamp
- func (x *FooState) GetKeys() *FooKeys
- func (x *FooState) GetName() string
- func (x *FooState) GetStatus() FooStatus
- func (*FooState) ProtoMessage()
- func (x *FooState) ProtoReflect() protoreflect.Message
- func (x *FooState) Reset()
- func (x *FooState) String() string
- type FooStatus
- func (FooStatus) Descriptor() protoreflect.EnumDescriptor
- func (x FooStatus) Enum() *FooStatus
- func (FooStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x FooStatus) Number() protoreflect.EnumNumber
- func (x *FooStatus) Scan(value interface{}) error
- func (x FooStatus) ShortString() string
- func (x FooStatus) String() string
- func (FooStatus) Type() protoreflect.EnumType
- func (x FooStatus) Value() (driver.Value, error)
- type IsFooEventTypeWrappedType
- type IsFooEventType_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FooStatus_name = map[int32]string{ 0: "FOO_STATUS_UNSPECIFIED", 1: "FOO_STATUS_ACTIVE", 2: "FOO_STATUS_INACTIVE", } FooStatus_value = map[string]int32{ "FOO_STATUS_UNSPECIFIED": 0, "FOO_STATUS_ACTIVE": 1, "FOO_STATUS_INACTIVE": 2, } )
Enum value maps for FooStatus.
View Source
var ( FooStatus_name_short = map[int32]string{ 0: "UNSPECIFIED", 1: "ACTIVE", 2: "INACTIVE", } FooStatus_value_short = map[string]int32{ "UNSPECIFIED": 0, "ACTIVE": 1, "INACTIVE": 2, } FooStatus_value_either = map[string]int32{ "UNSPECIFIED": 0, "FOO_STATUS_UNSPECIFIED": 0, "ACTIVE": 1, "FOO_STATUS_ACTIVE": 1, "INACTIVE": 2, "FOO_STATUS_INACTIVE": 2, } )
View Source
var File_test_foo_v1_foo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"` // contains filtered or unexported fields }
func (*Bar) Descriptor
deprecated
func (*Bar) ProtoMessage ¶
func (*Bar) ProtoMessage()
func (*Bar) ProtoReflect ¶
func (x *Bar) ProtoReflect() protoreflect.Message
type FooEvent ¶
type FooEvent struct { Keys *FooKeys `protobuf:"bytes,1,opt,name=keys,proto3" json:"keys,omitempty"` Event *FooEventType `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*FooEvent) Descriptor
deprecated
func (*FooEvent) GetEvent ¶
func (x *FooEvent) GetEvent() *FooEventType
func (*FooEvent) ProtoMessage ¶
func (*FooEvent) ProtoMessage()
func (*FooEvent) ProtoReflect ¶
func (x *FooEvent) ProtoReflect() protoreflect.Message
type FooEventType ¶
type FooEventType struct { // Types that are assignable to Type: // // *FooEventType_Created_ // *FooEventType_Updated_ Type isFooEventType_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*FooEventType) Descriptor
deprecated
func (*FooEventType) Descriptor() ([]byte, []int)
Deprecated: Use FooEventType.ProtoReflect.Descriptor instead.
func (*FooEventType) Get ¶
func (x *FooEventType) Get() IsFooEventTypeWrappedType
func (*FooEventType) GetCreated ¶
func (x *FooEventType) GetCreated() *FooEventType_Created
func (*FooEventType) GetType ¶
func (m *FooEventType) GetType() isFooEventType_Type
func (*FooEventType) GetUpdated ¶
func (x *FooEventType) GetUpdated() *FooEventType_Updated
func (*FooEventType) ProtoMessage ¶
func (*FooEventType) ProtoMessage()
func (*FooEventType) ProtoReflect ¶
func (x *FooEventType) ProtoReflect() protoreflect.Message
func (*FooEventType) Reset ¶
func (x *FooEventType) Reset()
func (*FooEventType) Set ¶
func (x *FooEventType) Set(val IsFooEventTypeWrappedType)
func (*FooEventType) String ¶
func (x *FooEventType) String() string
func (*FooEventType) TypeKey ¶
func (x *FooEventType) TypeKey() (FooEventTypeKey, bool)
type FooEventTypeKey ¶
type FooEventTypeKey string
FooEventType is a oneof wrapper
const ( FooEvent_Created FooEventTypeKey = "created" FooEvent_Updated FooEventTypeKey = "updated" )
type FooEventType_Created ¶
type FooEventType_Created struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // contains filtered or unexported fields }
Comment on Created
func (*FooEventType_Created) Descriptor
deprecated
func (*FooEventType_Created) Descriptor() ([]byte, []int)
Deprecated: Use FooEventType_Created.ProtoReflect.Descriptor instead.
func (*FooEventType_Created) GetField ¶
func (x *FooEventType_Created) GetField() string
func (*FooEventType_Created) ProtoMessage ¶
func (*FooEventType_Created) ProtoMessage()
func (*FooEventType_Created) ProtoReflect ¶
func (x *FooEventType_Created) ProtoReflect() protoreflect.Message
func (*FooEventType_Created) Reset ¶
func (x *FooEventType_Created) Reset()
func (*FooEventType_Created) String ¶
func (x *FooEventType_Created) String() string
func (*FooEventType_Created) TypeKey ¶
func (x *FooEventType_Created) TypeKey() FooEventTypeKey
type FooEventType_Created_ ¶
type FooEventType_Created_ struct {
Created *FooEventType_Created `protobuf:"bytes,1,opt,name=created,proto3,oneof"`
}
type FooEventType_Updated ¶
type FooEventType_Updated struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // contains filtered or unexported fields }
Comment on Updated
func (*FooEventType_Updated) Descriptor
deprecated
func (*FooEventType_Updated) Descriptor() ([]byte, []int)
Deprecated: Use FooEventType_Updated.ProtoReflect.Descriptor instead.
func (*FooEventType_Updated) GetField ¶
func (x *FooEventType_Updated) GetField() string
func (*FooEventType_Updated) ProtoMessage ¶
func (*FooEventType_Updated) ProtoMessage()
func (*FooEventType_Updated) ProtoReflect ¶
func (x *FooEventType_Updated) ProtoReflect() protoreflect.Message
func (*FooEventType_Updated) Reset ¶
func (x *FooEventType_Updated) Reset()
func (*FooEventType_Updated) String ¶
func (x *FooEventType_Updated) String() string
func (*FooEventType_Updated) TypeKey ¶
func (x *FooEventType_Updated) TypeKey() FooEventTypeKey
type FooEventType_Updated_ ¶
type FooEventType_Updated_ struct {
Updated *FooEventType_Updated `protobuf:"bytes,2,opt,name=updated,proto3,oneof"`
}
type FooKeys ¶
type FooKeys struct { FooId string `protobuf:"bytes,1,opt,name=foo_id,json=fooId,proto3" json:"foo_id,omitempty"` // contains filtered or unexported fields }
func (*FooKeys) Descriptor
deprecated
func (*FooKeys) ProtoMessage ¶
func (*FooKeys) ProtoMessage()
func (*FooKeys) ProtoReflect ¶
func (x *FooKeys) ProtoReflect() protoreflect.Message
type FooState ¶
type FooState struct { Keys *FooKeys `protobuf:"bytes,1,opt,name=keys,proto3" json:"keys,omitempty"` Status FooStatus `protobuf:"varint,2,opt,name=status,proto3,enum=test.foo.v1.FooStatus" json:"status,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Bar *Bar `protobuf:"bytes,4,opt,name=bar,proto3" json:"bar,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*FooState) Descriptor
deprecated
func (*FooState) GetCreatedAt ¶
func (x *FooState) GetCreatedAt() *timestamppb.Timestamp
func (*FooState) ProtoMessage ¶
func (*FooState) ProtoMessage()
func (*FooState) ProtoReflect ¶
func (x *FooState) ProtoReflect() protoreflect.Message
type FooStatus ¶
type FooStatus int32
const ( FooStatus_UNSPECIFIED FooStatus = 0 FooStatus_ACTIVE FooStatus = 1 FooStatus_INACTIVE FooStatus = 2 )
FooStatus
func (FooStatus) Descriptor ¶
func (FooStatus) Descriptor() protoreflect.EnumDescriptor
func (FooStatus) EnumDescriptor
deprecated
func (FooStatus) Number ¶
func (x FooStatus) Number() protoreflect.EnumNumber
func (FooStatus) ShortString ¶
ShortString returns the un-prefixed string representation of the enum value
func (FooStatus) Type ¶
func (FooStatus) Type() protoreflect.EnumType
type IsFooEventTypeWrappedType ¶
type IsFooEventTypeWrappedType interface {
TypeKey() FooEventTypeKey
}
type IsFooEventType_Type ¶
type IsFooEventType_Type = isFooEventType_Type
Click to show internal directories.
Click to hide internal directories.