GeneratedTest.php
3 years ago
MessageAwareArrayComparator.php
3 years ago
MessageAwareExporter.php
3 years ago
MockBidiStreamingCall.php
3 years ago
MockClientStreamingCall.php
3 years ago
MockGrpcTransport.php
3 years ago
MockRequest.php
3 years ago
MockRequestBody.php
3 years ago
MockResponse.php
3 years ago
MockServerStreamingCall.php
3 years ago
MockStatus.php
3 years ago
MockStubTrait.php
3 years ago
MockTransport.php
3 years ago
MockUnaryCall.php
3 years ago
ProtobufGPBEmptyComparator.php
3 years ago
ProtobufMessageComparator.php
3 years ago
ReceivedRequest.php
3 years ago
SerializationTrait.php
3 years ago
mocks.proto
3 years ago
mocks.proto
47 lines
| 1 | syntax = "proto3"; |
| 2 | |
| 3 | package google.apicore.testing; |
| 4 | |
| 5 | import "google/protobuf/field_mask.proto"; |
| 6 | import "google/protobuf/timestamp.proto"; |
| 7 | import "google/protobuf/duration.proto"; |
| 8 | import "google/protobuf/struct.proto"; |
| 9 | import "google/protobuf/wrappers.proto"; |
| 10 | |
| 11 | option php_namespace = "Google\\ApiCore\\Testing"; |
| 12 | option php_metadata_namespace = "GPBMetadata\\ApiCore\\Testing"; |
| 13 | |
| 14 | message MockRequest { |
| 15 | string page_token = 1; |
| 16 | uint64 page_size = 2; |
| 17 | } |
| 18 | |
| 19 | message MockResponse { |
| 20 | string name = 1; |
| 21 | uint64 number = 2; |
| 22 | repeated string resources_list = 3; |
| 23 | string next_page_token = 4; |
| 24 | map<string, string> resources_map = 5; |
| 25 | } |
| 26 | |
| 27 | message MockRequestBody { |
| 28 | string name = 1; |
| 29 | uint64 number = 2; |
| 30 | repeated string repeated_field = 3; |
| 31 | MockRequestBody nested_message = 4; |
| 32 | google.protobuf.BytesValue bytes_value = 5; |
| 33 | google.protobuf.Duration duration_value = 6; |
| 34 | google.protobuf.FieldMask field_mask = 7; |
| 35 | google.protobuf.Int64Value int64_value = 8; |
| 36 | google.protobuf.ListValue list_value = 9; |
| 37 | google.protobuf.StringValue string_value = 10; |
| 38 | google.protobuf.Struct struct_value = 11; |
| 39 | google.protobuf.Timestamp timestamp_value = 12; |
| 40 | google.protobuf.Value value_value = 13; |
| 41 | oneof oneof_field { |
| 42 | string field_1 = 14; |
| 43 | string field_2 = 15; |
| 44 | string field_3 = 16; |
| 45 | } |
| 46 | } |
| 47 |