Home
last modified time | relevance | path

Searched refs:OptionalBytes (Results 1 – 25 of 45) sorted by relevance

12

/external/golang-protobuf/proto/
Dnoenforceutf8_test.go43 OptionalBytes: []byte("abc\xff"),
87 OptionalBytes []byte `protobuf:"bytes,2,opt,name=optional_bytes"` member
Ddecode_test.go104 if m.OptionalBytes != nil {
105 t.Errorf("unmarshal zero-length proto3 bytes field: got %v, want nil", m.OptionalBytes)
Dequal_test.go144 x: &testpb.TestAllTypes{OptionalBytes: []byte("a")},
145 y: &testpb.TestAllTypes{OptionalBytes: []byte("b")},
214 x: &testpb.TestAllTypes{OptionalBytes: []byte("abc")},
215 y: &testpb.TestAllTypes{OptionalBytes: []byte("abc")},
268 y: &testpb.TestAllTypes{OptionalBytes: []byte{}},
319 y: &test3pb.TestAllTypes{OptionalBytes: []byte{}},
Dencode_test.go237 OptionalBytes: make([]byte, size),
250 if got, want := int64(len(m.Corecursive.OptionalBytes)), size; got != want {
Dmerge_test.go673 dst: &testpb.TestAllTypes{OptionalBytes: nil},
674 src: &testpb.TestAllTypes{OptionalBytes: []byte{}},
676 return m.(*testpb.TestAllTypes).OptionalBytes != nil
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3Optional.cs505 public pb::ByteString OptionalBytes { property in ProtobufUnittest.TestProto3Optional
653 if (OptionalBytes != other.OptionalBytes) return false; in Equals()
681 if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode(); in GetHashCode()
764 output.WriteBytes(OptionalBytes); in WriteTo()
858 output.WriteBytes(OptionalBytes); in IBufferMessage.InternalWriteTo()
937 size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes); in CalculateSize()
1012 OptionalBytes = other.OptionalBytes; in MergeFrom()
1110 OptionalBytes = input.ReadBytes(); in MergeFrom()
1215 OptionalBytes = input.ReadBytes(); in IBufferMessage.InternalMergeFrom()
DTestMessagesProto3.cs661 public pb::ByteString OptionalBytes { property in ProtobufTestMessages.Proto3.TestAllTypesProto3
2311 if (OptionalBytes != other.OptionalBytes) return false; in Equals()
2470 if (OptionalBytes.Length != 0) hash ^= OptionalBytes.GetHashCode(); in GetHashCode()
2682 if (OptionalBytes.Length != 0) { in WriteTo()
2684 output.WriteBytes(OptionalBytes); in WriteTo()
3035 if (OptionalBytes.Length != 0) { in IBufferMessage.InternalWriteTo()
3037 output.WriteBytes(OptionalBytes); in IBufferMessage.InternalWriteTo()
3374 if (OptionalBytes.Length != 0) { in CalculateSize()
3375 size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes); in CalculateSize()
3671 if (other.OptionalBytes.Length != 0) { in MergeFrom()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3Optional.cs505 public pb::ByteString OptionalBytes { property in ProtobufUnittest.TestProto3Optional
653 if (OptionalBytes != other.OptionalBytes) return false; in Equals()
681 if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode(); in GetHashCode()
764 output.WriteBytes(OptionalBytes); in WriteTo()
858 output.WriteBytes(OptionalBytes); in IBufferMessage.InternalWriteTo()
937 size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes); in CalculateSize()
1012 OptionalBytes = other.OptionalBytes; in MergeFrom()
1110 OptionalBytes = input.ReadBytes(); in MergeFrom()
1215 OptionalBytes = input.ReadBytes(); in IBufferMessage.InternalMergeFrom()
DTestMessagesProto3.cs661 public pb::ByteString OptionalBytes { property in ProtobufTestMessages.Proto3.TestAllTypesProto3
2311 if (OptionalBytes != other.OptionalBytes) return false; in Equals()
2470 if (OptionalBytes.Length != 0) hash ^= OptionalBytes.GetHashCode(); in GetHashCode()
2682 if (OptionalBytes.Length != 0) { in WriteTo()
2684 output.WriteBytes(OptionalBytes); in WriteTo()
3035 if (OptionalBytes.Length != 0) { in IBufferMessage.InternalWriteTo()
3037 output.WriteBytes(OptionalBytes); in IBufferMessage.InternalWriteTo()
3374 if (OptionalBytes.Length != 0) { in CalculateSize()
3375 size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes); in CalculateSize()
3671 if (other.OptionalBytes.Length != 0) { in MergeFrom()
[all …]
/external/golang-protobuf/internal/testprotos/nullable/
Dnullable.go23OptionalBytes []byte `protobuf:"bytes,108,opt,name=optional_byte… member
130OptionalBytes []byte `protobuf:"bytes,108,opt,name=optional_byte… member
/external/golang-protobuf/cmd/protoc-gen-go/testdata/proto3/
Dfields.pb.go80OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_bytes,… member
243 return x.OptionalBytes
/external/golang-protobuf/internal/cmd/generate-corpus/
Dmain.go43 OptionalBytes: []byte("bytes"),
/external/golang-protobuf/internal/testprotos/fieldtrack/
Dfieldtrack.pb.go40OptionalBytes []byte `protobuf:"bytes,15,opt,name=opt… member
243 return x.OptionalBytes
/external/golang-protobuf/testing/protocmp/
Dreflect_test.go30 OptionalBytes: []byte("bytes"),
Dxform_test.go38 OptionalBytes: []byte("bytes"),
/external/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs107 OptionalBytes = ByteString.CopyFrom(1, 2, 3, 4), in CreateFullTestAllTypesProto2()
DJsonParserTest.cs1085 message.OptionalBytes = ByteString.CopyFrom(new byte[] { 1 }); in ParseAllNullValues()
1125 Assert.AreEqual(ByteString.Empty, message.OptionalBytes); in ParseAllNullValues()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs107 OptionalBytes = ByteString.CopyFrom(1, 2, 3, 4), in CreateFullTestAllTypesProto2()
DJsonParserTest.cs1085 message.OptionalBytes = ByteString.CopyFrom(new byte[] { 1 }); in ParseAllNullValues()
1125 Assert.AreEqual(ByteString.Empty, message.OptionalBytes); in ParseAllNullValues()
/external/golang-protobuf/internal/testprotos/legacy/proto3_20190205_c823c79e/
Dtest.pb.go155OptionalBytes []byte `protobuf:"bytes,114,opt,name=optional_bytes,json=opt… member
364 return m.OptionalBytes
/external/golang-protobuf/internal/testprotos/test3/
Dtest.pb.go161OptionalBytes []byte `protobuf:"bytes,15,opt,name=optiona… member
499 return x.OptionalBytes
/external/golang-protobuf/internal/msgfmt/
Dformat_test.go43 OptionalBytes: []byte("bytes"),
/external/golang-protobuf/cmd/protoc-gen-go/testdata/proto2/
Dfields.pb.go94OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_byt… member
360 return x.OptionalBytes
/external/golang-protobuf/internal/testprotos/legacy/proto3_20180125_92554152/
Dtest.pb.go133OptionalBytes []byte `protobuf:"bytes,114,opt,name=optional_bytes,json=opt… member
418 return m.OptionalBytes
/external/golang-protobuf/internal/testprotos/legacy/proto3_20180430_b4deda09/
Dtest.pb.go147OptionalBytes []byte `protobuf:"bytes,114,opt,name=optional_bytes,json=opt… member
456 return m.OptionalBytes

12