foo_testpb

package
v0.0.0-...-9c8294d Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Bar.ProtoReflect.Descriptor instead.

func (*Bar) GetField

func (x *Bar) GetField() string

func (*Bar) GetId

func (x *Bar) GetId() string

func (*Bar) ProtoMessage

func (*Bar) ProtoMessage()

func (*Bar) ProtoReflect

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

func (*Bar) Reset

func (x *Bar) Reset()

func (*Bar) String

func (x *Bar) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FooEvent.ProtoReflect.Descriptor instead.

func (*FooEvent) GetEvent

func (x *FooEvent) GetEvent() *FooEventType

func (*FooEvent) GetKeys

func (x *FooEvent) GetKeys() *FooKeys

func (*FooEvent) ProtoMessage

func (*FooEvent) ProtoMessage()

func (*FooEvent) ProtoReflect

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

func (*FooEvent) Reset

func (x *FooEvent) Reset()

func (*FooEvent) String

func (x *FooEvent) String() string

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 (*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 (*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

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

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) Descriptor() ([]byte, []int)

Deprecated: Use FooKeys.ProtoReflect.Descriptor instead.

func (*FooKeys) GetFooId

func (x *FooKeys) GetFooId() string

func (*FooKeys) ProtoMessage

func (*FooKeys) ProtoMessage()

func (*FooKeys) ProtoReflect

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

func (*FooKeys) Reset

func (x *FooKeys) Reset()

func (*FooKeys) String

func (x *FooKeys) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FooState.ProtoReflect.Descriptor instead.

func (*FooState) GetBar

func (x *FooState) GetBar() *Bar

func (*FooState) GetCreatedAt

func (x *FooState) GetCreatedAt() *timestamppb.Timestamp

func (*FooState) GetKeys

func (x *FooState) GetKeys() *FooKeys

func (*FooState) GetName

func (x *FooState) GetName() string

func (*FooState) GetStatus

func (x *FooState) GetStatus() FooStatus

func (*FooState) ProtoMessage

func (*FooState) ProtoMessage()

func (*FooState) ProtoReflect

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

func (*FooState) Reset

func (x *FooState) Reset()

func (*FooState) String

func (x *FooState) String() string

type FooStatus

type FooStatus int32
const (
	FooStatus_FOO_STATUS_UNSPECIFIED FooStatus = 0
	FooStatus_FOO_STATUS_ACTIVE      FooStatus = 1
	FooStatus_FOO_STATUS_INACTIVE    FooStatus = 2
)
const (
	FooStatus_UNSPECIFIED FooStatus = 0
	FooStatus_ACTIVE      FooStatus = 1
	FooStatus_INACTIVE    FooStatus = 2
)

FooStatus

func (FooStatus) Descriptor

func (FooStatus) Descriptor() protoreflect.EnumDescriptor

func (FooStatus) Enum

func (x FooStatus) Enum() *FooStatus

func (FooStatus) EnumDescriptor deprecated

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

Deprecated: Use FooStatus.Descriptor instead.

func (FooStatus) Number

func (x FooStatus) Number() protoreflect.EnumNumber

func (*FooStatus) Scan

func (x *FooStatus) Scan(value interface{}) error

func (FooStatus) ShortString

func (x FooStatus) ShortString() string

ShortString returns the un-prefixed string representation of the enum value

func (FooStatus) String

func (x FooStatus) String() string

func (FooStatus) Type

func (FooStatus) Value

func (x FooStatus) Value() (driver.Value, error)

type IsFooEventTypeWrappedType

type IsFooEventTypeWrappedType interface {
	TypeKey() FooEventTypeKey
}

type IsFooEventType_Type

type IsFooEventType_Type = isFooEventType_Type

Jump to

Keyboard shortcuts

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