@miradorlabs/web-grpc 2.21.0 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -267,7 +267,8 @@ export interface GetSloTimelineResponse {
|
|
|
267
267
|
/**
|
|
268
268
|
* SloTimeline is one SLO's per-hour health over a trailing window of completed UTC
|
|
269
269
|
* hours. Buckets are SPARSE: an hour with no eligible sample is omitted (render it
|
|
270
|
-
* no-data). Each bucket
|
|
270
|
+
* no-data). Each bucket pools all corridors that hour into one aggregate good-ratio,
|
|
271
|
+
* so it is BREACHED when the pooled compliance is below target.
|
|
271
272
|
*/
|
|
272
273
|
export interface SloTimeline {
|
|
273
274
|
sloId: string;
|
|
@@ -280,13 +281,34 @@ export interface SloTimeline {
|
|
|
280
281
|
}
|
|
281
282
|
|
|
282
283
|
export interface SloTimelineBucket {
|
|
283
|
-
bucketStart:
|
|
284
|
+
bucketStart:
|
|
285
|
+
| Date
|
|
286
|
+
| undefined;
|
|
287
|
+
/** All corridors pooled for that hour: summed counts and their compliance drive the bar. */
|
|
284
288
|
eligibleCount: number;
|
|
285
289
|
goodCount: number;
|
|
286
290
|
compliance: number;
|
|
287
291
|
state: SloCorridorState;
|
|
288
292
|
}
|
|
289
293
|
|
|
294
|
+
export interface PreviewSloRequest {
|
|
295
|
+
organizationId: string;
|
|
296
|
+
projectId: string;
|
|
297
|
+
/** objective: the unsaved definition to score, updated live as the user edits. */
|
|
298
|
+
objective: SloObjective | undefined;
|
|
299
|
+
evaluationTime:
|
|
300
|
+
| Date
|
|
301
|
+
| undefined;
|
|
302
|
+
/** bucket_count: trailing 1-hour timeline buckets (0 = default 168 = 7d; max 2000). */
|
|
303
|
+
bucketCount: number;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface PreviewSloResponse {
|
|
307
|
+
status: ResponseStatus | undefined;
|
|
308
|
+
sloStatus: SloStatus | undefined;
|
|
309
|
+
timeline: SloTimeline | undefined;
|
|
310
|
+
}
|
|
311
|
+
|
|
290
312
|
function createBaseSlo(): Slo {
|
|
291
313
|
return {
|
|
292
314
|
id: "",
|
|
@@ -2831,6 +2853,250 @@ export const SloTimelineBucket: MessageFns<SloTimelineBucket> = {
|
|
|
2831
2853
|
},
|
|
2832
2854
|
};
|
|
2833
2855
|
|
|
2856
|
+
function createBasePreviewSloRequest(): PreviewSloRequest {
|
|
2857
|
+
return { organizationId: "", projectId: "", objective: undefined, evaluationTime: undefined, bucketCount: 0 };
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
export const PreviewSloRequest: MessageFns<PreviewSloRequest> = {
|
|
2861
|
+
encode(message: PreviewSloRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2862
|
+
if (message.organizationId !== "") {
|
|
2863
|
+
writer.uint32(10).string(message.organizationId);
|
|
2864
|
+
}
|
|
2865
|
+
if (message.projectId !== "") {
|
|
2866
|
+
writer.uint32(18).string(message.projectId);
|
|
2867
|
+
}
|
|
2868
|
+
if (message.objective !== undefined) {
|
|
2869
|
+
SloObjective.encode(message.objective, writer.uint32(26).fork()).join();
|
|
2870
|
+
}
|
|
2871
|
+
if (message.evaluationTime !== undefined) {
|
|
2872
|
+
Timestamp.encode(toTimestamp(message.evaluationTime), writer.uint32(34).fork()).join();
|
|
2873
|
+
}
|
|
2874
|
+
if (message.bucketCount !== 0) {
|
|
2875
|
+
writer.uint32(40).uint32(message.bucketCount);
|
|
2876
|
+
}
|
|
2877
|
+
return writer;
|
|
2878
|
+
},
|
|
2879
|
+
|
|
2880
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PreviewSloRequest {
|
|
2881
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2882
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2883
|
+
const message = createBasePreviewSloRequest();
|
|
2884
|
+
while (reader.pos < end) {
|
|
2885
|
+
const tag = reader.uint32();
|
|
2886
|
+
switch (tag >>> 3) {
|
|
2887
|
+
case 1: {
|
|
2888
|
+
if (tag !== 10) {
|
|
2889
|
+
break;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
message.organizationId = reader.string();
|
|
2893
|
+
continue;
|
|
2894
|
+
}
|
|
2895
|
+
case 2: {
|
|
2896
|
+
if (tag !== 18) {
|
|
2897
|
+
break;
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
message.projectId = reader.string();
|
|
2901
|
+
continue;
|
|
2902
|
+
}
|
|
2903
|
+
case 3: {
|
|
2904
|
+
if (tag !== 26) {
|
|
2905
|
+
break;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
message.objective = SloObjective.decode(reader, reader.uint32());
|
|
2909
|
+
continue;
|
|
2910
|
+
}
|
|
2911
|
+
case 4: {
|
|
2912
|
+
if (tag !== 34) {
|
|
2913
|
+
break;
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
message.evaluationTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
2917
|
+
continue;
|
|
2918
|
+
}
|
|
2919
|
+
case 5: {
|
|
2920
|
+
if (tag !== 40) {
|
|
2921
|
+
break;
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
message.bucketCount = reader.uint32();
|
|
2925
|
+
continue;
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2929
|
+
break;
|
|
2930
|
+
}
|
|
2931
|
+
reader.skip(tag & 7);
|
|
2932
|
+
}
|
|
2933
|
+
return message;
|
|
2934
|
+
},
|
|
2935
|
+
|
|
2936
|
+
fromJSON(object: any): PreviewSloRequest {
|
|
2937
|
+
return {
|
|
2938
|
+
organizationId: isSet(object.organizationId)
|
|
2939
|
+
? globalThis.String(object.organizationId)
|
|
2940
|
+
: isSet(object.organization_id)
|
|
2941
|
+
? globalThis.String(object.organization_id)
|
|
2942
|
+
: "",
|
|
2943
|
+
projectId: isSet(object.projectId)
|
|
2944
|
+
? globalThis.String(object.projectId)
|
|
2945
|
+
: isSet(object.project_id)
|
|
2946
|
+
? globalThis.String(object.project_id)
|
|
2947
|
+
: "",
|
|
2948
|
+
objective: isSet(object.objective) ? SloObjective.fromJSON(object.objective) : undefined,
|
|
2949
|
+
evaluationTime: isSet(object.evaluationTime)
|
|
2950
|
+
? fromJsonTimestamp(object.evaluationTime)
|
|
2951
|
+
: isSet(object.evaluation_time)
|
|
2952
|
+
? fromJsonTimestamp(object.evaluation_time)
|
|
2953
|
+
: undefined,
|
|
2954
|
+
bucketCount: isSet(object.bucketCount)
|
|
2955
|
+
? globalThis.Number(object.bucketCount)
|
|
2956
|
+
: isSet(object.bucket_count)
|
|
2957
|
+
? globalThis.Number(object.bucket_count)
|
|
2958
|
+
: 0,
|
|
2959
|
+
};
|
|
2960
|
+
},
|
|
2961
|
+
|
|
2962
|
+
toJSON(message: PreviewSloRequest): unknown {
|
|
2963
|
+
const obj: any = {};
|
|
2964
|
+
if (message.organizationId !== "") {
|
|
2965
|
+
obj.organizationId = message.organizationId;
|
|
2966
|
+
}
|
|
2967
|
+
if (message.projectId !== "") {
|
|
2968
|
+
obj.projectId = message.projectId;
|
|
2969
|
+
}
|
|
2970
|
+
if (message.objective !== undefined) {
|
|
2971
|
+
obj.objective = SloObjective.toJSON(message.objective);
|
|
2972
|
+
}
|
|
2973
|
+
if (message.evaluationTime !== undefined) {
|
|
2974
|
+
obj.evaluationTime = message.evaluationTime.toISOString();
|
|
2975
|
+
}
|
|
2976
|
+
if (message.bucketCount !== 0) {
|
|
2977
|
+
obj.bucketCount = Math.round(message.bucketCount);
|
|
2978
|
+
}
|
|
2979
|
+
return obj;
|
|
2980
|
+
},
|
|
2981
|
+
|
|
2982
|
+
create<I extends Exact<DeepPartial<PreviewSloRequest>, I>>(base?: I): PreviewSloRequest {
|
|
2983
|
+
return PreviewSloRequest.fromPartial(base ?? ({} as any));
|
|
2984
|
+
},
|
|
2985
|
+
fromPartial<I extends Exact<DeepPartial<PreviewSloRequest>, I>>(object: I): PreviewSloRequest {
|
|
2986
|
+
const message = createBasePreviewSloRequest();
|
|
2987
|
+
message.organizationId = object.organizationId ?? "";
|
|
2988
|
+
message.projectId = object.projectId ?? "";
|
|
2989
|
+
message.objective = (object.objective !== undefined && object.objective !== null)
|
|
2990
|
+
? SloObjective.fromPartial(object.objective)
|
|
2991
|
+
: undefined;
|
|
2992
|
+
message.evaluationTime = object.evaluationTime ?? undefined;
|
|
2993
|
+
message.bucketCount = object.bucketCount ?? 0;
|
|
2994
|
+
return message;
|
|
2995
|
+
},
|
|
2996
|
+
};
|
|
2997
|
+
|
|
2998
|
+
function createBasePreviewSloResponse(): PreviewSloResponse {
|
|
2999
|
+
return { status: undefined, sloStatus: undefined, timeline: undefined };
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
export const PreviewSloResponse: MessageFns<PreviewSloResponse> = {
|
|
3003
|
+
encode(message: PreviewSloResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3004
|
+
if (message.status !== undefined) {
|
|
3005
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
3006
|
+
}
|
|
3007
|
+
if (message.sloStatus !== undefined) {
|
|
3008
|
+
SloStatus.encode(message.sloStatus, writer.uint32(18).fork()).join();
|
|
3009
|
+
}
|
|
3010
|
+
if (message.timeline !== undefined) {
|
|
3011
|
+
SloTimeline.encode(message.timeline, writer.uint32(26).fork()).join();
|
|
3012
|
+
}
|
|
3013
|
+
return writer;
|
|
3014
|
+
},
|
|
3015
|
+
|
|
3016
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PreviewSloResponse {
|
|
3017
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3018
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3019
|
+
const message = createBasePreviewSloResponse();
|
|
3020
|
+
while (reader.pos < end) {
|
|
3021
|
+
const tag = reader.uint32();
|
|
3022
|
+
switch (tag >>> 3) {
|
|
3023
|
+
case 1: {
|
|
3024
|
+
if (tag !== 10) {
|
|
3025
|
+
break;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
3029
|
+
continue;
|
|
3030
|
+
}
|
|
3031
|
+
case 2: {
|
|
3032
|
+
if (tag !== 18) {
|
|
3033
|
+
break;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
message.sloStatus = SloStatus.decode(reader, reader.uint32());
|
|
3037
|
+
continue;
|
|
3038
|
+
}
|
|
3039
|
+
case 3: {
|
|
3040
|
+
if (tag !== 26) {
|
|
3041
|
+
break;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
message.timeline = SloTimeline.decode(reader, reader.uint32());
|
|
3045
|
+
continue;
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3049
|
+
break;
|
|
3050
|
+
}
|
|
3051
|
+
reader.skip(tag & 7);
|
|
3052
|
+
}
|
|
3053
|
+
return message;
|
|
3054
|
+
},
|
|
3055
|
+
|
|
3056
|
+
fromJSON(object: any): PreviewSloResponse {
|
|
3057
|
+
return {
|
|
3058
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
3059
|
+
sloStatus: isSet(object.sloStatus)
|
|
3060
|
+
? SloStatus.fromJSON(object.sloStatus)
|
|
3061
|
+
: isSet(object.slo_status)
|
|
3062
|
+
? SloStatus.fromJSON(object.slo_status)
|
|
3063
|
+
: undefined,
|
|
3064
|
+
timeline: isSet(object.timeline) ? SloTimeline.fromJSON(object.timeline) : undefined,
|
|
3065
|
+
};
|
|
3066
|
+
},
|
|
3067
|
+
|
|
3068
|
+
toJSON(message: PreviewSloResponse): unknown {
|
|
3069
|
+
const obj: any = {};
|
|
3070
|
+
if (message.status !== undefined) {
|
|
3071
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
3072
|
+
}
|
|
3073
|
+
if (message.sloStatus !== undefined) {
|
|
3074
|
+
obj.sloStatus = SloStatus.toJSON(message.sloStatus);
|
|
3075
|
+
}
|
|
3076
|
+
if (message.timeline !== undefined) {
|
|
3077
|
+
obj.timeline = SloTimeline.toJSON(message.timeline);
|
|
3078
|
+
}
|
|
3079
|
+
return obj;
|
|
3080
|
+
},
|
|
3081
|
+
|
|
3082
|
+
create<I extends Exact<DeepPartial<PreviewSloResponse>, I>>(base?: I): PreviewSloResponse {
|
|
3083
|
+
return PreviewSloResponse.fromPartial(base ?? ({} as any));
|
|
3084
|
+
},
|
|
3085
|
+
fromPartial<I extends Exact<DeepPartial<PreviewSloResponse>, I>>(object: I): PreviewSloResponse {
|
|
3086
|
+
const message = createBasePreviewSloResponse();
|
|
3087
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
3088
|
+
? ResponseStatus.fromPartial(object.status)
|
|
3089
|
+
: undefined;
|
|
3090
|
+
message.sloStatus = (object.sloStatus !== undefined && object.sloStatus !== null)
|
|
3091
|
+
? SloStatus.fromPartial(object.sloStatus)
|
|
3092
|
+
: undefined;
|
|
3093
|
+
message.timeline = (object.timeline !== undefined && object.timeline !== null)
|
|
3094
|
+
? SloTimeline.fromPartial(object.timeline)
|
|
3095
|
+
: undefined;
|
|
3096
|
+
return message;
|
|
3097
|
+
},
|
|
3098
|
+
};
|
|
3099
|
+
|
|
2834
3100
|
/** SloGatewayService provides web client access to SLO definitions. */
|
|
2835
3101
|
export interface SloGatewayService {
|
|
2836
3102
|
CreateSlo(request: CreateSloRequest, metadata?: Metadata): Promise<CreateSloResponse>;
|
|
@@ -2840,6 +3106,8 @@ export interface SloGatewayService {
|
|
|
2840
3106
|
DeleteSlo(request: DeleteSloRequest, metadata?: Metadata): Promise<DeleteSloResponse>;
|
|
2841
3107
|
GetSloStatus(request: GetSloStatusRequest, metadata?: Metadata): Promise<GetSloStatusResponse>;
|
|
2842
3108
|
GetSloTimeline(request: GetSloTimelineRequest, metadata?: Metadata): Promise<GetSloTimelineResponse>;
|
|
3109
|
+
/** PreviewSlo scores an unsaved objective (status + timeline) for the authoring UI. */
|
|
3110
|
+
PreviewSlo(request: PreviewSloRequest, metadata?: Metadata): Promise<PreviewSloResponse>;
|
|
2843
3111
|
}
|
|
2844
3112
|
|
|
2845
3113
|
export const SloGatewayServiceServiceName = "gateway.web.v1.SloGatewayService";
|
|
@@ -2856,6 +3124,7 @@ export class SloGatewayServiceClientImpl implements SloGatewayService {
|
|
|
2856
3124
|
this.DeleteSlo = this.DeleteSlo.bind(this);
|
|
2857
3125
|
this.GetSloStatus = this.GetSloStatus.bind(this);
|
|
2858
3126
|
this.GetSloTimeline = this.GetSloTimeline.bind(this);
|
|
3127
|
+
this.PreviewSlo = this.PreviewSlo.bind(this);
|
|
2859
3128
|
}
|
|
2860
3129
|
CreateSlo(request: CreateSloRequest, metadata?: Metadata): Promise<CreateSloResponse> {
|
|
2861
3130
|
const data = CreateSloRequest.encode(request).finish();
|
|
@@ -2898,6 +3167,12 @@ export class SloGatewayServiceClientImpl implements SloGatewayService {
|
|
|
2898
3167
|
const promise = this.rpc.request(this.service, "GetSloTimeline", data, metadata);
|
|
2899
3168
|
return promise.then((data) => GetSloTimelineResponse.decode(new BinaryReader(data)));
|
|
2900
3169
|
}
|
|
3170
|
+
|
|
3171
|
+
PreviewSlo(request: PreviewSloRequest, metadata?: Metadata): Promise<PreviewSloResponse> {
|
|
3172
|
+
const data = PreviewSloRequest.encode(request).finish();
|
|
3173
|
+
const promise = this.rpc.request(this.service, "PreviewSlo", data, metadata);
|
|
3174
|
+
return promise.then((data) => PreviewSloResponse.decode(new BinaryReader(data)));
|
|
3175
|
+
}
|
|
2901
3176
|
}
|
|
2902
3177
|
|
|
2903
3178
|
interface Rpc {
|
|
@@ -138,6 +138,28 @@ function deserialize_gateway_web_v1_ListSlosResponse(buffer_arg) {
|
|
|
138
138
|
return proto_gateway_web_v1_slo_gateway_pb.ListSlosResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
function serialize_gateway_web_v1_PreviewSloRequest(arg) {
|
|
142
|
+
if (!(arg instanceof proto_gateway_web_v1_slo_gateway_pb.PreviewSloRequest)) {
|
|
143
|
+
throw new Error('Expected argument of type gateway.web.v1.PreviewSloRequest');
|
|
144
|
+
}
|
|
145
|
+
return Buffer.from(arg.serializeBinary());
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function deserialize_gateway_web_v1_PreviewSloRequest(buffer_arg) {
|
|
149
|
+
return proto_gateway_web_v1_slo_gateway_pb.PreviewSloRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function serialize_gateway_web_v1_PreviewSloResponse(arg) {
|
|
153
|
+
if (!(arg instanceof proto_gateway_web_v1_slo_gateway_pb.PreviewSloResponse)) {
|
|
154
|
+
throw new Error('Expected argument of type gateway.web.v1.PreviewSloResponse');
|
|
155
|
+
}
|
|
156
|
+
return Buffer.from(arg.serializeBinary());
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function deserialize_gateway_web_v1_PreviewSloResponse(buffer_arg) {
|
|
160
|
+
return proto_gateway_web_v1_slo_gateway_pb.PreviewSloResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
161
|
+
}
|
|
162
|
+
|
|
141
163
|
function serialize_gateway_web_v1_UpdateSloRequest(arg) {
|
|
142
164
|
if (!(arg instanceof proto_gateway_web_v1_slo_gateway_pb.UpdateSloRequest)) {
|
|
143
165
|
throw new Error('Expected argument of type gateway.web.v1.UpdateSloRequest');
|
|
@@ -240,6 +262,18 @@ var SloGatewayServiceService = exports.SloGatewayServiceService = {
|
|
|
240
262
|
responseSerialize: serialize_gateway_web_v1_GetSloTimelineResponse,
|
|
241
263
|
responseDeserialize: deserialize_gateway_web_v1_GetSloTimelineResponse,
|
|
242
264
|
},
|
|
265
|
+
// PreviewSlo scores an unsaved objective (status + timeline) for the authoring UI.
|
|
266
|
+
previewSlo: {
|
|
267
|
+
path: '/gateway.web.v1.SloGatewayService/PreviewSlo',
|
|
268
|
+
requestStream: false,
|
|
269
|
+
responseStream: false,
|
|
270
|
+
requestType: proto_gateway_web_v1_slo_gateway_pb.PreviewSloRequest,
|
|
271
|
+
responseType: proto_gateway_web_v1_slo_gateway_pb.PreviewSloResponse,
|
|
272
|
+
requestSerialize: serialize_gateway_web_v1_PreviewSloRequest,
|
|
273
|
+
requestDeserialize: deserialize_gateway_web_v1_PreviewSloRequest,
|
|
274
|
+
responseSerialize: serialize_gateway_web_v1_PreviewSloResponse,
|
|
275
|
+
responseDeserialize: deserialize_gateway_web_v1_PreviewSloResponse,
|
|
276
|
+
},
|
|
243
277
|
};
|
|
244
278
|
|
|
245
279
|
exports.SloGatewayServiceClient = grpc.makeGenericClientConstructor(SloGatewayServiceService, 'SloGatewayService');
|
|
@@ -38,6 +38,8 @@ goog.exportSymbol('proto.gateway.web.v1.GetSloTimelineRequest', null, global);
|
|
|
38
38
|
goog.exportSymbol('proto.gateway.web.v1.GetSloTimelineResponse', null, global);
|
|
39
39
|
goog.exportSymbol('proto.gateway.web.v1.ListSlosRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.gateway.web.v1.ListSlosResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.gateway.web.v1.PreviewSloRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.gateway.web.v1.PreviewSloResponse', null, global);
|
|
41
43
|
goog.exportSymbol('proto.gateway.web.v1.Slo', null, global);
|
|
42
44
|
goog.exportSymbol('proto.gateway.web.v1.SloComparator', null, global);
|
|
43
45
|
goog.exportSymbol('proto.gateway.web.v1.SloCorridorState', null, global);
|
|
@@ -512,6 +514,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
512
514
|
*/
|
|
513
515
|
proto.gateway.web.v1.SloTimelineBucket.displayName = 'proto.gateway.web.v1.SloTimelineBucket';
|
|
514
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* Generated by JsPbCodeGenerator.
|
|
519
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
520
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
521
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
522
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
523
|
+
* valid.
|
|
524
|
+
* @extends {jspb.Message}
|
|
525
|
+
* @constructor
|
|
526
|
+
*/
|
|
527
|
+
proto.gateway.web.v1.PreviewSloRequest = function(opt_data) {
|
|
528
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
529
|
+
};
|
|
530
|
+
goog.inherits(proto.gateway.web.v1.PreviewSloRequest, jspb.Message);
|
|
531
|
+
if (goog.DEBUG && !COMPILED) {
|
|
532
|
+
/**
|
|
533
|
+
* @public
|
|
534
|
+
* @override
|
|
535
|
+
*/
|
|
536
|
+
proto.gateway.web.v1.PreviewSloRequest.displayName = 'proto.gateway.web.v1.PreviewSloRequest';
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Generated by JsPbCodeGenerator.
|
|
540
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
541
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
542
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
543
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
544
|
+
* valid.
|
|
545
|
+
* @extends {jspb.Message}
|
|
546
|
+
* @constructor
|
|
547
|
+
*/
|
|
548
|
+
proto.gateway.web.v1.PreviewSloResponse = function(opt_data) {
|
|
549
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
550
|
+
};
|
|
551
|
+
goog.inherits(proto.gateway.web.v1.PreviewSloResponse, jspb.Message);
|
|
552
|
+
if (goog.DEBUG && !COMPILED) {
|
|
553
|
+
/**
|
|
554
|
+
* @public
|
|
555
|
+
* @override
|
|
556
|
+
*/
|
|
557
|
+
proto.gateway.web.v1.PreviewSloResponse.displayName = 'proto.gateway.web.v1.PreviewSloResponse';
|
|
558
|
+
}
|
|
515
559
|
|
|
516
560
|
|
|
517
561
|
|
|
@@ -5999,6 +6043,551 @@ proto.gateway.web.v1.SloTimelineBucket.prototype.setState = function(value) {
|
|
|
5999
6043
|
};
|
|
6000
6044
|
|
|
6001
6045
|
|
|
6046
|
+
|
|
6047
|
+
|
|
6048
|
+
|
|
6049
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6050
|
+
/**
|
|
6051
|
+
* Creates an object representation of this proto.
|
|
6052
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6053
|
+
* Optional fields that are not set will be set to undefined.
|
|
6054
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6055
|
+
* For the list of reserved names please see:
|
|
6056
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6057
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6058
|
+
* JSPB instance for transitional soy proto support:
|
|
6059
|
+
* http://goto/soy-param-migration
|
|
6060
|
+
* @return {!Object}
|
|
6061
|
+
*/
|
|
6062
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6063
|
+
return proto.gateway.web.v1.PreviewSloRequest.toObject(opt_includeInstance, this);
|
|
6064
|
+
};
|
|
6065
|
+
|
|
6066
|
+
|
|
6067
|
+
/**
|
|
6068
|
+
* Static version of the {@see toObject} method.
|
|
6069
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6070
|
+
* the JSPB instance for transitional soy proto support:
|
|
6071
|
+
* http://goto/soy-param-migration
|
|
6072
|
+
* @param {!proto.gateway.web.v1.PreviewSloRequest} msg The msg instance to transform.
|
|
6073
|
+
* @return {!Object}
|
|
6074
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6075
|
+
*/
|
|
6076
|
+
proto.gateway.web.v1.PreviewSloRequest.toObject = function(includeInstance, msg) {
|
|
6077
|
+
var f, obj = {
|
|
6078
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6079
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6080
|
+
objective: (f = msg.getObjective()) && proto.gateway.web.v1.SloObjective.toObject(includeInstance, f),
|
|
6081
|
+
evaluationTime: (f = msg.getEvaluationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
6082
|
+
bucketCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
6083
|
+
};
|
|
6084
|
+
|
|
6085
|
+
if (includeInstance) {
|
|
6086
|
+
obj.$jspbMessageInstance = msg;
|
|
6087
|
+
}
|
|
6088
|
+
return obj;
|
|
6089
|
+
};
|
|
6090
|
+
}
|
|
6091
|
+
|
|
6092
|
+
|
|
6093
|
+
/**
|
|
6094
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6095
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6096
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest}
|
|
6097
|
+
*/
|
|
6098
|
+
proto.gateway.web.v1.PreviewSloRequest.deserializeBinary = function(bytes) {
|
|
6099
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6100
|
+
var msg = new proto.gateway.web.v1.PreviewSloRequest;
|
|
6101
|
+
return proto.gateway.web.v1.PreviewSloRequest.deserializeBinaryFromReader(msg, reader);
|
|
6102
|
+
};
|
|
6103
|
+
|
|
6104
|
+
|
|
6105
|
+
/**
|
|
6106
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6107
|
+
* given reader into the given message object.
|
|
6108
|
+
* @param {!proto.gateway.web.v1.PreviewSloRequest} msg The message object to deserialize into.
|
|
6109
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6110
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest}
|
|
6111
|
+
*/
|
|
6112
|
+
proto.gateway.web.v1.PreviewSloRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6113
|
+
while (reader.nextField()) {
|
|
6114
|
+
if (reader.isEndGroup()) {
|
|
6115
|
+
break;
|
|
6116
|
+
}
|
|
6117
|
+
var field = reader.getFieldNumber();
|
|
6118
|
+
switch (field) {
|
|
6119
|
+
case 1:
|
|
6120
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6121
|
+
msg.setOrganizationId(value);
|
|
6122
|
+
break;
|
|
6123
|
+
case 2:
|
|
6124
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6125
|
+
msg.setProjectId(value);
|
|
6126
|
+
break;
|
|
6127
|
+
case 3:
|
|
6128
|
+
var value = new proto.gateway.web.v1.SloObjective;
|
|
6129
|
+
reader.readMessage(value,proto.gateway.web.v1.SloObjective.deserializeBinaryFromReader);
|
|
6130
|
+
msg.setObjective(value);
|
|
6131
|
+
break;
|
|
6132
|
+
case 4:
|
|
6133
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
6134
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
6135
|
+
msg.setEvaluationTime(value);
|
|
6136
|
+
break;
|
|
6137
|
+
case 5:
|
|
6138
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
6139
|
+
msg.setBucketCount(value);
|
|
6140
|
+
break;
|
|
6141
|
+
default:
|
|
6142
|
+
reader.skipField();
|
|
6143
|
+
break;
|
|
6144
|
+
}
|
|
6145
|
+
}
|
|
6146
|
+
return msg;
|
|
6147
|
+
};
|
|
6148
|
+
|
|
6149
|
+
|
|
6150
|
+
/**
|
|
6151
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6152
|
+
* @return {!Uint8Array}
|
|
6153
|
+
*/
|
|
6154
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.serializeBinary = function() {
|
|
6155
|
+
var writer = new jspb.BinaryWriter();
|
|
6156
|
+
proto.gateway.web.v1.PreviewSloRequest.serializeBinaryToWriter(this, writer);
|
|
6157
|
+
return writer.getResultBuffer();
|
|
6158
|
+
};
|
|
6159
|
+
|
|
6160
|
+
|
|
6161
|
+
/**
|
|
6162
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6163
|
+
* format), writing to the given BinaryWriter.
|
|
6164
|
+
* @param {!proto.gateway.web.v1.PreviewSloRequest} message
|
|
6165
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6166
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6167
|
+
*/
|
|
6168
|
+
proto.gateway.web.v1.PreviewSloRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6169
|
+
var f = undefined;
|
|
6170
|
+
f = message.getOrganizationId();
|
|
6171
|
+
if (f.length > 0) {
|
|
6172
|
+
writer.writeString(
|
|
6173
|
+
1,
|
|
6174
|
+
f
|
|
6175
|
+
);
|
|
6176
|
+
}
|
|
6177
|
+
f = message.getProjectId();
|
|
6178
|
+
if (f.length > 0) {
|
|
6179
|
+
writer.writeString(
|
|
6180
|
+
2,
|
|
6181
|
+
f
|
|
6182
|
+
);
|
|
6183
|
+
}
|
|
6184
|
+
f = message.getObjective();
|
|
6185
|
+
if (f != null) {
|
|
6186
|
+
writer.writeMessage(
|
|
6187
|
+
3,
|
|
6188
|
+
f,
|
|
6189
|
+
proto.gateway.web.v1.SloObjective.serializeBinaryToWriter
|
|
6190
|
+
);
|
|
6191
|
+
}
|
|
6192
|
+
f = message.getEvaluationTime();
|
|
6193
|
+
if (f != null) {
|
|
6194
|
+
writer.writeMessage(
|
|
6195
|
+
4,
|
|
6196
|
+
f,
|
|
6197
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
6198
|
+
);
|
|
6199
|
+
}
|
|
6200
|
+
f = message.getBucketCount();
|
|
6201
|
+
if (f !== 0) {
|
|
6202
|
+
writer.writeUint32(
|
|
6203
|
+
5,
|
|
6204
|
+
f
|
|
6205
|
+
);
|
|
6206
|
+
}
|
|
6207
|
+
};
|
|
6208
|
+
|
|
6209
|
+
|
|
6210
|
+
/**
|
|
6211
|
+
* optional string organization_id = 1;
|
|
6212
|
+
* @return {string}
|
|
6213
|
+
*/
|
|
6214
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.getOrganizationId = function() {
|
|
6215
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6216
|
+
};
|
|
6217
|
+
|
|
6218
|
+
|
|
6219
|
+
/**
|
|
6220
|
+
* @param {string} value
|
|
6221
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
|
|
6222
|
+
*/
|
|
6223
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.setOrganizationId = function(value) {
|
|
6224
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6225
|
+
};
|
|
6226
|
+
|
|
6227
|
+
|
|
6228
|
+
/**
|
|
6229
|
+
* optional string project_id = 2;
|
|
6230
|
+
* @return {string}
|
|
6231
|
+
*/
|
|
6232
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.getProjectId = function() {
|
|
6233
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6234
|
+
};
|
|
6235
|
+
|
|
6236
|
+
|
|
6237
|
+
/**
|
|
6238
|
+
* @param {string} value
|
|
6239
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
|
|
6240
|
+
*/
|
|
6241
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.setProjectId = function(value) {
|
|
6242
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6243
|
+
};
|
|
6244
|
+
|
|
6245
|
+
|
|
6246
|
+
/**
|
|
6247
|
+
* optional SloObjective objective = 3;
|
|
6248
|
+
* @return {?proto.gateway.web.v1.SloObjective}
|
|
6249
|
+
*/
|
|
6250
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.getObjective = function() {
|
|
6251
|
+
return /** @type{?proto.gateway.web.v1.SloObjective} */ (
|
|
6252
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloObjective, 3));
|
|
6253
|
+
};
|
|
6254
|
+
|
|
6255
|
+
|
|
6256
|
+
/**
|
|
6257
|
+
* @param {?proto.gateway.web.v1.SloObjective|undefined} value
|
|
6258
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
|
|
6259
|
+
*/
|
|
6260
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.setObjective = function(value) {
|
|
6261
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
6262
|
+
};
|
|
6263
|
+
|
|
6264
|
+
|
|
6265
|
+
/**
|
|
6266
|
+
* Clears the message field making it undefined.
|
|
6267
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
|
|
6268
|
+
*/
|
|
6269
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.clearObjective = function() {
|
|
6270
|
+
return this.setObjective(undefined);
|
|
6271
|
+
};
|
|
6272
|
+
|
|
6273
|
+
|
|
6274
|
+
/**
|
|
6275
|
+
* Returns whether this field is set.
|
|
6276
|
+
* @return {boolean}
|
|
6277
|
+
*/
|
|
6278
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.hasObjective = function() {
|
|
6279
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6280
|
+
};
|
|
6281
|
+
|
|
6282
|
+
|
|
6283
|
+
/**
|
|
6284
|
+
* optional google.protobuf.Timestamp evaluation_time = 4;
|
|
6285
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
6286
|
+
*/
|
|
6287
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.getEvaluationTime = function() {
|
|
6288
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
6289
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
6290
|
+
};
|
|
6291
|
+
|
|
6292
|
+
|
|
6293
|
+
/**
|
|
6294
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
6295
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
|
|
6296
|
+
*/
|
|
6297
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.setEvaluationTime = function(value) {
|
|
6298
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
6299
|
+
};
|
|
6300
|
+
|
|
6301
|
+
|
|
6302
|
+
/**
|
|
6303
|
+
* Clears the message field making it undefined.
|
|
6304
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
|
|
6305
|
+
*/
|
|
6306
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.clearEvaluationTime = function() {
|
|
6307
|
+
return this.setEvaluationTime(undefined);
|
|
6308
|
+
};
|
|
6309
|
+
|
|
6310
|
+
|
|
6311
|
+
/**
|
|
6312
|
+
* Returns whether this field is set.
|
|
6313
|
+
* @return {boolean}
|
|
6314
|
+
*/
|
|
6315
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.hasEvaluationTime = function() {
|
|
6316
|
+
return jspb.Message.getField(this, 4) != null;
|
|
6317
|
+
};
|
|
6318
|
+
|
|
6319
|
+
|
|
6320
|
+
/**
|
|
6321
|
+
* optional uint32 bucket_count = 5;
|
|
6322
|
+
* @return {number}
|
|
6323
|
+
*/
|
|
6324
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.getBucketCount = function() {
|
|
6325
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
6326
|
+
};
|
|
6327
|
+
|
|
6328
|
+
|
|
6329
|
+
/**
|
|
6330
|
+
* @param {number} value
|
|
6331
|
+
* @return {!proto.gateway.web.v1.PreviewSloRequest} returns this
|
|
6332
|
+
*/
|
|
6333
|
+
proto.gateway.web.v1.PreviewSloRequest.prototype.setBucketCount = function(value) {
|
|
6334
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
6335
|
+
};
|
|
6336
|
+
|
|
6337
|
+
|
|
6338
|
+
|
|
6339
|
+
|
|
6340
|
+
|
|
6341
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6342
|
+
/**
|
|
6343
|
+
* Creates an object representation of this proto.
|
|
6344
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6345
|
+
* Optional fields that are not set will be set to undefined.
|
|
6346
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6347
|
+
* For the list of reserved names please see:
|
|
6348
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6349
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6350
|
+
* JSPB instance for transitional soy proto support:
|
|
6351
|
+
* http://goto/soy-param-migration
|
|
6352
|
+
* @return {!Object}
|
|
6353
|
+
*/
|
|
6354
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6355
|
+
return proto.gateway.web.v1.PreviewSloResponse.toObject(opt_includeInstance, this);
|
|
6356
|
+
};
|
|
6357
|
+
|
|
6358
|
+
|
|
6359
|
+
/**
|
|
6360
|
+
* Static version of the {@see toObject} method.
|
|
6361
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6362
|
+
* the JSPB instance for transitional soy proto support:
|
|
6363
|
+
* http://goto/soy-param-migration
|
|
6364
|
+
* @param {!proto.gateway.web.v1.PreviewSloResponse} msg The msg instance to transform.
|
|
6365
|
+
* @return {!Object}
|
|
6366
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6367
|
+
*/
|
|
6368
|
+
proto.gateway.web.v1.PreviewSloResponse.toObject = function(includeInstance, msg) {
|
|
6369
|
+
var f, obj = {
|
|
6370
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
6371
|
+
sloStatus: (f = msg.getSloStatus()) && proto.gateway.web.v1.SloStatus.toObject(includeInstance, f),
|
|
6372
|
+
timeline: (f = msg.getTimeline()) && proto.gateway.web.v1.SloTimeline.toObject(includeInstance, f)
|
|
6373
|
+
};
|
|
6374
|
+
|
|
6375
|
+
if (includeInstance) {
|
|
6376
|
+
obj.$jspbMessageInstance = msg;
|
|
6377
|
+
}
|
|
6378
|
+
return obj;
|
|
6379
|
+
};
|
|
6380
|
+
}
|
|
6381
|
+
|
|
6382
|
+
|
|
6383
|
+
/**
|
|
6384
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6385
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6386
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse}
|
|
6387
|
+
*/
|
|
6388
|
+
proto.gateway.web.v1.PreviewSloResponse.deserializeBinary = function(bytes) {
|
|
6389
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6390
|
+
var msg = new proto.gateway.web.v1.PreviewSloResponse;
|
|
6391
|
+
return proto.gateway.web.v1.PreviewSloResponse.deserializeBinaryFromReader(msg, reader);
|
|
6392
|
+
};
|
|
6393
|
+
|
|
6394
|
+
|
|
6395
|
+
/**
|
|
6396
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6397
|
+
* given reader into the given message object.
|
|
6398
|
+
* @param {!proto.gateway.web.v1.PreviewSloResponse} msg The message object to deserialize into.
|
|
6399
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6400
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse}
|
|
6401
|
+
*/
|
|
6402
|
+
proto.gateway.web.v1.PreviewSloResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6403
|
+
while (reader.nextField()) {
|
|
6404
|
+
if (reader.isEndGroup()) {
|
|
6405
|
+
break;
|
|
6406
|
+
}
|
|
6407
|
+
var field = reader.getFieldNumber();
|
|
6408
|
+
switch (field) {
|
|
6409
|
+
case 1:
|
|
6410
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
6411
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
6412
|
+
msg.setStatus(value);
|
|
6413
|
+
break;
|
|
6414
|
+
case 2:
|
|
6415
|
+
var value = new proto.gateway.web.v1.SloStatus;
|
|
6416
|
+
reader.readMessage(value,proto.gateway.web.v1.SloStatus.deserializeBinaryFromReader);
|
|
6417
|
+
msg.setSloStatus(value);
|
|
6418
|
+
break;
|
|
6419
|
+
case 3:
|
|
6420
|
+
var value = new proto.gateway.web.v1.SloTimeline;
|
|
6421
|
+
reader.readMessage(value,proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader);
|
|
6422
|
+
msg.setTimeline(value);
|
|
6423
|
+
break;
|
|
6424
|
+
default:
|
|
6425
|
+
reader.skipField();
|
|
6426
|
+
break;
|
|
6427
|
+
}
|
|
6428
|
+
}
|
|
6429
|
+
return msg;
|
|
6430
|
+
};
|
|
6431
|
+
|
|
6432
|
+
|
|
6433
|
+
/**
|
|
6434
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6435
|
+
* @return {!Uint8Array}
|
|
6436
|
+
*/
|
|
6437
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.serializeBinary = function() {
|
|
6438
|
+
var writer = new jspb.BinaryWriter();
|
|
6439
|
+
proto.gateway.web.v1.PreviewSloResponse.serializeBinaryToWriter(this, writer);
|
|
6440
|
+
return writer.getResultBuffer();
|
|
6441
|
+
};
|
|
6442
|
+
|
|
6443
|
+
|
|
6444
|
+
/**
|
|
6445
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6446
|
+
* format), writing to the given BinaryWriter.
|
|
6447
|
+
* @param {!proto.gateway.web.v1.PreviewSloResponse} message
|
|
6448
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6449
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6450
|
+
*/
|
|
6451
|
+
proto.gateway.web.v1.PreviewSloResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6452
|
+
var f = undefined;
|
|
6453
|
+
f = message.getStatus();
|
|
6454
|
+
if (f != null) {
|
|
6455
|
+
writer.writeMessage(
|
|
6456
|
+
1,
|
|
6457
|
+
f,
|
|
6458
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
6459
|
+
);
|
|
6460
|
+
}
|
|
6461
|
+
f = message.getSloStatus();
|
|
6462
|
+
if (f != null) {
|
|
6463
|
+
writer.writeMessage(
|
|
6464
|
+
2,
|
|
6465
|
+
f,
|
|
6466
|
+
proto.gateway.web.v1.SloStatus.serializeBinaryToWriter
|
|
6467
|
+
);
|
|
6468
|
+
}
|
|
6469
|
+
f = message.getTimeline();
|
|
6470
|
+
if (f != null) {
|
|
6471
|
+
writer.writeMessage(
|
|
6472
|
+
3,
|
|
6473
|
+
f,
|
|
6474
|
+
proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter
|
|
6475
|
+
);
|
|
6476
|
+
}
|
|
6477
|
+
};
|
|
6478
|
+
|
|
6479
|
+
|
|
6480
|
+
/**
|
|
6481
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
6482
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
6483
|
+
*/
|
|
6484
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.getStatus = function() {
|
|
6485
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
6486
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
6487
|
+
};
|
|
6488
|
+
|
|
6489
|
+
|
|
6490
|
+
/**
|
|
6491
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
6492
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
|
|
6493
|
+
*/
|
|
6494
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.setStatus = function(value) {
|
|
6495
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
6496
|
+
};
|
|
6497
|
+
|
|
6498
|
+
|
|
6499
|
+
/**
|
|
6500
|
+
* Clears the message field making it undefined.
|
|
6501
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
|
|
6502
|
+
*/
|
|
6503
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.clearStatus = function() {
|
|
6504
|
+
return this.setStatus(undefined);
|
|
6505
|
+
};
|
|
6506
|
+
|
|
6507
|
+
|
|
6508
|
+
/**
|
|
6509
|
+
* Returns whether this field is set.
|
|
6510
|
+
* @return {boolean}
|
|
6511
|
+
*/
|
|
6512
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.hasStatus = function() {
|
|
6513
|
+
return jspb.Message.getField(this, 1) != null;
|
|
6514
|
+
};
|
|
6515
|
+
|
|
6516
|
+
|
|
6517
|
+
/**
|
|
6518
|
+
* optional SloStatus slo_status = 2;
|
|
6519
|
+
* @return {?proto.gateway.web.v1.SloStatus}
|
|
6520
|
+
*/
|
|
6521
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.getSloStatus = function() {
|
|
6522
|
+
return /** @type{?proto.gateway.web.v1.SloStatus} */ (
|
|
6523
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloStatus, 2));
|
|
6524
|
+
};
|
|
6525
|
+
|
|
6526
|
+
|
|
6527
|
+
/**
|
|
6528
|
+
* @param {?proto.gateway.web.v1.SloStatus|undefined} value
|
|
6529
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
|
|
6530
|
+
*/
|
|
6531
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.setSloStatus = function(value) {
|
|
6532
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6533
|
+
};
|
|
6534
|
+
|
|
6535
|
+
|
|
6536
|
+
/**
|
|
6537
|
+
* Clears the message field making it undefined.
|
|
6538
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
|
|
6539
|
+
*/
|
|
6540
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.clearSloStatus = function() {
|
|
6541
|
+
return this.setSloStatus(undefined);
|
|
6542
|
+
};
|
|
6543
|
+
|
|
6544
|
+
|
|
6545
|
+
/**
|
|
6546
|
+
* Returns whether this field is set.
|
|
6547
|
+
* @return {boolean}
|
|
6548
|
+
*/
|
|
6549
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.hasSloStatus = function() {
|
|
6550
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6551
|
+
};
|
|
6552
|
+
|
|
6553
|
+
|
|
6554
|
+
/**
|
|
6555
|
+
* optional SloTimeline timeline = 3;
|
|
6556
|
+
* @return {?proto.gateway.web.v1.SloTimeline}
|
|
6557
|
+
*/
|
|
6558
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.getTimeline = function() {
|
|
6559
|
+
return /** @type{?proto.gateway.web.v1.SloTimeline} */ (
|
|
6560
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloTimeline, 3));
|
|
6561
|
+
};
|
|
6562
|
+
|
|
6563
|
+
|
|
6564
|
+
/**
|
|
6565
|
+
* @param {?proto.gateway.web.v1.SloTimeline|undefined} value
|
|
6566
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
|
|
6567
|
+
*/
|
|
6568
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.setTimeline = function(value) {
|
|
6569
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
6570
|
+
};
|
|
6571
|
+
|
|
6572
|
+
|
|
6573
|
+
/**
|
|
6574
|
+
* Clears the message field making it undefined.
|
|
6575
|
+
* @return {!proto.gateway.web.v1.PreviewSloResponse} returns this
|
|
6576
|
+
*/
|
|
6577
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.clearTimeline = function() {
|
|
6578
|
+
return this.setTimeline(undefined);
|
|
6579
|
+
};
|
|
6580
|
+
|
|
6581
|
+
|
|
6582
|
+
/**
|
|
6583
|
+
* Returns whether this field is set.
|
|
6584
|
+
* @return {boolean}
|
|
6585
|
+
*/
|
|
6586
|
+
proto.gateway.web.v1.PreviewSloResponse.prototype.hasTimeline = function() {
|
|
6587
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6588
|
+
};
|
|
6589
|
+
|
|
6590
|
+
|
|
6002
6591
|
/**
|
|
6003
6592
|
* @enum {number}
|
|
6004
6593
|
*/
|