Home
last modified time | relevance | path

Searched refs:EnumField (Results 1 – 25 of 52) sorted by relevance

123

/external/python/apitools/samples/storage_sample/storage_v1/
Dstorage_v1_messages.py847 alt = _messages.EnumField('AltValueValuesEnum', 1, default=u'json')
958 projection = _messages.EnumField('ProjectionValueValuesEnum', 4)
1041 predefinedAcl = _messages.EnumField('PredefinedAclValueValuesEnum', 2)
1042 predefinedDefaultObjectAcl = _messages.EnumField('PredefinedDefaultObjectAclValueValuesEnum', 3)
1044 projection = _messages.EnumField('ProjectionValueValuesEnum', 5)
1076 projection = _messages.EnumField('ProjectionValueValuesEnum', 5)
1161 predefinedAcl = _messages.EnumField('PredefinedAclValueValuesEnum', 5)
1162 predefinedDefaultObjectAcl = _messages.EnumField('PredefinedDefaultObjectAclValueValuesEnum', 6)
1163 projection = _messages.EnumField('ProjectionValueValuesEnum', 7)
1272 predefinedAcl = _messages.EnumField('PredefinedAclValueValuesEnum', 5)
[all …]
/external/python/apitools/samples/iam_sample/iam_v1/
Diam_v1_messages.py129 iam = _messages.EnumField('IamValueValuesEnum', 1)
130 op = _messages.EnumField('OpValueValuesEnum', 2)
132 sys = _messages.EnumField('SysValueValuesEnum', 4)
177 privateKeyType = _messages.EnumField('PrivateKeyTypeValueValuesEnum', 1)
367 publicKeyType = _messages.EnumField('PublicKeyTypeValueValuesEnum', 2)
403 keyTypes = _messages.EnumField('KeyTypesValueValuesEnum', 1, repeated=True)
697 action = _messages.EnumField('ActionValueValuesEnum', 1)
800 privateKeyType = _messages.EnumField('PrivateKeyTypeValueValuesEnum', 3)
914 f__xgafv = _messages.EnumField('FXgafvValueValuesEnum', 1)
916 alt = _messages.EnumField('AltValueValuesEnum', 3, default=u'json')
/external/python/apitools/samples/servicemanagement_sample/servicemanagement_v1/
Dservicemanagement_v1_messages.py62 syntax = _messages.EnumField('SyntaxValueValuesEnum', 6)
401 fileType = _messages.EnumField('FileTypeValueValuesEnum', 4)
630 kind = _messages.EnumField('KindValueValuesEnum', 1)
763 billingInteraction = _messages.EnumField('BillingInteractionValueValuesEnum', 2)
831 syntax = _messages.EnumField('SyntaxValueValuesEnum', 5)
931 cardinality = _messages.EnumField('CardinalityValueValuesEnum', 1)
934 kind = _messages.EnumField('KindValueValuesEnum', 4)
1123 valueType = _messages.EnumField('ValueTypeValueValuesEnum', 3)
1316 syntax = _messages.EnumField('SyntaxValueValuesEnum', 7)
1425 metricKind = _messages.EnumField('MetricKindValueValuesEnum', 4)
[all …]
/external/python/apitools/apitools/base/protorpclite/
Ddescriptor.py138 messages.EnumField: lambda value: six.text_type(value.number),
147 messages.EnumField: int,
207 label = messages.EnumField(Label, 4, default=Label.OPTIONAL)
208 variant = messages.EnumField(Variant, 5)
319 if isinstance(field_definition, messages.EnumField):
Dmessages_test.py660 field = messages.EnumField(Symbol, 1, default=Symbol.ALPHA)
666 field = messages.EnumField(
676 field = messages.EnumField(
686 field = messages.EnumField(descriptor.FieldDescriptor.Label,
698 messages.EnumField,
705 field = messages.EnumField(
1064 messages.EnumField,
1069 messages.EnumField,
1078 field = messages.EnumField(Color, 10)
1085 messages.EnumField,
[all …]
Dprotojson.py297 if not isinstance(field, messages.EnumField):
315 if isinstance(field, messages.EnumField):
Dmessages.py1717 class EnumField(Field): class
1784 super(EnumField, self).__init__(number, **kwargs)
1809 return super(EnumField, self).validate_default_element(value)
1835 resolved_default = super(EnumField, self).default
Dtest_util.py299 enum_value = messages.EnumField(SimpleEnum, 10)
334 enum_value = messages.EnumField(SimpleEnum,
Ddescriptor_test.py165 field = messages.EnumField(MyEnum, 10, default=MyEnum.VAL)
172 expected.variant = messages.EnumField.DEFAULT_VARIANT
/external/golang-protobuf/cmd/protoc-gen-go/testdata/nopackage/
Dnopackage.pb.go76EnumField *Enum `protobuf:"varint,2,opt,name=enum_field,json=enumField,enum=Enum,def=0" json:"… member
124 if x != nil && x.EnumField != nil {
125 return *x.EnumField
/external/python/apitools/apitools/base/py/
Dencoding_test.py75 value = messages.EnumField('UnrecognizedEnumMessage.ThisEnum', 2)
92 field_one = messages.EnumField(ThisEnum, 1)
93 field_two = messages.EnumField(ThisEnum, 2, default=ThisEnum.VALUE_TWO)
94 ignored_field = messages.EnumField(ThisEnum, 3)
159 enum_field = messages.EnumField(ThisEnum, 2)
202 enum_field = messages.EnumField(SomeEnum, 1)
203 double_encoding = messages.EnumField(SomeEnum, 2)
205 repeated_enum = messages.EnumField(SomeEnum, 4, repeated=True)
215 enum_field = messages.EnumField(SomeEnum, 1)
Dutil_test.py39 enum_field = messages.EnumField('AnEnum', 2)
40 enum_field_remapping = messages.EnumField('AnEnum', 3)
Dencoding_helper.py332 elif isinstance(field, messages.EnumField):
376 if isinstance(field, messages.EnumField):
533 if (isinstance(field, messages.EnumField) and
/external/scapy/scapy/
Dfields.py982 class EnumField(_EnumField): class
985 class CharEnumField(EnumField):
987 EnumField.__init__(self, name, default, enum, fmt)
1001 __slots__ = EnumField.__slots__
1011 class ShortEnumField(EnumField):
1012 __slots__ = EnumField.__slots__
1014 EnumField.__init__(self, name, default, enum, "H")
1016 class LEShortEnumField(EnumField):
1018 EnumField.__init__(self, name, default, enum, "<H")
1020 class ByteEnumField(EnumField):
[all …]
/external/toolchain-utils/crosperf/
Dsettings_factory.py10 from field import EnumField
496 EnumField(
517 EnumField(
Dfield.py144 class EnumField(Field): class
156 super(EnumField, self).__init__(
/external/python/apitools/samples/dns_sample/dns_v1/
Ddns_v1_messages.py48 status = _messages.EnumField('StatusValueValuesEnum', 6)
136 sortBy = _messages.EnumField('SortByValueValuesEnum', 5, default=u'changeSequence')
416 alt = _messages.EnumField('AltValueValuesEnum', 1, default=u'json')
/external/scapy/test/
Dfields.uts727 + EnumField tests
729 = EnumField tests initialization
731 # Basic EnumField
732 f = EnumField('test', 0, {0: 'Foo', 1: 'Bar'})
734 rf = EnumField('test', 0, {'Foo': 0, 'Bar': 1})
735 # EnumField initialized with a list
736 lf = EnumField('test', 0, ['Foo', 'Bar'])
737 # EnumField with i2s_cb/s2i_cb
738 fcb = EnumField('test', 0, (
752 = EnumField.any2i_one
[all …]
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py780 class EnumField(object): class
1081 ('nested_enum', EnumField(1, 'NestedEnum', 'ETA')),
1085 ('nested_enum', EnumField(1, 'NestedEnum', 'ZETA')),
1090 ('nested_enum', EnumField(1, 'NestedEnum', 'BETA')),
1101 ('nested_enum', EnumField(1, 'NestedEnum', 'MU')),
1105 ('nested_enum', EnumField(1, 'NestedEnum', 'IOTA')),
1110 ('nested_enum', EnumField(1, 'NestedEnum', 'GAMMA')),
1127 ('nested_enum', EnumField(1, 'NestedEnum', 'RHO')),
1131 ('nested_enum', EnumField(1, 'NestedEnum', 'PI')),
1136 ('nested_enum', EnumField(1, 'NestedEnum', 'XI')),
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py780 class EnumField(object): class
1081 ('nested_enum', EnumField(1, 'NestedEnum', 'ETA')),
1085 ('nested_enum', EnumField(1, 'NestedEnum', 'ZETA')),
1090 ('nested_enum', EnumField(1, 'NestedEnum', 'BETA')),
1101 ('nested_enum', EnumField(1, 'NestedEnum', 'MU')),
1105 ('nested_enum', EnumField(1, 'NestedEnum', 'IOTA')),
1110 ('nested_enum', EnumField(1, 'NestedEnum', 'GAMMA')),
1127 ('nested_enum', EnumField(1, 'NestedEnum', 'RHO')),
1131 ('nested_enum', EnumField(1, 'NestedEnum', 'PI')),
1136 ('nested_enum', EnumField(1, 'NestedEnum', 'XI')),
/external/python/apitools/apitools/gen/
Dextended_descriptor.py326 if field_type in (messages.EnumField, messages.MessageField):
515 if field_type in (messages.EnumField, messages.MessageField):
530 elif field_type is messages.EnumField:
/external/scapy/scapy/layers/tls/
Dkeyexchange.py83 class SigAndHashAlgField(EnumField):
86 getfield = phantom_decorate(EnumField.getfield, True)
87 addfield = phantom_decorate(EnumField.addfield, False)
413 EnumField.__init__(self, name, default, enum, "B")
Dhandshake_sslv2.py201 class _SSLv2CipherSuiteField(EnumField):
203 EnumField.__init__(self, name, default, dico)
/external/scapy/scapy/contrib/
Dmodbus.py635 class ModbusByteEnumField(EnumField):
639 EnumField.__init__(self, name, default, enum, "B")
/external/python/apitools/samples/bigquery_sample/bigquery_v2/
Dbigquery_v2_messages.py213 projection = _messages.EnumField('ProjectionValueValuesEnum', 5)
214 stateFilter = _messages.EnumField('StateFilterValueValuesEnum', 6, repeated=True)
1705 alt = _messages.EnumField('AltValueValuesEnum', 1, default=u'json')

123