Module bento.protos.values_pb2
Generated protocol buffer code.
Expand source code
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: bento/protos/values.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from bento.protos import types_pb2 as bento_dot_protos_dot_types__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='bento/protos/values.proto',
package='bento.protos',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x19\x62\x65nto/protos/values.proto\x12\x0c\x62\x65nto.protos\x1a\x18\x62\x65nto/protos/types.proto\"\xe8\x02\n\x05Value\x12%\n\tdata_type\x18\x01 \x01(\x0b\x32\x12.bento.protos.Type\x12\x32\n\tprimitive\x18\x02 \x01(\x0b\x32\x1d.bento.protos.Value.PrimitiveH\x00\x12*\n\x05\x61rray\x18\x03 \x01(\x0b\x32\x19.bento.protos.Value.ArrayH\x00\x1a\x97\x01\n\tPrimitive\x12\x0f\n\x05int_8\x18\x01 \x01(\x05H\x00\x12\x10\n\x06int_32\x18\x02 \x01(\x05H\x00\x12\x10\n\x06int_64\x18\x03 \x01(\x03H\x00\x12\x12\n\x08\x66loat_32\x18\x04 \x01(\x02H\x00\x12\x12\n\x08\x66loat_64\x18\x05 \x01(\x01H\x00\x12\x11\n\x07str_val\x18\x06 \x01(\tH\x00\x12\x11\n\x07\x62oolean\x18\x07 \x01(\x08H\x00\x42\x07\n\x05value\x1a\x36\n\x05\x41rray\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x1d.bento.protos.Value.PrimitiveB\x06\n\x04kindb\x06proto3'
,
dependencies=[bento_dot_protos_dot_types__pb2.DESCRIPTOR,])
_VALUE_PRIMITIVE = _descriptor.Descriptor(
name='Primitive',
full_name='bento.protos.Value.Primitive',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='int_8', full_name='bento.protos.Value.Primitive.int_8', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='int_32', full_name='bento.protos.Value.Primitive.int_32', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='int_64', full_name='bento.protos.Value.Primitive.int_64', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='float_32', full_name='bento.protos.Value.Primitive.float_32', index=3,
number=4, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='float_64', full_name='bento.protos.Value.Primitive.float_64', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='str_val', full_name='bento.protos.Value.Primitive.str_val', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='boolean', full_name='bento.protos.Value.Primitive.boolean', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='bento.protos.Value.Primitive.value',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=215,
serialized_end=366,
)
_VALUE_ARRAY = _descriptor.Descriptor(
name='Array',
full_name='bento.protos.Value.Array',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='values', full_name='bento.protos.Value.Array.values', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=368,
serialized_end=422,
)
_VALUE = _descriptor.Descriptor(
name='Value',
full_name='bento.protos.Value',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='data_type', full_name='bento.protos.Value.data_type', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='primitive', full_name='bento.protos.Value.primitive', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='array', full_name='bento.protos.Value.array', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[_VALUE_PRIMITIVE, _VALUE_ARRAY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='kind', full_name='bento.protos.Value.kind',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=70,
serialized_end=430,
)
_VALUE_PRIMITIVE.containing_type = _VALUE
_VALUE_PRIMITIVE.oneofs_by_name['value'].fields.append(
_VALUE_PRIMITIVE.fields_by_name['int_8'])
_VALUE_PRIMITIVE.fields_by_name['int_8'].containing_oneof = _VALUE_PRIMITIVE.oneofs_by_name['value']
_VALUE_PRIMITIVE.oneofs_by_name['value'].fields.append(
_VALUE_PRIMITIVE.fields_by_name['int_32'])
_VALUE_PRIMITIVE.fields_by_name['int_32'].containing_oneof = _VALUE_PRIMITIVE.oneofs_by_name['value']
_VALUE_PRIMITIVE.oneofs_by_name['value'].fields.append(
_VALUE_PRIMITIVE.fields_by_name['int_64'])
_VALUE_PRIMITIVE.fields_by_name['int_64'].containing_oneof = _VALUE_PRIMITIVE.oneofs_by_name['value']
_VALUE_PRIMITIVE.oneofs_by_name['value'].fields.append(
_VALUE_PRIMITIVE.fields_by_name['float_32'])
_VALUE_PRIMITIVE.fields_by_name['float_32'].containing_oneof = _VALUE_PRIMITIVE.oneofs_by_name['value']
_VALUE_PRIMITIVE.oneofs_by_name['value'].fields.append(
_VALUE_PRIMITIVE.fields_by_name['float_64'])
_VALUE_PRIMITIVE.fields_by_name['float_64'].containing_oneof = _VALUE_PRIMITIVE.oneofs_by_name['value']
_VALUE_PRIMITIVE.oneofs_by_name['value'].fields.append(
_VALUE_PRIMITIVE.fields_by_name['str_val'])
_VALUE_PRIMITIVE.fields_by_name['str_val'].containing_oneof = _VALUE_PRIMITIVE.oneofs_by_name['value']
_VALUE_PRIMITIVE.oneofs_by_name['value'].fields.append(
_VALUE_PRIMITIVE.fields_by_name['boolean'])
_VALUE_PRIMITIVE.fields_by_name['boolean'].containing_oneof = _VALUE_PRIMITIVE.oneofs_by_name['value']
_VALUE_ARRAY.fields_by_name['values'].message_type = _VALUE_PRIMITIVE
_VALUE_ARRAY.containing_type = _VALUE
_VALUE.fields_by_name['data_type'].message_type = bento_dot_protos_dot_types__pb2._TYPE
_VALUE.fields_by_name['primitive'].message_type = _VALUE_PRIMITIVE
_VALUE.fields_by_name['array'].message_type = _VALUE_ARRAY
_VALUE.oneofs_by_name['kind'].fields.append(
_VALUE.fields_by_name['primitive'])
_VALUE.fields_by_name['primitive'].containing_oneof = _VALUE.oneofs_by_name['kind']
_VALUE.oneofs_by_name['kind'].fields.append(
_VALUE.fields_by_name['array'])
_VALUE.fields_by_name['array'].containing_oneof = _VALUE.oneofs_by_name['kind']
DESCRIPTOR.message_types_by_name['Value'] = _VALUE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), {
'Primitive' : _reflection.GeneratedProtocolMessageType('Primitive', (_message.Message,), {
'DESCRIPTOR' : _VALUE_PRIMITIVE,
'__module__' : 'bento.protos.values_pb2'
# @@protoc_insertion_point(class_scope:bento.protos.Value.Primitive)
})
,
'Array' : _reflection.GeneratedProtocolMessageType('Array', (_message.Message,), {
'DESCRIPTOR' : _VALUE_ARRAY,
'__module__' : 'bento.protos.values_pb2'
# @@protoc_insertion_point(class_scope:bento.protos.Value.Array)
})
,
'DESCRIPTOR' : _VALUE,
'__module__' : 'bento.protos.values_pb2'
# @@protoc_insertion_point(class_scope:bento.protos.Value)
})
_sym_db.RegisterMessage(Value)
_sym_db.RegisterMessage(Value.Primitive)
_sym_db.RegisterMessage(Value.Array)
# @@protoc_insertion_point(module_scope)
Classes
class Value (*args, **kwargs)
-
A ProtocolMessage
Ancestors
- google.protobuf.pyext._message.CMessage
- google.protobuf.message.Message
Class variables
var Array
-
A ProtocolMessage
var DESCRIPTOR
var Primitive
-
A ProtocolMessage
Instance variables
var array
-
Field bento.protos.Value.array
var data_type
-
Field bento.protos.Value.data_type
var primitive
-
Field bento.protos.Value.primitive