Home
last modified time | relevance | path

Searched refs:OptionalString (Results 1 – 25 of 54) sorted by relevance

123

/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DProto3OptionalTest.cs68 Assert.AreEqual("", message.OptionalString); in OptionalStringFieldLifecycle()
70 message.OptionalString = "x"; in OptionalStringFieldLifecycle()
72 Assert.AreEqual("x", message.OptionalString); in OptionalStringFieldLifecycle()
74 message.OptionalString = ""; in OptionalStringFieldLifecycle()
76 Assert.AreEqual("", message.OptionalString); in OptionalStringFieldLifecycle()
80 Assert.AreEqual("", message.OptionalString); in OptionalStringFieldLifecycle()
82 Assert.Throws<ArgumentNullException>(() => message.OptionalString = null); in OptionalStringFieldLifecycle()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DProto3OptionalTest.cs68 Assert.AreEqual("", message.OptionalString); in OptionalStringFieldLifecycle()
70 message.OptionalString = "x"; in OptionalStringFieldLifecycle()
72 Assert.AreEqual("x", message.OptionalString); in OptionalStringFieldLifecycle()
74 message.OptionalString = ""; in OptionalStringFieldLifecycle()
76 Assert.AreEqual("", message.OptionalString); in OptionalStringFieldLifecycle()
80 Assert.AreEqual("", message.OptionalString); in OptionalStringFieldLifecycle()
82 Assert.Throws<ArgumentNullException>(() => message.OptionalString = null); in OptionalStringFieldLifecycle()
/external/libtextclassifier/abseil-cpp/absl/flags/
Dflag_benchmark.cc56 struct OptionalString : AbslOptionalString { struct
60 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
70 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
98 A(OptionalString) \
/external/openscreen/third_party/abseil/src/absl/flags/
Dflag_benchmark.cc58 struct OptionalString : AbslOptionalString { struct
62 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
72 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
100 A(OptionalString) \
/external/cronet/third_party/abseil-cpp/absl/flags/
Dflag_benchmark.cc58 struct OptionalString : AbslOptionalString { struct
62 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
72 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
100 A(OptionalString) \
192 struct Accumulator<OptionalString> {
208 void Accumulate(bool& a, const OptionalString& f) { a |= f.has_value(); } in Accumulate()
/external/webrtc/third_party/abseil-cpp/absl/flags/
Dflag_benchmark.cc58 struct OptionalString : AbslOptionalString { struct
62 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
72 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
100 A(OptionalString) \
192 struct Accumulator<OptionalString> {
208 void Accumulate(bool& a, const OptionalString& f) { a |= f.has_value(); } in Accumulate()
/external/tensorflow/third_party/absl/abseil-cpp/absl/flags/
Dflag_benchmark.cc58 struct OptionalString : AbslOptionalString { struct
62 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
72 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
100 A(OptionalString) \
192 struct Accumulator<OptionalString> {
208 void Accumulate(bool& a, const OptionalString& f) { a |= f.has_value(); } in Accumulate()
/external/angle/third_party/abseil-cpp/absl/flags/
Dflag_benchmark.cc58 struct OptionalString : AbslOptionalString { struct
62 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
72 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
100 A(OptionalString) \
192 struct Accumulator<OptionalString> {
208 void Accumulate(bool& a, const OptionalString& f) { a |= f.has_value(); } in Accumulate()
/external/abseil-cpp/absl/flags/
Dflag_benchmark.cc58 struct OptionalString : AbslOptionalString { struct
62 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
72 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
100 A(OptionalString) \
192 struct Accumulator<OptionalString> {
208 void Accumulate(bool& a, const OptionalString& f) { a |= f.has_value(); } in Accumulate()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/flags/
Dflag_benchmark.cc58 struct OptionalString : AbslOptionalString { struct
62 bool AbslParseFlag(absl::string_view src, OptionalString* flag, in AbslParseFlag()
72 std::string AbslUnparseFlag(const OptionalString& flag) { in AbslUnparseFlag()
100 A(OptionalString) \
/external/golang-protobuf/proto/
Dnoenforceutf8_test.go34 OptionalString: string("abc\xff"),
86 OptionalString string `protobuf:"bytes,1,opt,name=optional_string"` member
Dequal_test.go141 x: &testpb.TestAllTypes{OptionalString: proto.String("a")},
142 y: &testpb.TestAllTypes{OptionalString: proto.String("b")},
210 x: &testpb.TestAllTypes{OptionalString: proto.String("abc")},
211 y: &testpb.TestAllTypes{OptionalString: proto.String("abc")},
265 y: &testpb.TestAllTypes{OptionalString: proto.String("")},
316 y: &test3pb.TestAllTypes{OptionalString: proto.String("")},
Dmerge_test.go780 {OptionalString: proto.String("hello")},
811 OptionalString: proto.String("hello"),
828 OptionalString: proto.String("hello"),
/external/golang-protobuf/types/known/anypb/
Dany_test.go120 OptionalString: proto.String("hello, world!"),
125 OptionalString: proto.String("hello, world!"),
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3Optional.cs481 public string OptionalString { property in ProtobufUnittest.TestProto3Optional
652 if (OptionalString != other.OptionalString) return false; in Equals()
680 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); in GetHashCode()
760 output.WriteString(OptionalString); in WriteTo()
854 output.WriteString(OptionalString); in IBufferMessage.InternalWriteTo()
934 size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString); in CalculateSize()
1009 OptionalString = other.OptionalString; in MergeFrom()
1106 OptionalString = input.ReadString(); in MergeFrom()
1211 OptionalString = input.ReadString(); in IBufferMessage.InternalMergeFrom()
DTestMessagesProto2.cs830 public string OptionalString { property in ProtobufTestMessages.Proto2.TestAllTypesProto2
2973 if (OptionalString != other.OptionalString) return false; in Equals()
3117 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); in GetHashCode()
3313 output.WriteString(OptionalString); in WriteTo()
3655 output.WriteString(OptionalString); in IBufferMessage.InternalWriteTo()
3983 size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString); in CalculateSize()
4261 OptionalString = other.OptionalString; in MergeFrom()
4573 OptionalString = input.ReadString(); in MergeFrom()
5183 OptionalString = input.ReadString(); in IBufferMessage.InternalMergeFrom()
7207 public string OptionalString { property in ProtobufTestMessages.Proto2.UnknownToTestAllTypes
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3Optional.cs481 public string OptionalString { property in ProtobufUnittest.TestProto3Optional
652 if (OptionalString != other.OptionalString) return false; in Equals()
680 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); in GetHashCode()
760 output.WriteString(OptionalString); in WriteTo()
854 output.WriteString(OptionalString); in IBufferMessage.InternalWriteTo()
934 size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString); in CalculateSize()
1009 OptionalString = other.OptionalString; in MergeFrom()
1106 OptionalString = input.ReadString(); in MergeFrom()
1211 OptionalString = input.ReadString(); in IBufferMessage.InternalMergeFrom()
DTestMessagesProto2.cs830 public string OptionalString { property in ProtobufTestMessages.Proto2.TestAllTypesProto2
2973 if (OptionalString != other.OptionalString) return false; in Equals()
3117 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); in GetHashCode()
3313 output.WriteString(OptionalString); in WriteTo()
3655 output.WriteString(OptionalString); in IBufferMessage.InternalWriteTo()
3983 size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString); in CalculateSize()
4261 OptionalString = other.OptionalString; in MergeFrom()
4573 OptionalString = input.ReadString(); in MergeFrom()
5183 OptionalString = input.ReadString(); in IBufferMessage.InternalMergeFrom()
7207 public string OptionalString { property in ProtobufTestMessages.Proto2.UnknownToTestAllTypes
[all …]
/external/golang-protobuf/internal/testprotos/fieldtrack/
Dfieldtrack.pb.go39OptionalString *string `protobuf:"bytes,14,opt,name=opt… member
233 if x != nil && x.OptionalString != nil {
234 return *x.OptionalString
/external/golang-protobuf/internal/testprotos/nullable/
Dnullable.go22OptionalString string `protobuf:"bytes,107,opt,name=optional_stri… member
129OptionalString string `protobuf:"bytes,107,opt,name=optional_stri… member
/external/golang-protobuf/cmd/protoc-gen-go/testdata/proto3/
Dfields.pb.go79OptionalString string `protobuf:"bytes,15,opt,name=optional_string… member
236 return x.OptionalString
/external/golang-protobuf/internal/cmd/generate-corpus/
Dmain.go42 OptionalString: proto.String("string"),
/external/golang-protobuf/internal/testprotos/conformance/
Dtest_messages_proto2.pb.go254OptionalString *string `protobuf:"bytes,14,opt,name=optional_str… member
533 if x != nil && x.OptionalString != nil {
534 return *x.OptionalString
1490OptionalString *string `protobuf:"bytes,1002,opt,name=optional_string… member
1537 if x != nil && x.OptionalString != nil {
1538 return *x.OptionalString
/external/golang-protobuf/internal/testprotos/test3/
Dtest.pb.go160OptionalString *string `protobuf:"bytes,14,opt,name=optiona… member
491 if x != nil && x.OptionalString != nil {
492 return *x.OptionalString
/external/golang-protobuf/testing/protocmp/
Dreflect_test.go29 OptionalString: proto.String("string"),

123