| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file svc/feature/v1/service.proto (package svc.feature.v1, syntax proto3) |
| 3 | /* eslint-disable */ |
| 4 | // @ts-nocheck |
| 5 | |
| 6 | import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; |
| 7 | import { Message, proto3 } from "@bufbuild/protobuf"; |
| 8 | import { Feature } from "../../../types/v1/feature_pb"; |
| 9 | |
| 10 | /** |
| 11 | * @generated from message svc.feature.v1.HasFeatureRequest |
| 12 | */ |
| 13 | export class HasFeatureRequest extends Message<HasFeatureRequest> { |
| 14 | /** |
| 15 | * @generated from field: string feature = 1; |
| 16 | */ |
| 17 | feature = ""; |
| 18 | |
| 19 | constructor(data?: PartialMessage<HasFeatureRequest>) { |
| 20 | super(); |
| 21 | proto3.util.initPartial(data, this); |
| 22 | } |
| 23 | |
| 24 | static readonly runtime: typeof proto3 = proto3; |
| 25 | static readonly typeName = "svc.feature.v1.HasFeatureRequest"; |
| 26 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 27 | { no: 1, name: "feature", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 28 | ]); |
| 29 | |
| 30 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HasFeatureRequest { |
| 31 | return new HasFeatureRequest().fromBinary(bytes, options); |
| 32 | } |
| 33 | |
| 34 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HasFeatureRequest { |
| 35 | return new HasFeatureRequest().fromJson(jsonValue, options); |
| 36 | } |
| 37 | |
| 38 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HasFeatureRequest { |
| 39 | return new HasFeatureRequest().fromJsonString(jsonString, options); |
| 40 | } |
| 41 | |
| 42 | static equals(a: HasFeatureRequest | PlainMessage<HasFeatureRequest> | undefined, b: HasFeatureRequest | PlainMessage<HasFeatureRequest> | undefined): boolean { |
| 43 | return proto3.util.equals(HasFeatureRequest, a, b); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * @generated from message svc.feature.v1.HasFeatureResponse |
| 49 | */ |
| 50 | export class HasFeatureResponse extends Message<HasFeatureResponse> { |
| 51 | /** |
| 52 | * @generated from field: bool available = 1; |
| 53 | */ |
| 54 | available = false; |
| 55 | |
| 56 | constructor(data?: PartialMessage<HasFeatureResponse>) { |
| 57 | super(); |
| 58 | proto3.util.initPartial(data, this); |
| 59 | } |
| 60 | |
| 61 | static readonly runtime: typeof proto3 = proto3; |
| 62 | static readonly typeName = "svc.feature.v1.HasFeatureResponse"; |
| 63 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 64 | { no: 1, name: "available", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, |
| 65 | ]); |
| 66 | |
| 67 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HasFeatureResponse { |
| 68 | return new HasFeatureResponse().fromBinary(bytes, options); |
| 69 | } |
| 70 | |
| 71 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HasFeatureResponse { |
| 72 | return new HasFeatureResponse().fromJson(jsonValue, options); |
| 73 | } |
| 74 | |
| 75 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HasFeatureResponse { |
| 76 | return new HasFeatureResponse().fromJsonString(jsonString, options); |
| 77 | } |
| 78 | |
| 79 | static equals(a: HasFeatureResponse | PlainMessage<HasFeatureResponse> | undefined, b: HasFeatureResponse | PlainMessage<HasFeatureResponse> | undefined): boolean { |
| 80 | return proto3.util.equals(HasFeatureResponse, a, b); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * @generated from message svc.feature.v1.ListFeatureRequest |
| 86 | */ |
| 87 | export class ListFeatureRequest extends Message<ListFeatureRequest> { |
| 88 | constructor(data?: PartialMessage<ListFeatureRequest>) { |
| 89 | super(); |
| 90 | proto3.util.initPartial(data, this); |
| 91 | } |
| 92 | |
| 93 | static readonly runtime: typeof proto3 = proto3; |
| 94 | static readonly typeName = "svc.feature.v1.ListFeatureRequest"; |
| 95 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 96 | ]); |
| 97 | |
| 98 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListFeatureRequest { |
| 99 | return new ListFeatureRequest().fromBinary(bytes, options); |
| 100 | } |
| 101 | |
| 102 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListFeatureRequest { |
| 103 | return new ListFeatureRequest().fromJson(jsonValue, options); |
| 104 | } |
| 105 | |
| 106 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListFeatureRequest { |
| 107 | return new ListFeatureRequest().fromJsonString(jsonString, options); |
| 108 | } |
| 109 | |
| 110 | static equals(a: ListFeatureRequest | PlainMessage<ListFeatureRequest> | undefined, b: ListFeatureRequest | PlainMessage<ListFeatureRequest> | undefined): boolean { |
| 111 | return proto3.util.equals(ListFeatureRequest, a, b); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * @generated from message svc.feature.v1.ListFeatureResponse |
| 117 | */ |
| 118 | export class ListFeatureResponse extends Message<ListFeatureResponse> { |
| 119 | /** |
| 120 | * @generated from field: repeated types.v1.Feature features = 1; |
| 121 | */ |
| 122 | features: Feature[] = []; |
| 123 | |
| 124 | constructor(data?: PartialMessage<ListFeatureResponse>) { |
| 125 | super(); |
| 126 | proto3.util.initPartial(data, this); |
| 127 | } |
| 128 | |
| 129 | static readonly runtime: typeof proto3 = proto3; |
| 130 | static readonly typeName = "svc.feature.v1.ListFeatureResponse"; |
| 131 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 132 | { no: 1, name: "features", kind: "message", T: Feature, repeated: true }, |
| 133 | ]); |
| 134 | |
| 135 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListFeatureResponse { |
| 136 | return new ListFeatureResponse().fromBinary(bytes, options); |
| 137 | } |
| 138 | |
| 139 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListFeatureResponse { |
| 140 | return new ListFeatureResponse().fromJson(jsonValue, options); |
| 141 | } |
| 142 | |
| 143 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListFeatureResponse { |
| 144 | return new ListFeatureResponse().fromJsonString(jsonString, options); |
| 145 | } |
| 146 | |
| 147 | static equals(a: ListFeatureResponse | PlainMessage<ListFeatureResponse> | undefined, b: ListFeatureResponse | PlainMessage<ListFeatureResponse> | undefined): boolean { |
| 148 | return proto3.util.equals(ListFeatureResponse, a, b); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * @generated from message svc.feature.v1.AllowedUsageRequest |
| 154 | */ |
| 155 | export class AllowedUsageRequest extends Message<AllowedUsageRequest> { |
| 156 | constructor(data?: PartialMessage<AllowedUsageRequest>) { |
| 157 | super(); |
| 158 | proto3.util.initPartial(data, this); |
| 159 | } |
| 160 | |
| 161 | static readonly runtime: typeof proto3 = proto3; |
| 162 | static readonly typeName = "svc.feature.v1.AllowedUsageRequest"; |
| 163 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 164 | ]); |
| 165 | |
| 166 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllowedUsageRequest { |
| 167 | return new AllowedUsageRequest().fromBinary(bytes, options); |
| 168 | } |
| 169 | |
| 170 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllowedUsageRequest { |
| 171 | return new AllowedUsageRequest().fromJson(jsonValue, options); |
| 172 | } |
| 173 | |
| 174 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllowedUsageRequest { |
| 175 | return new AllowedUsageRequest().fromJsonString(jsonString, options); |
| 176 | } |
| 177 | |
| 178 | static equals(a: AllowedUsageRequest | PlainMessage<AllowedUsageRequest> | undefined, b: AllowedUsageRequest | PlainMessage<AllowedUsageRequest> | undefined): boolean { |
| 179 | return proto3.util.equals(AllowedUsageRequest, a, b); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * @generated from message svc.feature.v1.AllowedUsageResponse |
| 185 | */ |
| 186 | export class AllowedUsageResponse extends Message<AllowedUsageResponse> { |
| 187 | /** |
| 188 | * @generated from field: svc.feature.v1.AllowedUsageResponse.LocalhostUsage localhost_usage = 1; |
| 189 | */ |
| 190 | localhostUsage = AllowedUsageResponse_LocalhostUsage.NO_USAGE; |
| 191 | |
| 192 | constructor(data?: PartialMessage<AllowedUsageResponse>) { |
| 193 | super(); |
| 194 | proto3.util.initPartial(data, this); |
| 195 | } |
| 196 | |
| 197 | static readonly runtime: typeof proto3 = proto3; |
| 198 | static readonly typeName = "svc.feature.v1.AllowedUsageResponse"; |
| 199 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 200 | { no: 1, name: "localhost_usage", kind: "enum", T: proto3.getEnumType(AllowedUsageResponse_LocalhostUsage) }, |
| 201 | ]); |
| 202 | |
| 203 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllowedUsageResponse { |
| 204 | return new AllowedUsageResponse().fromBinary(bytes, options); |
| 205 | } |
| 206 | |
| 207 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllowedUsageResponse { |
| 208 | return new AllowedUsageResponse().fromJson(jsonValue, options); |
| 209 | } |
| 210 | |
| 211 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllowedUsageResponse { |
| 212 | return new AllowedUsageResponse().fromJsonString(jsonString, options); |
| 213 | } |
| 214 | |
| 215 | static equals(a: AllowedUsageResponse | PlainMessage<AllowedUsageResponse> | undefined, b: AllowedUsageResponse | PlainMessage<AllowedUsageResponse> | undefined): boolean { |
| 216 | return proto3.util.equals(AllowedUsageResponse, a, b); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | /** |
| 221 | * @generated from enum svc.feature.v1.AllowedUsageResponse.LocalhostUsage |
| 222 | */ |
| 223 | export enum AllowedUsageResponse_LocalhostUsage { |
| 224 | /** |
| 225 | * @generated from enum value: NO_USAGE = 0; |
| 226 | */ |
| 227 | NO_USAGE = 0, |
| 228 | |
| 229 | /** |
| 230 | * @generated from enum value: PERSONAL_USE = 1; |
| 231 | */ |
| 232 | PERSONAL_USE = 1, |
| 233 | |
| 234 | /** |
| 235 | * @generated from enum value: COMMERCIAL_USE = 2; |
| 236 | */ |
| 237 | COMMERCIAL_USE = 2, |
| 238 | } |
| 239 | // Retrieve enum metadata with: proto3.getEnumType(AllowedUsageResponse_LocalhostUsage) |
| 240 | proto3.util.setEnumType(AllowedUsageResponse_LocalhostUsage, "svc.feature.v1.AllowedUsageResponse.LocalhostUsage", [ |
| 241 | { no: 0, name: "NO_USAGE" }, |
| 242 | { no: 1, name: "PERSONAL_USE" }, |
| 243 | { no: 2, name: "COMMERCIAL_USE" }, |
| 244 | ]); |
| 245 |