
/**
 * Transcoder configuration. Provided as a JSON file using the --input-parameter transcoder-configuration=DataPath option.
 */

type BinarySignedness = "SIGNED" | "UNSIGNED" | "UNSPECIFIED";
/**
 * Logical type to use for a decimal field.
 */
type DecimalLogicalType = "AUTO" | "BIG_DECIMAL" | "BIG_INTEGER" | "DECIMAL64" | "LONG";
type PackedDecimalNegativeNibble = "NIBBLE_B" | "NIBBLE_D";
/**
 * Specify the schema validation mode to use during the copybook compilation. This mode verifies compatibility with a specific target data format.
 */
type SchemaValidationMode = "BIG_QUERY" | "DEFAULT" | "MYSQL" | "POSTGRES";
/**
 * Specify the encoding to use when decoding or encoding a zoned decimal field.
 */
type ZonedDecimalEncoding = "ASCII" | "EBCDIC" | "UNSPECIFIED";


/**
 * Ignore any previous modifiers and treat this field as a binary number.
 */
type Binary = {
  /** The signedness of the number. */
  signedness?: BinarySignedness;
}
/**
 * Treats the field as a raw sequence of bytes.
 * This modifier overrides any prior type information, causing the field's raw byte data to
 * be preserved as-is without specific character encoding or numeric interpretation.
 * 
 * You can be apply this modifier to any field regardless of its original type or size.
 */
type Bytes = {
}
/**
 * Defines how null values are interpreted during the decoding process.
 * As COBOL doesn't natively support nulls, this parameter specifies what values must be treated as null.
 */
type DecodeAsNull = {
  /** A list of hexadecimal representations of a single byte. When a field contains repetitions any of these bytes, it is treated as null. For example, using FF for all highs and 00 for all lows (empty). */
  hex_bytes?: Array<string>;
  /** A list of string representations. After the initial decoding of the field to its string form, if the field's content matches any of these values, it will be treated as null. */
  values?: Array<string>;
}
/**
 * Defines how null values are represented during the encoding process.
 */
type EncodeNullAs = {
  /** Encode this specific byte sequence (represented as a hexadecimal string) when the source value is null. For example, FF for a two-byte field to high-values. You can apply this to any field with a known size. The bytes are repeated to match the underlying field's size. */
  hex_byte?: string;
  /** Encode this specific value when the source value is null. Verify that the string is valid for the field's type. */
  value?: string;
}
/**
 * Specifies that a field will be ignored during processing.
 * The field won't be decoded from the input or encoded to the output and will be excluded from the resulting schema and data table during decoding.
 * 
 * You can apply this modifier to any field that has a static known size.
 */
type Filler = {
}
/**
 * Size and pattern to use when converting the field to a date.
 */
type DateTimeFormat = {
  /** Specify the date formatter pattern. For more information on valid formatter patterns, see Class DateTimeFormatter. */
  pattern?: string;
  /** Specify the size of the field this pattern applies to. */
  size?: uint32;
}
/**
 * Format a string or numeric field to a date using one of the supported formats.
 * 
 * You can only apply this modifier to sized fields.
 * For numeric fields, they are dynamically converted to their string representation (excluding any sign markers) before formatting. It is assumed that date values are positive; negative numeric dates are not supported and will fail to parse.
 * 
 * During the decoding process, the formats are tested in order until one of the formats matches the string.
 * 
 * During the encoding process, the first format is used and the rest are ignored.
 */
type FormatDate = {
  /** List of date formats. */
  formats?: Array<DateTimeFormat>;
}
/**
 * Format a string to a timestamp using one of the provided formats.
 * 
 * This can only be applied to sized fields.
 * 
 * During decode, the formats are tested in order until one of the formats matches the string.
 * 
 * During encode, the first format will be used and the rest will be ignored.
 */
type FormatTimestamp = {
  /** List of timestamp formats. */
  formats?: Array<DateTimeFormat>;
}
/**
 * Set this field as Hexadecimal Floating-Point.
 */
type HFP = {
}
/**
 * Specify a modifier chain to apply multiple modifiers in series.
 * The modifiers are applied in the order they are specified.
 */
type ModifierChain = {
  /** Specify the list of modifiers to apply. */
  modifiers?: Array<FieldModifier>;
}
/**
 * Set a field to null if a condition is satisfied. You must specify either
 * null_value or non_null_value or both.
 * 
 * To create a null-indicator field, you can use a FieldSuffix with a null_if field modifier,
 * and set is_inverse to true as shown in the following examples:
 * 
 * Example: Null-indicator
 * 
 * To create a null-indicator field, we can use the null_if field modifier like so.
 * 
 *  {
 *   "field_suffixes": [
 *    {
 *      "suffix": "NID",
 *      "is_inverse": true,
 *      "modifier": {
 *      "null_if": {
 *        "null_value": "?",
 *        "target_field": "$self"
 *      }
 *     }
 *    }
 *   ]
 *  }
 * 
 * This allows for all fields with the suffix NID to effectively be null indicators as shown in the
 * following copybook snippet:
 * 
 *  01 REC.
 *    02 FIELD     PIC X(10).
 *    02 FIELD-NID PIC X(1).
 * 
 * 
 * Example: Binary null-indicator
 * 
 * To create a binary null-indicator field, we can use the binary and null_if field modifiers like so.
 * 
 *  {
 *   "field_suffixes": [
 *    {
 *      "suffix": "NID",
 *      "modifier": {
 *        "binary": {}
 *      }
 *    },
 *    {
 *      "suffix": "NID",
 *      "is_inverse": true,
 *      "modifier": {
 *      "null_if": {
 *        "null_value": "15",
 *        "target_field": "$self"
 *      }
 *     }
 *    }
 *   ]
 *  }
 * 
 * This allows for all fields with the suffix NID to effectively be binary
 * null indicators using the same copybook from the earlier example.
 * 
 * Example: Bytes null-indicator
 * 
 * To create a bytes null-indicator field, we can use the bytes and null_if field modifiers like so.
 * The values for null and not-null are expressed as HEX.
 * 
 *  {
 *   "field_suffixes": [
 *    {
 *      "suffix": "NID",
 *      "modifier": {
 *        "bytes": {}
 *      }
 *    },
 *    {
 *      "suffix": "NID",
 *      "is_inverse": true,
 *      "modifier": {
 *      "null_if": {
 *        "null_value": "FF",
 *        "target_field": "$self"
 *      }
 *     }
 *    }
 *   ]
 *  }
 * 
 * 
 * This allows for all fields with the suffix NID to effectively be a bytes null indicator using the same copybook
 * from the earlier example.
 */
type NullIf = {
  /** When specified, if target_field is not equal to this value, the field is not decoded or encoded, and the value is set to null. */
  non_null_value?: string;
  /** When specified, if target_field is not equal to any of these values, the field is not decoded or encoded and the value is set to null. */
  non_null_values?: Array<string>;
  /** When specified, if target_field is equal to this value, the field is not decoded or encoded, and the value is set to null. */
  null_value?: string;
  /** When specified, if target_field is equal to any of these values, the field is not decoded or encoded and the value is set to null. */
  null_values?: Array<string>;
  /** Specify the field whose value you want to check. The field must be in scope. To access nested fields, you can use dot notation (e.g., "GROUP.FIELD"). */
  target_field?: string;
}
/**
 * Field should be set to null if all the bytes in that field are 0.
 */
type NullIfEmpty = {
}
/**
 * Treat the value as null if transcoding fails.
 * 
 * You can only apply this modifier to sized fields.
 * 
 * By default, when a field fails to decode, the whole record is moved to the spillover (error) dataset and excluded from the output, while the rest of the load completes with the valid records.
 * When you set the null_if_invalid modifier, {{mainframe_connector_name}} keeps the invalid record and sets this field to null.
 * 
 * Use it only when you want to retain such rows with a null value&mdash;not just to make a load succeed, since the default already skips the bad records.
 * 
 * The error is ignored and is not logged in the spillover dataset.
 * 
 * During the decoding process, the value of this field will be null for this record.
 * 
 * During the encoding process, if the data can't be written, the entire field will be filled with null bytes.
 */
type NullIfInvalid = {
}
/**
 * Set this field to a PackedDecimal.
 */
type PackedDecimal = {
  /** Override the logical type. By default, {{mainframe_connector_name}} uses the optimal logical type based on the precision and scale. */
  logical_type?: DecimalLogicalType;
  /** Specifies the nibble to use for negative signs. While both x'B' and x'D' are valid negative signs, some mainframe systems or applications may have a convention that requires one over the other. */
  negative_sign_nibble?: PackedDecimalNegativeNibble;
}
/**
 * Sets the various options related to string decoding and encoding.
 * 
 * Can only be applied on a string field.
 */
type String = {
  /** The encoding with which the field is encoded. */
  encoding?: string;
  /** When set padding export strings with pad_char. If set, the length of pad_char must be 1. pad_char affects only encoding, decoding ignores pad_char. */
  pad_char?: string;
  /** When set to true, any whitespace at the end of the string will be trimmed. trim_suffix affects only decoding, encoding ignores trim_suffix. Note that strings that consist only of whitespaces will become empty strings. */
  trim_suffix?: bool;
}
/**
 * Represents a variable-length field.
 * 
 * A variable-length field contains three parts:
 * <ol>
 * A group item that contains two subfields.
 * A field within the group item that contains the length of the transaction data.
 * A field within the group item that contains the data.
 * </ol>
 * 
 * The name of the variable-length field will be the group name.
 */
type VarLen = {
}
/**
 * Sets various options related to the encoding and decoding of zoned decimals.
 * 
 * You can only be apply this modifier on a decimal field.
 */
type ZonedDecimal = {
  /** The encoding with which the field is encoded. */
  encoding?: ZonedDecimalEncoding;
  /** Specify the logical type to use when decoding or encoding the field. */
  logical_type?: DecimalLogicalType;
}
/**
 * A field modifier lets you modify the encoding or decoding of a specific field.
 * Note that not all modifiers can be applied to all fields.
 * See the documentation for the specific modifiers for more information.
 */
type FieldModifier = {
  /** Overrides default configuration for binary numeric fields. */
  binary?: Binary;
  /** Treats the field as a raw sequence of bytes, ignoring prior type information. */
  bytes?: Bytes;
  /** Chains multiple modifiers to be applied sequentially. */
  chain?: ModifierChain;
  /** Defines how null values must be decoded. */
  decode_as_null?: DecodeAsNull;
  /** Defines how null values must be encoded. */
  encode_null_as?: EncodeNullAs;
  /** Excludes the field from processing and output. */
  filler?: Filler;
  /** Formats a string field as a date. */
  format_date?: FormatDate;
  /** Formats a string field as a timestamp. */
  format_timestamp?: FormatTimestamp;
  /** Interprets the field as a Hexadecimal Floating-Point (HFP) number. */
  hfp?: HFP;
  /** Conditionally sets the field to null based on the value of another field. */
  null_if?: NullIf;
  /** Sets the field to null if its content is considered empty. */
  null_if_empty?: NullIfEmpty;
  /** Sets the field to null if a transcoding error occurs, preventing record spillover. */
  null_if_invalid?: NullIfInvalid;
  /** Overrides default configuration for packed decimal fields. */
  packed_decimal?: PackedDecimal;
  /** Overrides default configuration for string fields. */
  string?: String;
  /** Set the record as a variable length field. */
  varlen?: VarLen;
  /** Overrides default configuration for zoned decimal fields. */
  zoned_decimal?: ZonedDecimal;
}
/**
 * The DefaultsSection object can be used to specify default modifications by cobol types.
 * These are applied before any suffix or override modifications.
 */
type DefaultsSection = {
  /** Specify defaults for alphanumeric (PIC X) fields. */
  alpha_numeric_display?: FieldModifier;
  /** Specify defaults for binary number (COMP) fields. */
  binary?: FieldModifier;
  /** Default for dbcs (DISPLAY-1) fields. */
  dbcs?: FieldModifier;
  /** Default for hexadecimal floating point (COMP-1, COMP-2) fields. */
  hexadecimal_floating_point?: FieldModifier;
  /** Specify defaults for national (PIC N) fields. */
  national?: FieldModifier;
  /** Specify defaults for numeric display (zoned decimal) fields. */
  numeric_display?: FieldModifier;
  /** Specify defaults for packed decimal (COMP-3) fields. */
  packed_decimal?: FieldModifier;
  /** Specify defaults for UTF-8 (PIC U) fields. */
  utf8?: FieldModifier;
}
/**
 * Override or modify the decode and encode chain for the specified field.
 */
type FieldOverride = {
  /** Specify the name of the field to apply the modifier to. */
  field?: string;
  /** Specify the modifier to apply to matching field. */
  modifier?: FieldModifier;
}
/**
 * Field suffixes apply to all fields that have a suffix.
 * 
 * Fields are matched if they end with a hyphen (-) or underscore (_) followed by the suffix.
 * 
 * Suffixes are case-insensitive.
 * 
 * The FieldSuffix modifier is applied after the FieldOverride modifier.
 * 
 * For example, the modifier defined for the suffix NID will be applied to the field named
 * FLD-NID but not for the field FUNID.
 */
type FieldSuffix = {
  /** Specify whether the modifier is an inverse field modifier or not. An inverse field modifier applies the modifier on another field that has the same name as the field with the modifier without the modifier. For example, if both FLD-NID and FLD fields exist in the same record, the modifier will be applied to FLD. When using an inverse field modifier, the special identifier $self can be used whenever a field name can traditionally be used to refer to the field with the suffix. For example, to create a null-indicator field, you can use the null_if field modifier with is_inverse set to true. Refer to NullIf for more information. */
  is_inverse?: bool;
  /** Specify the modifier to apply to matching fields. */
  modifier?: FieldModifier;
  /** The field with this suffix will have the modifier applied to it. */
  suffix?: string;
}
/**
 * Exclude a field from the resulting table, but still undergo decoding or encoding.
 * This is useful when the field doesn't need to be transferred to the table, but is required for transcoding.
 * For example, null indicator or length fields can be omitted from the table.
 * To bypass transcoding altogether, apply the filler modifier.
 */
type Exclude = {
  /** Specify the field to exclude. */
  field?: string;
}
/**
 * Move a field in the record.
 */
type Move = {
  /** Specify the field to move. */
  field?: string;
  /** Specify the number of places, forward or backwards, the field needs to be moved to. */
  offset?: int32;
}
/**
 * Rename one or more fields based on a regular expression match.
 * 
 *  For example, to replace all hyphens with underscores, use the following JSON format:
 *     {"find": "\\-", "replace":"_"}.
 *  
 */
type Rename = {
  /** Specifies a Java regular expression pattern to identify the field(s) to rename. The pattern is matched against the full field name. If the pattern matches any part of the field name, the field is considered a match. Examples: "\\-" (matches any field containing a hyphen) "^field_name$" (matches fields with the exact name field_name) "^field_(.*)$" (matches any fields starting with field_ and captures the rest) "part_of_name" (matches any field containing part_of_name) */
  find?: string;
  /** Specifies the new name for the matched field(s). Capture groups from the find regular expression can be used in the replace string using backreferences like $1, $2. This allows for more complex transformations based on parts of the original field name. Examples: "new_field_name" (replaces the field with a fixed name) "new_$1" (uses the first capture group from find) "${1}_new" (alternative syntax for capture groups) "prefix_$1_suffix" (uses a capture group and adds prefixes/suffixes) */
  replace?: string;
}
type Split = {
  /** Specify the field you want to split. */
  field?: string;
  /** Specify the name for the field that will be added to the new schema where the primary-key value will be stored. If not specified, the primary-key name is used. */
  foreign_key?: string;
  /** Specify the field name that will be used as a primary key. */
  primary_key?: string;
}
/**
 * Unnest the field.
 */
type Unnest = {
  /** Specify the field to unnest */
  field?: string;
  /** Specify the new field format. The ${parent} will be released with the name of the field being unnested. For unnested structs, ${field} is replaced with the name of the structs field. For unnested arrays and lists, ${index} is replaced with the indexes of the array. */
  format?: string;
}
/**
 * View transformations are used to modify the relationship between the table and the QSAM file.
 * 
 * Transformations are always phrased from the point of view of the data.
 * 
 * The concept is similar to view tables in {{bigquery_name}}.
 */
type Transformation = {
  exclude?: Exclude;
  move?: Move;
  rename?: Rename;
  split?: Split;
  /** Optional. Specify the target table (view) name to apply the transformation to. By default, transformations apply to the main table (_main) or globally where applicable. If you have split views (created by a split transformation), you can target a specific split table by name. Note: Split transformations themselves cannot be targeted and will error if target_table is set. */
  target_table?: string;
  unnest?: Unnest;
}
/**
 * The Configuration object is the root of the transcoder configuration.
 * It contains all the configuration options for the transcoder.
 */
type Configuration = {
  /** Specify default field modifiers for Cobol archetypes. */
  defaults?: DefaultsSection;
  /** Specify field overrides. */
  field_overrides?: Array<FieldOverride>;
  /** Specify field suffixes. */
  field_suffixes?: Array<FieldSuffix>;
  /** Specify the number of first records to skip. */
  header_records_to_skip?: int64;
  /** Specify a filter condition for records. The filter is based on a subset of Common Expression Language (CEL) and supports the following: Field Access: Fields can be referenced by name. For nested fields, use dot notation (e.g., PARENT.CHILD). Comparison operators: `==`, `!=`, `<`, `<=`, `>`, `>=`. Logical operators: `&&` (AND), `||` (OR), `!` (NOT). List containment: `in` (checks if a value is present in a list). Arithmetic operators: `+`, `-`, `*`, `/`, `%`. String and list functions: size(): Returns the length of a string or list. contains(substring): Checks if a string contains a specified substring. startsWith(prefix): Checks if a string starts with a specified prefix. endsWith(suffix): Checks if a string ends with a specified suffix. Date and Timestamp constants: date(string): Parses a date in ISO format (YYYY-MM-DD). E.g., date('2025-01-12'). date(string, format): Parses a date using a custom format. E.g., date('12/01/2025', 'dd/MM/yyyy'). timestamp(string): Parses a timestamp in ISO format. E.g., timestamp('1999-05-03T02:34:00Z'). Comparisons and operations must be performed between variables or constants of the same or compatible data types (e.g., comparing floating-point numbers or using date/timestamp constants for date/timestamp fields). Example: "record_filter_condition": "(ACCOUNT-GRP.DATE > date('2025-01-12') ) && ((SCORE_A + SCORE_B) > 134) && FLD-STR.startsWith('HE')" */
  record_filter_condition?: string;
  /** Specify the schema validation mode. */
  schema_validation_mode?: SchemaValidationMode;
  /** Specify field transformations. */
  transformations?: Array<Transformation>;
}


/**
 * CSV formatting configuration. Provided as a JSON file using the --input-parameter csv-dialect=DataPath option.
 */

/**
 * Specify the way in which {{mainframe_connector_name_short}} encodes or decodes binary data. Valid values are hexadecimal, base64, or hex. The default value is base64.
 */
type BinaryDataEncoding = "BASE64" | "HEX" | "HEXADECIMAL";
/**
 * Defines quoting behavior.
 */
type QuoteMode = "ALL" | "ALL_NON_NULL" | "MINIMAL" | "NONE" | "NON_NUMERIC";
/**
 * Defines the behavior of writing the CSV header.
 */
type WriteHeaderMode = "ALWAYS" | "NO" | "YES";


/**
 * The CsvConfiguration object lets you configure the CSV decode and encoder configuration.
 */
type CsvConfiguration = {
  /** Specify the way in which {{mainframe_connector_name_short}} encodes or decodes binary data. Valid values are hexadecimal, base64, or hex. The default value is base64. */
  binary_data_encoding?: BinaryDataEncoding;
  /** Specify the format for the date. The default format is yyyy-mm-dd. */
  date_format?: string;
  /** Specify the character to use to separate fields. */
  delimiter?: string;
  /** Set this to true if you want the first row to contain column names instead of actual data. */
  header?: WriteHeaderMode;
  /** Specify the character to use to separate lines. */
  line_terminator?: string;
  /** If support_list is set to true, this value represents the end character delimiter for lists. */
  list_end_delimiter?: string;
  /** If support_list is set to true, this value represents the start character delimiter for lists. */
  list_start_delimiter?: string;
  /** Specify the string that represents a null character. */
  null_representation?: string;
  /** Specify the quote character. */
  quote?: string;
  /** Specify the escape character. */
  quote_escaping?: string;
  /** Specify the quoting behavior. The default value is MINIMAL. */
  quote_mode?: QuoteMode;
  /** If support_struct is set to true, this value represents the end character delimiter for structs. */
  struct_end_delimiter?: string;
  /** If support_struct is set to true, this value represents the start character delimiter for structs. */
  struct_start_delimiter?: string;
  /** Set to true if you want {{mainframe_connector_name_short}} to support lists in CSV. */
  support_list?: bool;
  /** Set to true if you want {{mainframe_connector_name_short}} to support structs in CSV. */
  support_struct?: bool;
  /** Specify the format for the timestamp. The default value is DateTimeFormatter.ISO_INSTANT. */
  timestamp_format?: string;
}


/**
 * JSON formatting configuration. Provided as a JSON file using the --input-parameter json-dialect=DataPath option.
 */



/**
 * The JsonConfiguration object lets you configure the JSON decoder and encoder configuration.
 */
type JsonConfiguration = {
  /** Specify the format for the date. The default format is yyyy-MM-dd. */
  date_format?: string;
  /** Specify the character encoding to use for the JSON output. The default is UTF-8. */
  encoding?: string;
  /** Set to true if you want null fields to be omitted from the JSON output. */
  omit_null_fields?: bool;
  /** Specify the format for the timestamp. The default value is DateTimeFormatter.ISO_INSTANT. */
  timestamp_format?: string;
}


/**
 * Pub/Sub publishing configuration. Provided as a JSON file using the --input-parameter pubsub-publish-configuration=DataPath option.
 */

/**
 * The LimitExceededBehavior enum lets you configure the behavior when flow control limits are exceeded.
 */
type LimitExceededBehavior = "BLOCK" | "IGNORE" | "THROW_EXCEPTION";


/**
 * The Attribute message represents a single key-value pair used as a {{pubsub_name_short}} message attribute.
 */
type Attribute = {
  /** Specify the key of the attribute. */
  key?: string;
  /** Specify the value of the attribute. */
  value?: string;
}
/**
 * The Attributes message specifies a collection of Attribute key-value pairs that define how the attributes are determined.
 */
type Attributes = {
  /** Specify a collection of key-value pairs. */
  attribute?: Array<Attribute>;
}
/**
 * The AttributesConfiguration message specifies a fixed set of attributes that define how attributes are
 * sourced for {{pubsub_name_short}} messages.
 */
type AttributesConfiguration = {
  /** A collection of fixed key-value attributes to be attached to the {{pubsub_name_short}} messages. */
  attributes?: Attributes;
}
/**
 * The BatchingSettings message lets you specify the batch settings for publishing messages to {{pubsub_name_short}}.
 * You should verify your batch settings are configured to respect the defined {{pubsub_name_short}} quotas and limits.
 * To disable batch processing, set message_count_threshold=1.
 */
type BatchingSettings = {
  /** Specify the delay threshold to use for batch processing. After the amount of time defined by delay_threshold has elapsed (counting from the first message added), the messages are wrapped up in a batch and sent. We recommend that you don't set this value too high, otherwise, calls might appear to never complete. If you prioritize real-time or near real-time processing, you'll want a lower delay threshold (a few tens or hundreds of milliseconds). This verifies messages are sent quickly. If you're dealing with large-scale batch processing where immediate delivery isn't critical, a higher threshold (a few seconds) might be acceptable to allow for larger, more efficient batches. For more information on duration format, see Duration. If a delay threshold of 0 seconds is provided, it is considered as if a delay threshold was not provided, and the default is used. The default value is 1 ms. */
  delay_threshold?: string;
  /** Specify the message count threshold to use for batch processing. After the number of messages defined by message_count_threshold are accumulated, they are wrapped up in a batch and sent, even if the delay threshold hasn't elapsed yet. If your messages are consistently small, consider increasing the message count threshold. The default value is 1. */
  element_count_threshold?: int64;
  /** Specify the maximum size in bytes of messages to accumulate before sending a batch to {{pubsub_name_short}}. This applies even if neither the delay or message count thresholds have been exceeded yet. If your messages are consistently small, consider increasing the byte threshold. The default value is 1 byte. */
  request_byte_threshold?: int64;
}
/**
 * The ConcurrencyControlSettings message lets you configure the parallelism of message publishing.
 * These settings influence how many messages can be sent concurrently.
 */
type ConcurrencyControlSettings = {
  /** Specify the number of processing threads to publish messages. The value should be equal or less than the number of cores available. If the number of threads is 0, publishing is handled synchronously. */
  publishing_threads?: int32;
  /** Specify the number of threads for processing {{pubsub_name_short}} message results. This includes acknowledging successfully sent messages and handling any errors that occur during publishing. A value of 0 means result processing parallelism is handled synchronously. The default value is 1. */
  result_processing_threads?: int32;
}
/**
 * The FlowControlSettings message lets you specify how the publisher client manages the flow of messages to {{pubsub_name_short}}.
 * These settings prevent the client from consuming excessive resources or overwhelming {{pubsub_name_short}}.
 */
type FlowControlSettings = {
  /** Specify the behavior when flow control limits are exceeded. The default value is BLOCK. */
  limit_exceeded_behavior?: LimitExceededBehavior;
  /** Specify the maximum number of messages that can be outstanding (sent but not yet acknowledged by {{pubsub_name_short}}). If your mainframe has abundant memory and you want to push very high throughput, you can try increasing the count. */
  max_outstanding_element_count?: int64;
  /** Specifies the maximum total size in bytes of outstanding messages. */
  max_outstanding_request_bytes?: int64;
}
/**
 * The OrderingKeyConfiguration message specifies a static string as the ordering key that defines how the
 * ordering key for {{pubsub_name_short}} messages is determined.
 */
type OrderingKeyConfiguration = {
  /** The string value to use as the ordering key for the {{pubsub_name_short}} message. */
  key?: string;
}
/**
 * The SpilloverConfiguration message defines how to specify an alternative topic for spillover messages.
 * You can specify either a full topic name or a suffix to append to the input topic name.
 * These two options are mutually exclusive; you must choose one.
 */
type SpilloverConfiguration = {
  /** Specify the full resource name of an alternative topic for spillover messages in the format projects/{project}/topics/{topic}. */
  name?: string;
  /** Specify a suffix to append to the input topic name for spillover messages. For example, if the input topic is projects/project_example/topics/my-topic, and the suffix is _errors, the spillover topic would be projects/project_example/topics/my-topic_errors. */
  suffix?: string;
}
/**
 * The PubsubPublishConfiguration object lets you configure the messages that get sent to {{pubsub_name_short}} and is used with the
 * qsam decode command.
 */
type PubsubPublishConfiguration = {
  /** Specify the attributes configuration. You can specify the configuration as key-value pairs that can be attached to a {{pubsub_name_short}} message. The configuration can then be used for message filtering or to convey additional metadata. */
  attributes_configuration?: AttributesConfiguration;
  /** Specify the batch settings for publishing messages. By default, batch processing is disabled. For more information, see Publish with batch settings. */
  batching_settings?: BatchingSettings;
  /** Specify the concurrency and message processing settings for the publisher client. These settings control the parallelism for publishing messages, acknowledging successful deliveries, and handling any errors during the publishing process. For more information, see Concurrency control. */
  concurrency_control_settings?: ConcurrencyControlSettings;
  /** Specify the flow control settings to be used for publishing messages. By default, flow control settings are disabled. For more information, see Publish messages with flow control settings. */
  flow_control_settings?: FlowControlSettings;
  /** Specify the ordering key configuration. This configuration verifies that messages with the same ordering key are delivered in order. If you don't set this configuration, message ordering is not guaranteed. */
  ordering_key_configuration?: OrderingKeyConfiguration;
  /** Specify the configuration for how spillover messages are sent. If not set, spillover messages are sent to the input topic with a _spillover suffix. For example, if the input topic is projects/project_example/topics/topic_example, the default spillover topic would be projects/project_example/topics/topic_example_spillover. */
  spillover_configuration?: SpilloverConfiguration;
}
