aboutsummaryrefslogtreecommitdiff
path: root/php/tests/proto/test_wrapper_type_setters.proto
blob: 119bd2547ac1ff51d2050ef54910d8b69ed318b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
syntax = "proto3";

import "google/protobuf/wrappers.proto";

package foo;

message TestWrapperSetters {
  google.protobuf.DoubleValue double_value = 1;
  google.protobuf.FloatValue float_value = 2;
  google.protobuf.Int64Value int64_value = 3;
  google.protobuf.UInt64Value uint64_value = 4;
  google.protobuf.Int32Value int32_value = 5;
  google.protobuf.UInt32Value uint32_value = 6;
  google.protobuf.BoolValue bool_value = 7;
  google.protobuf.StringValue string_value = 8;
  google.protobuf.BytesValue bytes_value = 9;

  oneof wrapped_oneofs {
    google.protobuf.DoubleValue double_value_oneof = 10;
    google.protobuf.StringValue string_value_oneof = 11;
  }

  repeated google.protobuf.StringValue repeated_string_value = 12;

  map<string, google.protobuf.StringValue> map_string_value = 13;
}

message TestWrapperAccessorConflicts {
  int32 normal_vs_wrapper_value = 1;
  google.protobuf.Int32Value normal_vs_wrapper = 2;

  int32 normal_vs_normal_value = 3;
  int32 normal_vs_normal = 4;

  google.protobuf.Int32Value wrapper_vs_wrapper_value = 5;
  google.protobuf.Int32Value wrapper_vs_wrapper = 6;
}