File tree Expand file tree Collapse file tree 3 files changed +42
-14
lines changed Expand file tree Collapse file tree 3 files changed +42
-14
lines changed Original file line number Diff line number Diff line change @@ -122,18 +122,18 @@ export enum IdempotencyLevel {
122
122
}
123
123
124
124
export interface NamePart {
125
- namePart : string ;
126
- isExtension : boolean ;
125
+ name_part : string ;
126
+ is_extension : boolean ;
127
127
}
128
128
129
129
export interface UninterpretedOption {
130
130
name ?: ( NamePart [ ] | null ) ;
131
- identifierValue ?: ( string | null ) ;
132
- positiveIntValue ?: ( number | Long | string | null ) ;
133
- negativeIntValue ?: ( number | Long | string | null ) ;
134
- doubleValue ?: ( number | null ) ;
135
- stringValue ?: ( Uint8Array | string | null ) ;
136
- aggregateValue ?: ( string | null ) ;
131
+ identifier_value ?: ( string | null ) ;
132
+ positive_int_value ?: ( number | null ) ;
133
+ negative_int_value ?: ( number | null ) ;
134
+ double_value ?: ( number | null ) ;
135
+ string_value ?: ( string | null ) ;
136
+ aggregate_value ?: ( string | null ) ;
137
137
}
138
138
139
139
export interface CustomHttpPattern {
@@ -150,8 +150,8 @@ export interface HttpRule {
150
150
patch ?: ( string | null ) ;
151
151
custom ?: ( CustomHttpPattern | null ) ;
152
152
body ?: ( string | null ) ;
153
- responseBody ?: ( string | null ) ;
154
- additionalBindings ?: ( HttpRule [ ] | null ) ;
153
+ response_body ?: ( string | null ) ;
154
+ additional_bindings ?: ( HttpRule [ ] | null ) ;
155
155
}
156
156
157
157
export interface MethodOptions {
Original file line number Diff line number Diff line change @@ -140,8 +140,24 @@ describe('Descriptor types', () => {
140
140
assert . deepStrictEqual ( service . Hello . options , {
141
141
deprecated : true ,
142
142
idempotency_level : 'IDEMPOTENCY_UNKNOWN' ,
143
- uninterpreted_option : { identifier_value : 'foo' } ,
144
- '(google.api.http)' : { post : '/hello' } ,
143
+ uninterpreted_option : {
144
+ name : {
145
+ name_part : 'foo' ,
146
+ is_extension : false ,
147
+ } ,
148
+ identifier_value : 'bar' ,
149
+ positive_int_value : 9007199254740991 ,
150
+ negative_int_value : - 9007199254740991 ,
151
+ double_value : 1.2345 ,
152
+ string_value : 'foobar' ,
153
+ aggregate_value : 'foobar'
154
+ } ,
155
+ '(google.api.http)' : {
156
+ post : "/hello" ,
157
+ body : "*" ,
158
+ response_body : "*" ,
159
+ additional_bindings : { }
160
+ } ,
145
161
'(google.api.method_signature)' : 'bar'
146
162
} )
147
163
} )
Original file line number Diff line number Diff line change @@ -7,18 +7,30 @@ import "google/api/httpbody.proto";
7
7
message Empty {}
8
8
9
9
message MethodSignature {
10
- repeated string method_signature = 0 ;
10
+ repeated string method_signature = 1 ;
11
11
}
12
12
13
13
service Hello {
14
14
rpc Hello (Empty ) returns (Empty ) {
15
15
option deprecated = true ;
16
16
option idempotency_level = IDEMPOTENCY_UNKNOWN ;
17
17
option uninterpreted_option = {
18
- identifier_value : 'foo'
18
+ name : {
19
+ name_part : 'foo'
20
+ is_extension : false
21
+ }
22
+ identifier_value : 'bar'
23
+ positive_int_value : 9007199254740991
24
+ negative_int_value : -9007199254740991
25
+ double_value : 1.2345
26
+ string_value : 'foobar'
27
+ aggregate_value : 'foobar'
19
28
};
20
29
option (google.api.http ) = {
21
30
post : "/hello"
31
+ body : "*"
32
+ response_body : "*"
33
+ additional_bindings : {}
22
34
};
23
35
option (google.api.method_signature ) = 'bar' ;
24
36
}
You can’t perform that action at this time.
0 commit comments