Home
last modified time | relevance | path

Searched refs:BytesField (Results 1 – 25 of 27) sorted by relevance

12

/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs48 Assert.IsNull(message.BytesField); in NullIsDefault()
64 BytesField = ByteString.CopyFrom(1, 2, 3), in NonDefaultSingleValues()
78 Assert.AreEqual(ByteString.CopyFrom(1, 2, 3), parsed.BytesField); in NonDefaultSingleValues()
94 BytesField = ByteString.Empty, in NonNullDefaultIsPreservedThroughSerialization()
108 Assert.AreEqual(ByteString.Empty, parsed.BytesField); in NonNullDefaultIsPreservedThroughSerialization()
125 Assert.Throws<ArgumentNullException>(() => message.BytesField.Add((ByteString) null)); in RepeatedWrappersProhibitNullItems()
134BytesField = { ByteString.CopyFrom(1, 2, 3), ByteString.CopyFrom(4, 5, 6), ByteString.Empty }, in RepeatedWrappersSerializeDeserialize()
183 BytesField = { in MapWrappersSerializeDeserialize()
211 BytesField = ByteString.CopyFrom(1, 2, 3), in Reflection_SingleValues()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs48 Assert.IsNull(message.BytesField); in NullIsDefault()
64 BytesField = ByteString.CopyFrom(1, 2, 3), in NonDefaultSingleValues()
78 Assert.AreEqual(ByteString.CopyFrom(1, 2, 3), parsed.BytesField); in NonDefaultSingleValues()
94 BytesField = ByteString.Empty, in NonNullDefaultIsPreservedThroughSerialization()
108 Assert.AreEqual(ByteString.Empty, parsed.BytesField); in NonNullDefaultIsPreservedThroughSerialization()
125 Assert.Throws<ArgumentNullException>(() => message.BytesField.Add((ByteString) null)); in RepeatedWrappersProhibitNullItems()
134BytesField = { ByteString.CopyFrom(1, 2, 3), ByteString.CopyFrom(4, 5, 6), ByteString.Empty }, in RepeatedWrappersSerializeDeserialize()
183 BytesField = { in MapWrappersSerializeDeserialize()
211 BytesField = ByteString.CopyFrom(1, 2, 3), in Reflection_SingleValues()
/external/python/apitools/samples/iam_sample/iam_v1/
Diam_v1_messages.py592 etag = _messages.BytesField(3)
740 etag = _messages.BytesField(4)
799 privateKeyData = _messages.BytesField(2)
801 publicKeyData = _messages.BytesField(4)
826 bytesToSign = _messages.BytesField(1)
838 signature = _messages.BytesField(2)
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestWellKnownTypes.cs224 BytesField = other.BytesField; in TestWellKnownTypes()
442 public pb::ByteString BytesField { property in Google.Protobuf.TestProtos.TestWellKnownTypes
494 if (BytesField != other.BytesField) return false; in Equals()
519 if (bytesField_ != null) hash ^= BytesField.GetHashCode(); in GetHashCode()
595 _single_bytesField_codec.WriteTagAndValue(output, BytesField); in WriteTo()
661 size += _single_bytesField_codec.CalculateSizeWithTag(BytesField); in CalculateSize()
772 if (bytesField_ == null || other.BytesField != pb::ByteString.Empty) { in MergeFrom()
773 BytesField = other.BytesField; in MergeFrom()
915 BytesField = value; in MergeFrom()
1165 public pbc::RepeatedField<pb::ByteString> BytesField { property in Google.Protobuf.TestProtos.RepeatedWellKnownTypes
[all …]
/external/golang-protobuf/proto/
Dclone_test.go289 src: &pb.Communique{Union: &pb.Communique_Msg{&pb.Strings{BytesField: []byte{1, 2, 3}}}},
291 want: &pb.Communique{Union: &pb.Communique_Msg{&pb.Strings{BytesField: []byte{1, 2, 3}}}},
300 dst: &pb.Communique{Union: &pb.Communique_Msg{&pb.Strings{BytesField: []byte{1, 2, 3}}}},
301 …nion: &pb.Communique_Msg{&pb.Strings{StringField: proto.String("123"), BytesField: []byte{1, 2, 3}…
/external/python/apitools/apitools/base/protorpclite/
Dprotojson.py165 if isinstance(field, messages.BytesField):
322 elif isinstance(field, messages.BytesField):
Ddescriptor.py136 messages.BytesField: lambda value: codecs.escape_encode(value)[0],
145 messages.BytesField: lambda value: codecs.escape_decode(value)[0],
Dtest_util.py298 bytes_value = messages.BytesField(8, variant=messages.Variant.BYTES)
331 bytes_value = messages.BytesField(8,
Dmessages_test.py531 messages.BytesField,
606 messages.BytesField: b'abc',
722 messages.BytesField: b'abc',
758 messages.BytesField: 10.20,
819 messages.BytesField: (b'abc',),
Ddescriptor_test.py139 (messages.BytesField,
Dmessages.py1500 class BytesField(Field): class
/external/python/apitools/apitools/base/py/
Dbase_api_test.py46 bytes_field = messages.BytesField(2)
74 nextPageToken = messages.BytesField(7) # pylint:disable=invalid-name
Dencoding_test.py36 field = messages.BytesField(1)
37 repfield = messages.BytesField(2, repeated=True)
171 value = messages.BytesField(2)
Dbase_api.py537 if isinstance(field, messages.BytesField) and value is not None:
Dencoding_helper.py570 RegisterFieldTypeCodec(_SafeEncodeBytes, _SafeDecodeBytes)(messages.BytesField)
/external/perfetto/src/trace_processor/util/
Dprotozero_to_text_unittests.cc212 TEST(ProtozeroToTextTest, BytesField) { in TEST() argument
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs94 BytesField = ByteString.Empty, in SingularWrappers_DefaultNonNullValues()
112 BytesField = ByteString.CopyFrom(1, 2, 3), in SingularWrappers_NonDefaultValues()
182BytesField = { ByteString.CopyFrom(1, 2, 3), ByteString.CopyFrom(4, 5, 6), ByteString.Empty }, in RepeatedWrappers()
DJsonFormatterTest.cs301 BytesField = ByteString.FromBase64("ABCD"), in WrapperFormatting_Single()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonParserTest.cs94 BytesField = ByteString.Empty, in SingularWrappers_DefaultNonNullValues()
112 BytesField = ByteString.CopyFrom(1, 2, 3), in SingularWrappers_NonDefaultValues()
182BytesField = { ByteString.CopyFrom(1, 2, 3), ByteString.CopyFrom(4, 5, 6), ByteString.Empty }, in RepeatedWrappers()
/external/python/apitools/apitools/gen/
Dextended_descriptor.py332 if field_type in [messages.BytesField, messages.StringField]:
528 if field_type in [messages.BytesField, messages.StringField]:
Dmessage_registry.py71 variant=messages.BytesField.DEFAULT_VARIANT),
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dtest_bad_identifiers.proto144 repeated bytes BytesField = 24; // NO_PROTO3 field
/external/python/apitools/samples/servicemanagement_sample/servicemanagement_v1/
Dservicemanagement_v1_messages.py399 fileContents = _messages.BytesField(2)
1932 value = _messages.BytesField(2)
/external/python/apitools/samples/storage_sample/storage_v1/
Dstorage_v1_messages.py784 etag = _messages.BytesField(2)
/external/python/apitools/samples/bigquery_sample/bigquery_v2/
Dbigquery_v2_messages.py414 qualifierEncoded = _messages.BytesField(4)

12