Packages
spawn
2.0.0-RC4
2.0.0-RC9
2.0.0-RC8
2.0.0-RC7
2.0.0-RC6
2.0.0-RC5
2.0.0-RC4
2.0.0-RC3
2.0.0-RC2
2.0.0-RC14
2.0.0-RC13
2.0.0-RC12
2.0.0-RC11
2.0.0-RC10
2.0.0-RC1
1.4.3
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
1.0.0-rc3
1.0.0-rc16
1.0.0-rc1
1.0.0-rc.38
1.0.0-rc.37
1.0.0-rc.36
1.0.0-rc.35
1.0.0-rc.34
1.0.0-rc.33
1.0.0-rc.32
1.0.0-rc.31
1.0.0-rc.30
1.0.0-rc.29
1.0.0-rc.28
1.0.0-rc.27
1.0.0-rc.26
1.0.0-rc.25
1.0.0-rc.24
1.0.0-rc.23
1.0.0-rc.22
1.0.0-rc.21
1.0.0-rc.20
1.0.0-rc.19
1.0.0-rc.18
1.0.0-rc.17
1.0.0-rc.2
0.6.3
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.1
0.5.0
0.5.0-rc.13
0.5.0-rc.12
0.5.0-rc.11
0.5.0-rc.10
0.5.0-rc.9
0.5.0-rc.8
0.5.0-rc.7
0.5.0-rc.6
0.5.0-rc.5
0.5.0-rc.3
0.5.0-alpha.13
0.5.0-alpha.12
0.5.0-alpha.11
0.5.0-alpha.10
0.5.0-alpha.9
0.5.0-alpha.8
0.5.0-alpha.7
0.5.0-alpha.6
0.5.0-alpha.5
0.5.0-alpha.4
0.5.0-alpha.3
0.5.0-alpha.2
0.5.0-alpha.1
0.1.0
Spawn is the core lib for Spawn Actors System
Current section
Files
Jump to
Current section
Files
lib/_generated/spawn/actors/test.pb.ex
defmodule Test.EnumTest do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.EnumDescriptorProto{
name: "EnumTest",
value: [
%Google.Protobuf.EnumValueDescriptorProto{
name: "ENUM_TEST_UNKNOWN",
number: 0,
options: nil,
__unknown_fields__: []
},
%Google.Protobuf.EnumValueDescriptorProto{
name: "ENUM_TEST_ACTIVE",
number: 1,
options: nil,
__unknown_fields__: []
},
%Google.Protobuf.EnumValueDescriptorProto{
name: "ENUM_TEST_INACTIVE",
number: 2,
options: nil,
__unknown_fields__: []
}
],
options: nil,
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field(:ENUM_TEST_UNKNOWN, 0)
field(:ENUM_TEST_ACTIVE, 1)
field(:ENUM_TEST_INACTIVE, 2)
end
defmodule Test.TestMessage.Address.Country do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "Country",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "name",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "name",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "code",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "code",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field(:name, 1, type: :string)
field(:code, 2, type: :string)
end
defmodule Test.TestMessage.Address do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "Address",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "street",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "street",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "city",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "city",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "state",
extendee: nil,
number: 3,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "state",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "zip_code",
extendee: nil,
number: 4,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "zipCode",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "country",
extendee: nil,
number: 5,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".test.TestMessage.Address.Country",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "country",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [
%Google.Protobuf.DescriptorProto{
name: "Country",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "name",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "name",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "code",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "code",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field(:street, 1, type: :string)
field(:city, 2, type: :string)
field(:state, 3, type: :string)
field(:zip_code, 4, type: :string, json_name: "zipCode")
field(:country, 5, type: Test.TestMessage.Address.Country)
end
defmodule Test.TestMessage.AttributesEntry do
@moduledoc false
use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "AttributesEntry",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "key",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "key",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "value",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "value",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: %Google.Protobuf.MessageOptions{
message_set_wire_format: false,
no_standard_descriptor_accessor: false,
deprecated: false,
map_entry: true,
deprecated_legacy_json_field_conflicts: nil,
uninterpreted_option: [],
__pb_extensions__: %{},
__unknown_fields__: []
},
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field(:key, 1, type: :string)
field(:value, 2, type: :string)
end
defmodule Test.TestMessage do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "TestMessage",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "name",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: %Google.Protobuf.FieldOptions{
ctype: :STRING,
packed: nil,
deprecated: false,
lazy: false,
jstype: :JS_NORMAL,
weak: false,
unverified_lazy: false,
debug_redact: false,
uninterpreted_option: [],
__pb_extensions__: %{{Spawn.Actors.PbExtension, :actor_id} => true},
__unknown_fields__: []
},
oneof_index: nil,
json_name: "name",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "age",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_INT32,
type_name: nil,
default_value: nil,
options: %Google.Protobuf.FieldOptions{
ctype: :STRING,
packed: nil,
deprecated: false,
lazy: false,
jstype: :JS_NORMAL,
weak: false,
unverified_lazy: false,
debug_redact: false,
uninterpreted_option: [],
__pb_extensions__: %{{Spawn.Actors.PbExtension, :searchable} => true},
__unknown_fields__: []
},
oneof_index: nil,
json_name: "age",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "balance",
extendee: nil,
number: 3,
label: :LABEL_OPTIONAL,
type: :TYPE_DOUBLE,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "balance",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "active",
extendee: nil,
number: 4,
label: :LABEL_OPTIONAL,
type: :TYPE_BOOL,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "active",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "document",
extendee: nil,
number: 5,
label: :LABEL_OPTIONAL,
type: :TYPE_BYTES,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "document",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "address",
extendee: nil,
number: 7,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".test.TestMessage.Address",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "address",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "created_at",
extendee: nil,
number: 8,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".google.protobuf.Timestamp",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "createdAt",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "metadata",
extendee: nil,
number: 9,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".google.protobuf.Struct",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "metadata",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "tags",
extendee: nil,
number: 10,
label: :LABEL_REPEATED,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "tags",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "attributes",
extendee: nil,
number: 11,
label: :LABEL_REPEATED,
type: :TYPE_MESSAGE,
type_name: ".test.TestMessage.AttributesEntry",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "attributes",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "enum_test",
extendee: nil,
number: 12,
label: :LABEL_OPTIONAL,
type: :TYPE_ENUM,
type_name: ".test.EnumTest",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "enumTest",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [
%Google.Protobuf.DescriptorProto{
name: "Address",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "street",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "street",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "city",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "city",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "state",
extendee: nil,
number: 3,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "state",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "zip_code",
extendee: nil,
number: 4,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "zipCode",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "country",
extendee: nil,
number: 5,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".test.TestMessage.Address.Country",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "country",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [
%Google.Protobuf.DescriptorProto{
name: "Country",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "name",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "name",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "code",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "code",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
},
%Google.Protobuf.DescriptorProto{
name: "AttributesEntry",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "key",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "key",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "value",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "value",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: %Google.Protobuf.MessageOptions{
message_set_wire_format: false,
no_standard_descriptor_accessor: false,
deprecated: false,
map_entry: true,
deprecated_legacy_json_field_conflicts: nil,
uninterpreted_option: [],
__pb_extensions__: %{},
__unknown_fields__: []
},
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field(:name, 1, type: :string, deprecated: false)
field(:age, 2, type: :int32, deprecated: false)
field(:balance, 3, type: :double)
field(:active, 4, type: :bool)
field(:document, 5, type: :bytes)
field(:address, 7, type: Test.TestMessage.Address)
field(:created_at, 8, type: Google.Protobuf.Timestamp, json_name: "createdAt")
field(:metadata, 9, type: Google.Protobuf.Struct)
field(:tags, 10, repeated: true, type: :string)
field(:attributes, 11, repeated: true, type: Test.TestMessage.AttributesEntry, map: true)
field(:enum_test, 12, type: Test.EnumTest, json_name: "enumTest", enum: true)
end