IndustryClassification
- Table
- Protobuf
Description: IndustryClassification holds the detailed industry classification for a business entity using the GICS (Global Industry Classification Standard) hierarchy. DESIGN NOTE: All codes are defined as 'string' rather than 'int' to preserve leading zeros (e.g., "05") which would be truncated by integer types, and to treat these values as unique identifiers rather than numeric quantities.
note
The protobuf file is the authoritative source of documentation. Please refer to the Protobuf tab when in doubt about field definitions, validation rules, or type specifications.
| Field | Type | Description | Required | Validation |
|---|---|---|---|---|
sector_code | string | The 2-digit GICS Sector code. Validation: If set, must be exactly 2 digits. | No | sector_code must be empty or exactly 2 digits |
sector_name | string | The human-readable name of the GICS Sector. Validation: Max 255 characters. | No | Length max: 255 characters |
industry_group_code | string | The 4-digit GICS Industry Group code. Validation: If set, must be exactly 4 digits. | No | industry_group_code must be empty or exactly 4 digits |
industry_group_name | string | The human-readable name of the GICS Industry Group. Validation: Max 255 characters. | No | Length max: 255 characters |
industry_code | string | The 6-digit GICS Industry code. Validation: If set, must be exactly 6 digits. | No | industry_code must be empty or exactly 6 digits |
industry_name | string | The human-readable name of the GICS Industry. Validation: Max 255 characters. | No | Length max: 255 characters |
sub_industry_code | string | The 8-digit GICS Sub-Industry code. Validation: If set, must be exactly 8 digits. | No | sub_industry_code must be empty or exactly 8 digits |
sub_industry_name | string | The human-readable name of the GICS Sub-Industry. Validation: Max 255 characters. | No | Length max: 255 characters |
syntax = "proto3";
package meshtrade.compliance.client.v1;
import "buf/validate/validate.proto";
option go_package = "github.com/meshtrade/api/go/compliance/client/v1;client_v1";
option java_package = "co.meshtrade.api.compliance.client.v1";
/*
IndustryClassification holds the detailed industry classification for a business entity
using the GICS (Global Industry Classification Standard) hierarchy.
DESIGN NOTE: All codes are defined as 'string' rather than 'int' to preserve
leading zeros (e.g., "05") which would be truncated by integer types,
and to treat these values as unique identifiers rather than numeric quantities.
*/
message IndustryClassification {
/*
The 2-digit GICS Sector code.
Validation: If set, must be exactly 2 digits.
*/
string sector_code = 1 [(buf.validate.field).cel = {
id: "sector_code.format"
message: "sector_code must be empty or exactly 2 digits"
expression: "size(this) == 0 || this.matches('^[0-9]{2}$')"
}];
/*
The human-readable name of the GICS Sector.
Validation: Max 255 characters.
*/
string sector_name = 2 [(buf.validate.field).string = {max_len: 255}];
/*
The 4-digit GICS Industry Group code.
Validation: If set, must be exactly 4 digits.
*/
string industry_group_code = 3 [(buf.validate.field).cel = {
id: "industry_group_code.format"
message: "industry_group_code must be empty or exactly 4 digits"
expression: "size(this) == 0 || this.matches('^[0-9]{4}$')"
}];
/*
The human-readable name of the GICS Industry Group.
Validation: Max 255 characters.
*/
string industry_group_name = 4 [(buf.validate.field).string = {max_len: 255}];
/*
The 6-digit GICS Industry code.
Validation: If set, must be exactly 6 digits.
*/
string industry_code = 5 [(buf.validate.field).cel = {
id: "industry_code.format"
message: "industry_code must be empty or exactly 6 digits"
expression: "size(this) == 0 || this.matches('^[0-9]{6}$')"
}];
/*
The human-readable name of the GICS Industry.
Validation: Max 255 characters.
*/
string industry_name = 6 [(buf.validate.field).string = {max_len: 255}];
/*
The 8-digit GICS Sub-Industry code.
Validation: If set, must be exactly 8 digits.
*/
string sub_industry_code = 7 [(buf.validate.field).cel = {
id: "sub_industry_code.format"
message: "sub_industry_code must be empty or exactly 8 digits"
expression: "size(this) == 0 || this.matches('^[0-9]{8}$')"
}];
/*
The human-readable name of the GICS Sub-Industry.
Validation: Max 255 characters.
*/
string sub_industry_name = 8 [(buf.validate.field).string = {max_len: 255}];
}