Skip to content

Commit 153a4dc

Browse files
authored
regen proto (#57)
1 parent dbaa082 commit 153a4dc

File tree

7 files changed

+165
-115
lines changed

7 files changed

+165
-115
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dapr/proto/common/v1/common_pb.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"
99

1010
export class HTTPExtension extends jspb.Message {
1111
getVerb(): HTTPExtension.Verb;
12-
setVerb(value: HTTPExtension.Verb): void;
12+
setVerb(value: HTTPExtension.Verb): HTTPExtension;
1313

1414

1515
getQuerystringMap(): jspb.Map<string, string>;
@@ -49,22 +49,22 @@ export namespace HTTPExtension {
4949

5050
export class InvokeRequest extends jspb.Message {
5151
getMethod(): string;
52-
setMethod(value: string): void;
52+
setMethod(value: string): InvokeRequest;
5353

5454

5555
hasData(): boolean;
5656
clearData(): void;
5757
getData(): google_protobuf_any_pb.Any | undefined;
58-
setData(value?: google_protobuf_any_pb.Any): void;
58+
setData(value?: google_protobuf_any_pb.Any): InvokeRequest;
5959

6060
getContentType(): string;
61-
setContentType(value: string): void;
61+
setContentType(value: string): InvokeRequest;
6262

6363

6464
hasHttpExtension(): boolean;
6565
clearHttpExtension(): void;
6666
getHttpExtension(): HTTPExtension | undefined;
67-
setHttpExtension(value?: HTTPExtension): void;
67+
setHttpExtension(value?: HTTPExtension): InvokeRequest;
6868

6969

7070
serializeBinary(): Uint8Array;
@@ -91,10 +91,10 @@ export class InvokeResponse extends jspb.Message {
9191
hasData(): boolean;
9292
clearData(): void;
9393
getData(): google_protobuf_any_pb.Any | undefined;
94-
setData(value?: google_protobuf_any_pb.Any): void;
94+
setData(value?: google_protobuf_any_pb.Any): InvokeResponse;
9595

9696
getContentType(): string;
97-
setContentType(value: string): void;
97+
setContentType(value: string): InvokeResponse;
9898

9999

100100
serializeBinary(): Uint8Array;
@@ -116,15 +116,15 @@ export namespace InvokeResponse {
116116

117117
export class StateItem extends jspb.Message {
118118
getKey(): string;
119-
setKey(value: string): void;
119+
setKey(value: string): StateItem;
120120

121121
getValue(): Uint8Array | string;
122122
getValue_asU8(): Uint8Array;
123123
getValue_asB64(): string;
124-
setValue(value: Uint8Array | string): void;
124+
setValue(value: Uint8Array | string): StateItem;
125125

126126
getEtag(): string;
127-
setEtag(value: string): void;
127+
setEtag(value: string): StateItem;
128128

129129

130130
getMetadataMap(): jspb.Map<string, string>;
@@ -134,7 +134,7 @@ export class StateItem extends jspb.Message {
134134
hasOptions(): boolean;
135135
clearOptions(): void;
136136
getOptions(): StateOptions | undefined;
137-
setOptions(value?: StateOptions): void;
137+
setOptions(value?: StateOptions): StateItem;
138138

139139

140140
serializeBinary(): Uint8Array;
@@ -160,10 +160,10 @@ export namespace StateItem {
160160

161161
export class StateOptions extends jspb.Message {
162162
getConcurrency(): StateOptions.StateConcurrency;
163-
setConcurrency(value: StateOptions.StateConcurrency): void;
163+
setConcurrency(value: StateOptions.StateConcurrency): StateOptions;
164164

165165
getConsistency(): StateOptions.StateConsistency;
166-
setConsistency(value: StateOptions.StateConsistency): void;
166+
setConsistency(value: StateOptions.StateConsistency): StateOptions;
167167

168168

169169
serializeBinary(): Uint8Array;

src/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,45 @@ interface IAppCallbackService extends grpc.ServiceDefinition<grpc.UntypedService
1818
}
1919

2020
interface IAppCallbackService_IOnInvoke extends grpc.MethodDefinition<dapr_proto_common_v1_common_pb.InvokeRequest, dapr_proto_common_v1_common_pb.InvokeResponse> {
21-
path: string; // "/dapr.proto.runtime.v1.AppCallback/OnInvoke"
22-
requestStream: boolean; // false
23-
responseStream: boolean; // false
21+
path: "/dapr.proto.runtime.v1.AppCallback/OnInvoke";
22+
requestStream: false;
23+
responseStream: false;
2424
requestSerialize: grpc.serialize<dapr_proto_common_v1_common_pb.InvokeRequest>;
2525
requestDeserialize: grpc.deserialize<dapr_proto_common_v1_common_pb.InvokeRequest>;
2626
responseSerialize: grpc.serialize<dapr_proto_common_v1_common_pb.InvokeResponse>;
2727
responseDeserialize: grpc.deserialize<dapr_proto_common_v1_common_pb.InvokeResponse>;
2828
}
2929
interface IAppCallbackService_IListTopicSubscriptions extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse> {
30-
path: string; // "/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions"
31-
requestStream: boolean; // false
32-
responseStream: boolean; // false
30+
path: "/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions";
31+
requestStream: false;
32+
responseStream: false;
3333
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
3434
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
3535
responseSerialize: grpc.serialize<dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse>;
3636
responseDeserialize: grpc.deserialize<dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse>;
3737
}
3838
interface IAppCallbackService_IOnTopicEvent extends grpc.MethodDefinition<dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse> {
39-
path: string; // "/dapr.proto.runtime.v1.AppCallback/OnTopicEvent"
40-
requestStream: boolean; // false
41-
responseStream: boolean; // false
39+
path: "/dapr.proto.runtime.v1.AppCallback/OnTopicEvent";
40+
requestStream: false;
41+
responseStream: false;
4242
requestSerialize: grpc.serialize<dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest>;
4343
requestDeserialize: grpc.deserialize<dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest>;
4444
responseSerialize: grpc.serialize<dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse>;
4545
responseDeserialize: grpc.deserialize<dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse>;
4646
}
4747
interface IAppCallbackService_IListInputBindings extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse> {
48-
path: string; // "/dapr.proto.runtime.v1.AppCallback/ListInputBindings"
49-
requestStream: boolean; // false
50-
responseStream: boolean; // false
48+
path: "/dapr.proto.runtime.v1.AppCallback/ListInputBindings";
49+
requestStream: false;
50+
responseStream: false;
5151
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
5252
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
5353
responseSerialize: grpc.serialize<dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse>;
5454
responseDeserialize: grpc.deserialize<dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse>;
5555
}
5656
interface IAppCallbackService_IOnBindingEvent extends grpc.MethodDefinition<dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse> {
57-
path: string; // "/dapr.proto.runtime.v1.AppCallback/OnBindingEvent"
58-
requestStream: boolean; // false
59-
responseStream: boolean; // false
57+
path: "/dapr.proto.runtime.v1.AppCallback/OnBindingEvent";
58+
requestStream: false;
59+
responseStream: false;
6060
requestSerialize: grpc.serialize<dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest>;
6161
requestDeserialize: grpc.deserialize<dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest>;
6262
responseSerialize: grpc.serialize<dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse>;

src/dapr/proto/runtime/v1/appcallback_pb.d.ts

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v
1010

1111
export class TopicEventRequest extends jspb.Message {
1212
getId(): string;
13-
setId(value: string): void;
13+
setId(value: string): TopicEventRequest;
1414

1515
getSource(): string;
16-
setSource(value: string): void;
16+
setSource(value: string): TopicEventRequest;
1717

1818
getType(): string;
19-
setType(value: string): void;
19+
setType(value: string): TopicEventRequest;
2020

2121
getSpecVersion(): string;
22-
setSpecVersion(value: string): void;
22+
setSpecVersion(value: string): TopicEventRequest;
2323

2424
getDataContentType(): string;
25-
setDataContentType(value: string): void;
25+
setDataContentType(value: string): TopicEventRequest;
2626

2727
getData(): Uint8Array | string;
2828
getData_asU8(): Uint8Array;
2929
getData_asB64(): string;
30-
setData(value: Uint8Array | string): void;
30+
setData(value: Uint8Array | string): TopicEventRequest;
3131

3232
getTopic(): string;
33-
setTopic(value: string): void;
33+
setTopic(value: string): TopicEventRequest;
3434

3535
getPubsubName(): string;
36-
setPubsubName(value: string): void;
36+
setPubsubName(value: string): TopicEventRequest;
3737

3838

3939
serializeBinary(): Uint8Array;
@@ -60,6 +60,9 @@ export namespace TopicEventRequest {
6060
}
6161

6262
export class TopicEventResponse extends jspb.Message {
63+
getStatus(): TopicEventResponse.TopicEventResponseStatus;
64+
setStatus(value: TopicEventResponse.TopicEventResponseStatus): TopicEventResponse;
65+
6366

6467
serializeBinary(): Uint8Array;
6568
toObject(includeInstance?: boolean): TopicEventResponse.AsObject;
@@ -73,17 +76,25 @@ export class TopicEventResponse extends jspb.Message {
7376

7477
export namespace TopicEventResponse {
7578
export type AsObject = {
79+
status: TopicEventResponse.TopicEventResponseStatus,
80+
}
81+
82+
export enum TopicEventResponseStatus {
83+
SUCCESS = 0,
84+
RETRY = 1,
85+
DROP = 2,
7686
}
87+
7788
}
7889

7990
export class BindingEventRequest extends jspb.Message {
8091
getName(): string;
81-
setName(value: string): void;
92+
setName(value: string): BindingEventRequest;
8293

8394
getData(): Uint8Array | string;
8495
getData_asU8(): Uint8Array;
8596
getData_asB64(): string;
86-
setData(value: Uint8Array | string): void;
97+
setData(value: Uint8Array | string): BindingEventRequest;
8798

8899

89100
getMetadataMap(): jspb.Map<string, string>;
@@ -111,25 +122,25 @@ export namespace BindingEventRequest {
111122

112123
export class BindingEventResponse extends jspb.Message {
113124
getStoreName(): string;
114-
setStoreName(value: string): void;
125+
setStoreName(value: string): BindingEventResponse;
115126

116127
clearStatesList(): void;
117128
getStatesList(): Array<dapr_proto_common_v1_common_pb.StateItem>;
118-
setStatesList(value: Array<dapr_proto_common_v1_common_pb.StateItem>): void;
129+
setStatesList(value: Array<dapr_proto_common_v1_common_pb.StateItem>): BindingEventResponse;
119130
addStates(value?: dapr_proto_common_v1_common_pb.StateItem, index?: number): dapr_proto_common_v1_common_pb.StateItem;
120131

121132
clearToList(): void;
122133
getToList(): Array<string>;
123-
setToList(value: Array<string>): void;
134+
setToList(value: Array<string>): BindingEventResponse;
124135
addTo(value: string, index?: number): string;
125136

126137
getData(): Uint8Array | string;
127138
getData_asU8(): Uint8Array;
128139
getData_asB64(): string;
129-
setData(value: Uint8Array | string): void;
140+
setData(value: Uint8Array | string): BindingEventResponse;
130141

131142
getConcurrency(): BindingEventResponse.BindingEventConcurrency;
132-
setConcurrency(value: BindingEventResponse.BindingEventConcurrency): void;
143+
setConcurrency(value: BindingEventResponse.BindingEventConcurrency): BindingEventResponse;
133144

134145

135146
serializeBinary(): Uint8Array;
@@ -161,7 +172,7 @@ export namespace BindingEventResponse {
161172
export class ListTopicSubscriptionsResponse extends jspb.Message {
162173
clearSubscriptionsList(): void;
163174
getSubscriptionsList(): Array<TopicSubscription>;
164-
setSubscriptionsList(value: Array<TopicSubscription>): void;
175+
setSubscriptionsList(value: Array<TopicSubscription>): ListTopicSubscriptionsResponse;
165176
addSubscriptions(value?: TopicSubscription, index?: number): TopicSubscription;
166177

167178

@@ -183,10 +194,10 @@ export namespace ListTopicSubscriptionsResponse {
183194

184195
export class TopicSubscription extends jspb.Message {
185196
getPubsubName(): string;
186-
setPubsubName(value: string): void;
197+
setPubsubName(value: string): TopicSubscription;
187198

188199
getTopic(): string;
189-
setTopic(value: string): void;
200+
setTopic(value: string): TopicSubscription;
190201

191202

192203
getMetadataMap(): jspb.Map<string, string>;
@@ -215,7 +226,7 @@ export namespace TopicSubscription {
215226
export class ListInputBindingsResponse extends jspb.Message {
216227
clearBindingsList(): void;
217228
getBindingsList(): Array<string>;
218-
setBindingsList(value: Array<string>): void;
229+
setBindingsList(value: Array<string>): ListInputBindingsResponse;
219230
addBindings(value: string, index?: number): string;
220231

221232

src/dapr/proto/runtime/v1/appcallback_pb.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.ListInputBindingsResponse', null,
2323
goog.exportSymbol('proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse', null, global);
2424
goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventRequest', null, global);
2525
goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventResponse', null, global);
26+
goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus', null, global);
2627
goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicSubscription', null, global);
2728
/**
2829
* Generated by JsPbCodeGenerator.
@@ -567,7 +568,7 @@ proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.toObject = function(opt
567568
*/
568569
proto.dapr.proto.runtime.v1.TopicEventResponse.toObject = function(includeInstance, msg) {
569570
var f, obj = {
570-
571+
status: jspb.Message.getFieldWithDefault(msg, 1, 0)
571572
};
572573

573574
if (includeInstance) {
@@ -604,6 +605,10 @@ proto.dapr.proto.runtime.v1.TopicEventResponse.deserializeBinaryFromReader = fun
604605
}
605606
var field = reader.getFieldNumber();
606607
switch (field) {
608+
case 1:
609+
var value = /** @type {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} */ (reader.readEnum());
610+
msg.setStatus(value);
611+
break;
607612
default:
608613
reader.skipField();
609614
break;
@@ -633,6 +638,40 @@ proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.serializeBinary = funct
633638
*/
634639
proto.dapr.proto.runtime.v1.TopicEventResponse.serializeBinaryToWriter = function(message, writer) {
635640
var f = undefined;
641+
f = message.getStatus();
642+
if (f !== 0.0) {
643+
writer.writeEnum(
644+
1,
645+
f
646+
);
647+
}
648+
};
649+
650+
651+
/**
652+
* @enum {number}
653+
*/
654+
proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus = {
655+
SUCCESS: 0,
656+
RETRY: 1,
657+
DROP: 2
658+
};
659+
660+
/**
661+
* optional TopicEventResponseStatus status = 1;
662+
* @return {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus}
663+
*/
664+
proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.getStatus = function() {
665+
return /** @type {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
666+
};
667+
668+
669+
/**
670+
* @param {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} value
671+
* @return {!proto.dapr.proto.runtime.v1.TopicEventResponse} returns this
672+
*/
673+
proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.setStatus = function(value) {
674+
return jspb.Message.setProto3EnumField(this, 1, value);
636675
};
637676

638677

0 commit comments

Comments
 (0)