// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file connectionSettings.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { RequestConnectionHeader } from "./shared_pb.js";

/**
 * @generated from message api.ConnectionSettings
 */
export class ConnectionSettings extends Message<ConnectionSettings> {
  /**
   * @generated from field: string connectionID = 1;
   */
  connectionID = "";

  /**
   * @generated from field: string settings = 2;
   */
  settings = "";

  constructor(data?: PartialMessage<ConnectionSettings>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ConnectionSettings";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "connectionID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "settings", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionSettings {
    return new ConnectionSettings().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionSettings {
    return new ConnectionSettings().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionSettings {
    return new ConnectionSettings().fromJsonString(jsonString, options);
  }

  static equals(a: ConnectionSettings | PlainMessage<ConnectionSettings> | undefined, b: ConnectionSettings | PlainMessage<ConnectionSettings> | undefined): boolean {
    return proto3.util.equals(ConnectionSettings, a, b);
  }
}

/**
 * @generated from message api.PutConnectionSettingsRequest
 */
export class PutConnectionSettingsRequest extends Message<PutConnectionSettingsRequest> {
  /**
   * @generated from field: api.RequestConnectionHeader Header = 1;
   */
  Header?: RequestConnectionHeader;

  /**
   * @generated from field: map<string, string> settings = 2;
   */
  settings: { [key: string]: string } = {};

  constructor(data?: PartialMessage<PutConnectionSettingsRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.PutConnectionSettingsRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestConnectionHeader },
    { no: 2, name: "settings", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PutConnectionSettingsRequest {
    return new PutConnectionSettingsRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PutConnectionSettingsRequest {
    return new PutConnectionSettingsRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PutConnectionSettingsRequest {
    return new PutConnectionSettingsRequest().fromJsonString(jsonString, options);
  }

  static equals(a: PutConnectionSettingsRequest | PlainMessage<PutConnectionSettingsRequest> | undefined, b: PutConnectionSettingsRequest | PlainMessage<PutConnectionSettingsRequest> | undefined): boolean {
    return proto3.util.equals(PutConnectionSettingsRequest, a, b);
  }
}

/**
 * @generated from message api.PutConnectionSettingsResult
 */
export class PutConnectionSettingsResult extends Message<PutConnectionSettingsResult> {
  /**
   * @generated from field: string settings = 1;
   */
  settings = "";

  constructor(data?: PartialMessage<PutConnectionSettingsResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.PutConnectionSettingsResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "settings", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PutConnectionSettingsResult {
    return new PutConnectionSettingsResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PutConnectionSettingsResult {
    return new PutConnectionSettingsResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PutConnectionSettingsResult {
    return new PutConnectionSettingsResult().fromJsonString(jsonString, options);
  }

  static equals(a: PutConnectionSettingsResult | PlainMessage<PutConnectionSettingsResult> | undefined, b: PutConnectionSettingsResult | PlainMessage<PutConnectionSettingsResult> | undefined): boolean {
    return proto3.util.equals(PutConnectionSettingsResult, a, b);
  }
}

/**
 * Settings of the connection to get
 *
 * @generated from message api.GetConnectionSettingsRequest
 */
export class GetConnectionSettingsRequest extends Message<GetConnectionSettingsRequest> {
  /**
   * @generated from field: api.RequestConnectionHeader Header = 1;
   */
  Header?: RequestConnectionHeader;

  constructor(data?: PartialMessage<GetConnectionSettingsRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetConnectionSettingsRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestConnectionHeader },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectionSettingsRequest {
    return new GetConnectionSettingsRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectionSettingsRequest {
    return new GetConnectionSettingsRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectionSettingsRequest {
    return new GetConnectionSettingsRequest().fromJsonString(jsonString, options);
  }

  static equals(a: GetConnectionSettingsRequest | PlainMessage<GetConnectionSettingsRequest> | undefined, b: GetConnectionSettingsRequest | PlainMessage<GetConnectionSettingsRequest> | undefined): boolean {
    return proto3.util.equals(GetConnectionSettingsRequest, a, b);
  }
}

/**
 * @generated from message api.GetConnectionSettingsResult
 */
export class GetConnectionSettingsResult extends Message<GetConnectionSettingsResult> {
  /**
   * @generated from field: string settings = 1;
   */
  settings = "";

  constructor(data?: PartialMessage<GetConnectionSettingsResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetConnectionSettingsResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "settings", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectionSettingsResult {
    return new GetConnectionSettingsResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectionSettingsResult {
    return new GetConnectionSettingsResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectionSettingsResult {
    return new GetConnectionSettingsResult().fromJsonString(jsonString, options);
  }

  static equals(a: GetConnectionSettingsResult | PlainMessage<GetConnectionSettingsResult> | undefined, b: GetConnectionSettingsResult | PlainMessage<GetConnectionSettingsResult> | undefined): boolean {
    return proto3.util.equals(GetConnectionSettingsResult, a, b);
  }
}

/**
 * ConnectionID of the settings to delete
 *
 * @generated from message api.DeleteConnectionSettingsRequest
 */
export class DeleteConnectionSettingsRequest extends Message<DeleteConnectionSettingsRequest> {
  /**
   * @generated from field: api.RequestConnectionHeader Header = 1;
   */
  Header?: RequestConnectionHeader;

  constructor(data?: PartialMessage<DeleteConnectionSettingsRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.DeleteConnectionSettingsRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestConnectionHeader },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteConnectionSettingsRequest {
    return new DeleteConnectionSettingsRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteConnectionSettingsRequest {
    return new DeleteConnectionSettingsRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteConnectionSettingsRequest {
    return new DeleteConnectionSettingsRequest().fromJsonString(jsonString, options);
  }

  static equals(a: DeleteConnectionSettingsRequest | PlainMessage<DeleteConnectionSettingsRequest> | undefined, b: DeleteConnectionSettingsRequest | PlainMessage<DeleteConnectionSettingsRequest> | undefined): boolean {
    return proto3.util.equals(DeleteConnectionSettingsRequest, a, b);
  }
}

/**
 * @generated from message api.DeleteConnectionSettingsResult
 */
export class DeleteConnectionSettingsResult extends Message<DeleteConnectionSettingsResult> {
  constructor(data?: PartialMessage<DeleteConnectionSettingsResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.DeleteConnectionSettingsResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteConnectionSettingsResult {
    return new DeleteConnectionSettingsResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteConnectionSettingsResult {
    return new DeleteConnectionSettingsResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteConnectionSettingsResult {
    return new DeleteConnectionSettingsResult().fromJsonString(jsonString, options);
  }

  static equals(a: DeleteConnectionSettingsResult | PlainMessage<DeleteConnectionSettingsResult> | undefined, b: DeleteConnectionSettingsResult | PlainMessage<DeleteConnectionSettingsResult> | undefined): boolean {
    return proto3.util.equals(DeleteConnectionSettingsResult, a, b);
  }
}

